Lines Matching +full:- +full:- +full:mode +full:- +full:-

1 .. SPDX-License-Identifier: GPL-2.0
13 exception of using L3 for mux-ing /demux-ing among slaves. This property makes
34 ip link add link <master> name <slave> type ipvlan [ mode MODE ] [ FLAGS ]
36 MODE: l3 (default) | l3s | l2
42 L3 bridge mode::
45 (b) This command will create IPvlan link in L2 bridge mode::
47 bash# ip link add link eth0 name ipvl0 type ipvlan mode l2 bridge
49 (c) This command will create an IPvlan device in L2 private mode::
51 bash# ip link add link eth0 name ipvlan type ipvlan mode l2 private
53 (d) This command will create an IPvlan device in L2 vepa mode::
55 bash# ip link add link eth0 name ipvlan type ipvlan mode l2 vepa
61 IPvlan has two modes of operation - L2 and L3. For a given master device,
63 operate in the same (selected) mode. The RX mode is almost identical except
64 that in L3 mode the slaves won't receive any multicast / broadcast traffic.
65 L3 mode is more restrictive since routing is controlled from the other (mostly)
68 4.1 L2 mode:
69 ------------
71 In this mode TX processing happens on the stack instance attached to the
73 out. In this mode the slaves will RX/TX multicast and broadcast (if applicable)
76 4.2 L3 mode:
77 ------------
79 In this mode TX processing up to L3 happens on the stack instance attached
82 used before packets are queued on the outbound device. In this mode the slaves
85 4.3 L3S mode:
86 -------------
88 This is very similar to the L3 mode except that iptables (conn-tracking)
89 works in this mode and hence it is L3-symmetric (L3s). This will have slightly less
90 performance but that shouldn't matter since you are choosing this mode over plain-L3
91 mode to make conn-tracking work.
93 5. Mode flags:
96 At this time following mode flags are available
99 -----------
100 This is the default option. To configure the IPvlan port in this mode,
101 user can choose to either add this option on the command-line or don't specify
102 anything. This is the traditional mode where slaves can cross-talk among
106 ------------
107 If this option is added to the command-line, the port is set in private
108 mode. i.e. port won't allow cross communication between slaves.
111 ---------
112 If this is added to the command-line, the port is set in VEPA mode.
115 Note: VEPA mode in IPvlan has limitations. IPvlan uses the mac-address of the
116 master-device, so the packets which are emitted in this mode for the adjacent
131 puts the NIC in promiscuous mode and degraded performance is a concern.
144 | +----------------------+ +----------------------+ |
149 | +----------#-----------+ +-----------#----------+ |
156 (a) Create two network namespaces - ns0, ns1::
163 ip link add link eth0 ipvl0 type ipvlan mode l2
164 ip link add link eth0 ipvl1 type ipvlan mode l2
173 - For ns0::
178 (4) ip -4 addr add 127.0.0.1 dev lo
179 (5) ip -4 addr add $IPADDR dev ipvl0
180 (6) ip -4 route add default via $ROUTER dev ipvl0
182 - For ns1::
187 (4) ip -4 addr add 127.0.0.1 dev lo
188 (5) ip -4 addr add $IPADDR dev ipvl1
189 (6) ip -4 route add default via $ROUTER dev ipvl1