msphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget%/translations/zh_CN/networking/ipvlanmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/zh_TW/networking/ipvlanmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/it_IT/networking/ipvlanmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/ja_JP/networking/ipvlanmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/ko_KR/networking/ipvlanmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/sp_SP/networking/ipvlanmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhh?/var/lib/git/docbuild/linux/Documentation/networking/ipvlan.rsthKubhsection)}(hhh](htitle)}(hIPVLAN Driver HOWTOh]hIPVLAN Driver HOWTO}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhdefinition_list)}(hhh]hdefinition_list_item)}(h9Initial Release: Mahesh Bandewar h](hterm)}(hInitial Release:h]hInitial Release:}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubh definition)}(hhh]h paragraph)}(h'Mahesh Bandewar h]h'Mahesh Bandewar }(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(hhh](h)}(h1. Introduction:h]h1. Introduction:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhK ubh)}(hXAThis is conceptually very similar to the macvlan driver with one major exception of using L3 for mux-ing /demux-ing among slaves. This property makes the master device share the L2 with its slave devices. I have developed this driver in conjunction with network namespaces and not sure if there is use case outside of it.h]hXAThis is conceptually very similar to the macvlan driver with one major exception of using L3 for mux-ing /demux-ing among slaves. This property makes the master device share the L2 with its slave devices. I have developed this driver in conjunction with network namespaces and not sure if there is use case outside of it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hj hhubeh}(h] introductionah ]h"]1. introduction:ah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(h2. Building and Installation:h]h2. Building and Installation:}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hhhhhKubh)}(hIn order to build the driver, please select the config item CONFIG_IPVLAN. The driver can be built into the kernel (CONFIG_IPVLAN=y) or as a module (CONFIG_IPVLAN=m).h]hIn order to build the driver, please select the config item CONFIG_IPVLAN. The driver can be built into the kernel (CONFIG_IPVLAN=y) or as a module (CONFIG_IPVLAN=m).}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj2hhubeh}(h]building-and-installationah ]h"]2. building and installation:ah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h3. Configuration:h]h3. Configuration:}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhhhhhKubh)}(heThere are no module parameters for this driver and it can be configured using IProute2/ip utility. ::h]hbThere are no module parameters for this driver and it can be configured using IProute2/ip utility.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjYhhubh literal_block)}(hip link add link name type ipvlan [ mode MODE ] [ FLAGS ] where MODE: l3 (default) | l3s | l2 FLAGS: bridge (default) | private | vepah]hip link add link name type ipvlan [ mode MODE ] [ FLAGS ] where MODE: l3 (default) | l3s | l2 FLAGS: bridge (default) | private | vepa}hjzsbah}(h]h ]h"]h$]h&]hhuh1jxhhhK"hjYhhubh)}(he.g.h]he.g.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hjYhhubh block_quote)}(hX+(a) Following will create IPvlan link with eth0 as master in L3 bridge mode:: bash# ip link add link eth0 name ipvl0 type ipvlan (b) This command will create IPvlan link in L2 bridge mode:: bash# ip link add link eth0 name ipvl0 type ipvlan mode l2 bridge (c) This command will create an IPvlan device in L2 private mode:: bash# ip link add link eth0 name ipvlan type ipvlan mode l2 private (d) This command will create an IPvlan device in L2 vepa mode:: bash# ip link add link eth0 name ipvlan type ipvlan mode l2 vepa h]henumerated_list)}(hhh](h list_item)}(hFollowing will create IPvlan link with eth0 as master in L3 bridge mode:: bash# ip link add link eth0 name ipvl0 type ipvlanh](h)}(hIFollowing will create IPvlan link with eth0 as master in L3 bridge mode::h]hHFollowing will create IPvlan link with eth0 as master in L3 bridge mode:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK)hjubjy)}(h2bash# ip link add link eth0 name ipvl0 type ipvlanh]h2bash# ip link add link eth0 name ipvl0 type ipvlan}hjsbah}(h]h ]h"]h$]h&]hhuh1jxhhhK,hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h~This command will create IPvlan link in L2 bridge mode:: bash# ip link add link eth0 name ipvl0 type ipvlan mode l2 bridge h](h)}(h8This command will create IPvlan link in L2 bridge mode::h]h7This command will create IPvlan link in L2 bridge mode:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hjubjy)}(hAbash# ip link add link eth0 name ipvl0 type ipvlan mode l2 bridgeh]hAbash# ip link add link eth0 name ipvl0 type ipvlan mode l2 bridge}hjsbah}(h]h ]h"]h$]h&]hhuh1jxhhhK/hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hThis command will create an IPvlan device in L2 private mode:: bash# ip link add link eth0 name ipvlan type ipvlan mode l2 private h](h)}(h>This command will create an IPvlan device in L2 private mode::h]h=This command will create an IPvlan device in L2 private mode:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjubjy)}(hCbash# ip link add link eth0 name ipvlan type ipvlan mode l2 privateh]hCbash# ip link add link eth0 name ipvlan type ipvlan mode l2 private}hjsbah}(h]h ]h"]h$]h&]hhuh1jxhhhK3hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hThis command will create an IPvlan device in L2 vepa mode:: bash# ip link add link eth0 name ipvlan type ipvlan mode l2 vepa h](h)}(h;This command will create an IPvlan device in L2 vepa mode::h]h:This command will create an IPvlan device in L2 vepa mode:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK5hjubjy)}(h@bash# ip link add link eth0 name ipvlan type ipvlan mode l2 vepah]h@bash# ip link add link eth0 name ipvlan type ipvlan mode l2 vepa}hj'sbah}(h]h ]h"]h$]h&]hhuh1jxhhhK7hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]enumtype loweralphaprefix(suffix)uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhK)hjYhhubeh}(h] configurationah ]h"]3. configuration:ah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h4. Operating modes:h]h4. Operating modes:}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhhhhhK;ubh)}(hXIPvlan has two modes of operation - L2 and L3. For a given master device, you can select one of these two modes and all slaves on that master will operate in the same (selected) mode. The RX mode is almost identical except that in L3 mode the slaves won't receive any multicast / broadcast traffic. L3 mode is more restrictive since routing is controlled from the other (mostly) default namespace.h]hXIPvlan has two modes of operation - L2 and L3. For a given master device, you can select one of these two modes and all slaves on that master will operate in the same (selected) mode. The RX mode is almost identical except that in L3 mode the slaves won’t receive any multicast / broadcast traffic. L3 mode is more restrictive since routing is controlled from the other (mostly) default namespace.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK=hjUhhubh)}(hhh](h)}(h 4.1 L2 mode:h]h 4.1 L2 mode:}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthhhhhKEubh)}(hIn this mode TX processing happens on the stack instance attached to the slave device and packets are switched and queued to the master device to send out. In this mode the slaves will RX/TX multicast and broadcast (if applicable) as well.h]hIn this mode TX processing happens on the stack instance attached to the slave device and packets are switched and queued to the master device to send out. In this mode the slaves will RX/TX multicast and broadcast (if applicable) as well.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKGhjthhubeh}(h]l2-modeah ]h"] 4.1 l2 mode:ah$]h&]uh1hhjUhhhhhKEubh)}(hhh](h)}(h 4.2 L3 mode:h]h 4.2 L3 mode:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKMubh)}(hXkIn this mode TX processing up to L3 happens on the stack instance attached to the slave device and packets are switched to the stack instance of the master device for the L2 processing and routing from that instance will be used before packets are queued on the outbound device. In this mode the slaves will not receive nor can send multicast / broadcast traffic.h]hXkIn this mode TX processing up to L3 happens on the stack instance attached to the slave device and packets are switched to the stack instance of the master device for the L2 processing and routing from that instance will be used before packets are queued on the outbound device. In this mode the slaves will not receive nor can send multicast / broadcast traffic.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKOhjhhubeh}(h]l3-modeah ]h"] 4.2 l3 mode:ah$]h&]uh1hhjUhhhhhKMubh)}(hhh](h)}(h 4.3 L3S mode:h]h 4.3 L3S mode:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKVubh)}(hXThis is very similar to the L3 mode except that iptables (conn-tracking) works in this mode and hence it is L3-symmetric (L3s). This will have slightly less performance but that shouldn't matter since you are choosing this mode over plain-L3 mode to make conn-tracking work.h]hXThis is very similar to the L3 mode except that iptables (conn-tracking) works in this mode and hence it is L3-symmetric (L3s). This will have slightly less performance but that shouldn’t matter since you are choosing this mode over plain-L3 mode to make conn-tracking work.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKXhjhhubeh}(h]l3s-modeah ]h"] 4.3 l3s mode:ah$]h&]uh1hhjUhhhhhKVubeh}(h]operating-modesah ]h"]4. operating modes:ah$]h&]uh1hhhhhhhhK;ubh)}(hhh](h)}(h5. Mode flags:h]h5. Mode flags:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK^ubh)}(h/At this time following mode flags are availableh]h/At this time following mode flags are available}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK`hjhhubh)}(hhh](h)}(h 5.1 bridge:h]h 5.1 bridge:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKcubh)}(hXThis is the default option. To configure the IPvlan port in this mode, user can choose to either add this option on the command-line or don't specify anything. This is the traditional mode where slaves can cross-talk among themselves apart from talking through the master device.h]hXThis is the default option. To configure the IPvlan port in this mode, user can choose to either add this option on the command-line or don’t specify anything. This is the traditional mode where slaves can cross-talk among themselves apart from talking through the master device.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKdhjhhubeh}(h]bridgeah ]h"] 5.1 bridge:ah$]h&]uh1hhjhhhhhKcubh)}(hhh](h)}(h 5.2 private:h]h 5.2 private:}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hhhhhKjubh)}(hIf this option is added to the command-line, the port is set in private mode. i.e. port won't allow cross communication between slaves.h]hIf this option is added to the command-line, the port is set in private mode. i.e. port won’t allow cross communication between slaves.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKkhj7hhubeh}(h]privateah ]h"] 5.2 private:ah$]h&]uh1hhjhhhhhKjubh)}(hhh](h)}(h 5.3 vepa:h]h 5.3 vepa:}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hhhhhKoubh)}(hXIf this is added to the command-line, the port is set in VEPA mode. i.e. port will offload switching functionality to the external entity as described in 802.1Qbg Note: VEPA mode in IPvlan has limitations. IPvlan uses the mac-address of the master-device, so the packets which are emitted in this mode for the adjacent neighbor will have source and destination mac same. This will make the switch / router send the redirect message.h]hXIf this is added to the command-line, the port is set in VEPA mode. i.e. port will offload switching functionality to the external entity as described in 802.1Qbg Note: VEPA mode in IPvlan has limitations. IPvlan uses the mac-address of the master-device, so the packets which are emitted in this mode for the adjacent neighbor will have source and destination mac same. This will make the switch / router send the redirect message.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKphj^hhubeh}(h]vepaah ]h"] 5.3 vepa:ah$]h&]uh1hhjhhhhhKoubeh}(h] mode-flagsah ]h"]5. mode flags:ah$]h&]uh1hhhhhhhhK^ubh)}(hhh](h)}(h'6. What to choose (macvlan vs. ipvlan)?h]h'6. What to choose (macvlan vs. ipvlan)?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKyubh)}(hThese two devices are very similar in many regards and the specific use case could very well define which device to choose. if one of the following situations defines your use case then you can choose to use ipvlan:h]hThese two devices are very similar in many regards and the specific use case could very well define which device to choose. if one of the following situations defines your use case then you can choose to use ipvlan:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK{hjhhubj)}(hhh](j)}(hyThe Linux host that is connected to the external switch / router has policy configured that allows only one mac per port.h]h)}(hyThe Linux host that is connected to the external switch / router has policy configured that allows only one mac per port.h]hyThe Linux host that is connected to the external switch / router has policy configured that allows only one mac per port.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hNo of virtual devices created on a master exceed the mac capacity and puts the NIC in promiscuous mode and degraded performance is a concern.h]h)}(hNo of virtual devices created on a master exceed the mac capacity and puts the NIC in promiscuous mode and degraded performance is a concern.h]hNo of virtual devices created on a master exceed the mac capacity and puts the NIC in promiscuous mode and degraded performance is a concern.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hIf the slave device is to be put into the hostile / untrusted network namespace where L2 on the slave could be changed / misused. h]h)}(hIf the slave device is to be put into the hostile / untrusted network namespace where L2 on the slave could be changed / misused.h]hIf the slave device is to be put into the hostile / untrusted network namespace where L2 on the slave could be changed / misused.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]jAjBjCjDjEjFuh1jhjhhhhhKubeh}(h] what-to-choose-macvlan-vs-ipvlanah ]h"]'6. what to choose (macvlan vs. ipvlan)?ah$]h&]uh1hhhhhhhhKyubh)}(hhh](h)}(h6. Example configuration:h]h6. Example configuration:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubjy)}(hX?+=============================================================+ | Host: host1 | | | | +----------------------+ +----------------------+ | | | NS:ns0 | | NS:ns1 | | | | | | | | | | | | | | | | ipvl0 | | ipvl1 | | | +----------#-----------+ +-----------#----------+ | | # # | | ################################ | | # eth0 | +==============================#==============================+h]hX?+=============================================================+ | Host: host1 | | | | +----------------------+ +----------------------+ | | | NS:ns0 | | NS:ns1 | | | | | | | | | | | | | | | | ipvl0 | | ipvl1 | | | +----------#-----------+ +-----------#----------+ | | # # | | ################################ | | # eth0 | +==============================#==============================+}hjsbah}(h]h ]h"]h$]h&]hhuh1jxhhhKhjhhubj)}(hhh](j)}(hVCreate two network namespaces - ns0, ns1:: ip netns add ns0 ip netns add ns1 h](h)}(h*Create two network namespaces - ns0, ns1::h]h)Create two network namespaces - ns0, ns1:}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj'ubjy)}(h!ip netns add ns0 ip netns add ns1h]h!ip netns add ns0 ip netns add ns1}hj9sbah}(h]h ]h"]h$]h&]hhuh1jxhhhKhj'ubeh}(h]h ]h"]h$]h&]uh1jhj$hhhhhNubj)}(hCreate two ipvlan slaves on eth0 (master device):: ip link add link eth0 ipvl0 type ipvlan mode l2 ip link add link eth0 ipvl1 type ipvlan mode l2 h](h)}(h2Create two ipvlan slaves on eth0 (master device)::h]h1Create two ipvlan slaves on eth0 (master device):}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjMubjy)}(h_ip link add link eth0 ipvl0 type ipvlan mode l2 ip link add link eth0 ipvl1 type ipvlan mode l2h]h_ip link add link eth0 ipvl0 type ipvlan mode l2 ip link add link eth0 ipvl1 type ipvlan mode l2}hj_sbah}(h]h ]h"]h$]h&]hhuh1jxhhhKhjMubeh}(h]h ]h"]h$]h&]uh1jhj$hhhhhNubj)}(h~Assign slaves to the respective network namespaces:: ip link set dev ipvl0 netns ns0 ip link set dev ipvl1 netns ns1 h](h)}(h4Assign slaves to the respective network namespaces::h]h3Assign slaves to the respective network namespaces:}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjsubjy)}(h?ip link set dev ipvl0 netns ns0 ip link set dev ipvl1 netns ns1h]h?ip link set dev ipvl0 netns ns0 ip link set dev ipvl1 netns ns1}hjsbah}(h]h ]h"]h$]h&]hhuh1jxhhhKhjsubeh}(h]h ]h"]h$]h&]uh1jhj$hhhhhNubj)}(hXNow switch to the namespace (ns0 or ns1) to configure the slave devices - For ns0:: (1) ip netns exec ns0 bash (2) ip link set dev ipvl0 up (3) ip link set dev lo up (4) ip -4 addr add 127.0.0.1 dev lo (5) ip -4 addr add $IPADDR dev ipvl0 (6) ip -4 route add default via $ROUTER dev ipvl0 - For ns1:: (1) ip netns exec ns1 bash (2) ip link set dev ipvl1 up (3) ip link set dev lo up (4) ip -4 addr add 127.0.0.1 dev lo (5) ip -4 addr add $IPADDR dev ipvl1 (6) ip -4 route add default via $ROUTER dev ipvl1h](h)}(hGNow switch to the namespace (ns0 or ns1) to configure the slave devicesh]hGNow switch to the namespace (ns0 or ns1) to configure the slave devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj)}(hX- For ns0:: (1) ip netns exec ns0 bash (2) ip link set dev ipvl0 up (3) ip link set dev lo up (4) ip -4 addr add 127.0.0.1 dev lo (5) ip -4 addr add $IPADDR dev ipvl0 (6) ip -4 route add default via $ROUTER dev ipvl0 - For ns1:: (1) ip netns exec ns1 bash (2) ip link set dev ipvl1 up (3) ip link set dev lo up (4) ip -4 addr add 127.0.0.1 dev lo (5) ip -4 addr add $IPADDR dev ipvl1 (6) ip -4 route add default via $ROUTER dev ipvl1h]h bullet_list)}(hhh](j)}(hFor ns0:: (1) ip netns exec ns0 bash (2) ip link set dev ipvl0 up (3) ip link set dev lo up (4) ip -4 addr add 127.0.0.1 dev lo (5) ip -4 addr add $IPADDR dev ipvl0 (6) ip -4 route add default via $ROUTER dev ipvl0 h](h)}(h For ns0::h]hFor ns0:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubjy)}(h(1) ip netns exec ns0 bash (2) ip link set dev ipvl0 up (3) ip link set dev lo up (4) ip -4 addr add 127.0.0.1 dev lo (5) ip -4 addr add $IPADDR dev ipvl0 (6) ip -4 route add default via $ROUTER dev ipvl0h]h(1) ip netns exec ns0 bash (2) ip link set dev ipvl0 up (3) ip link set dev lo up (4) ip -4 addr add 127.0.0.1 dev lo (5) ip -4 addr add $IPADDR dev ipvl0 (6) ip -4 route add default via $ROUTER dev ipvl0}hjsbah}(h]h ]h"]h$]h&]hhuh1jxhhhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hFor ns1:: (1) ip netns exec ns1 bash (2) ip link set dev ipvl1 up (3) ip link set dev lo up (4) ip -4 addr add 127.0.0.1 dev lo (5) ip -4 addr add $IPADDR dev ipvl1 (6) ip -4 route add default via $ROUTER dev ipvl1h](h)}(h For ns1::h]hFor ns1:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubjy)}(h(1) ip netns exec ns1 bash (2) ip link set dev ipvl1 up (3) ip link set dev lo up (4) ip -4 addr add 127.0.0.1 dev lo (5) ip -4 addr add $IPADDR dev ipvl1 (6) ip -4 route add default via $ROUTER dev ipvl1h]h(1) ip netns exec ns1 bash (2) ip link set dev ipvl1 up (3) ip link set dev lo up (4) ip -4 addr add 127.0.0.1 dev lo (5) ip -4 addr add $IPADDR dev ipvl1 (6) ip -4 route add default via $ROUTER dev ipvl1}hjsbah}(h]h ]h"]h$]h&]hhuh1jxhhhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bullet-uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1jhj$hhhhhNubeh}(h]h ]h"]h$]h&]jAjBjCjDjEjFuh1jhjhhhhhKubeh}(h]example-configurationah ]h"]6. example configuration:ah$]h&]uh1hhhhhhhhKubeh}(h]ipvlan-driver-howtoah ]h"]ipvlan driver howtoah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjMerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(j'j$j/j,jVjSjRjOjjjjjjjjjjj4j1j[jXjjjjjju nametypes}(j'j/jVjRjjjjjj4j[jjjuh}(j$hj,j jSj2jOjYjjUjjtjjjjjjj1jjXj7jj^jjjju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.