sphinx.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/vrfmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/zh_TW/networking/vrfmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/it_IT/networking/vrfmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/ja_JP/networking/vrfmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/ko_KR/networking/vrfmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/sp_SP/networking/vrfmodnameN 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 route table 10 +-----------------------------+ | | | +------+ +------+ +-------------+ | eth1 | | eth2 | ... | bond1 | +------+ +------+ +-------------+ | | +------+ +------+ | eth8 | | eth9 | +------+ +------+h]hX+-----------------------------+ | vrf-blue | ===> route table 10 +-----------------------------+ | | | +------+ +------+ +-------------+ | eth1 | | eth2 | ... | bond1 | +------+ +------+ +-------------+ | | +------+ +------+ | eth8 | | eth9 | +------+ +------+}hj'sbah}(h]h ]h"]h$]h&]hhuh1j%hhhK"hjhhubh)}(hXPackets received on an enslaved device and are switched to the VRF device in the IPv4 and IPv6 processing stacks giving the impression that packets flow through the VRF device. Similarly on egress routing rules are used to send packets to the VRF device driver before getting sent out the actual interface. This allows tcpdump on a VRF device to capture all packets into and out of the VRF as a whole\ [1]_. Similarly, netfilter\ [2]_ and tc rules can be applied using the VRF device to specify rules that apply to the VRF domain as a whole.h](hXPackets received on an enslaved device and are switched to the VRF device in the IPv4 and IPv6 processing stacks giving the impression that packets flow through the VRF device. Similarly on egress routing rules are used to send packets to the VRF device driver before getting sent out the actual interface. This allows tcpdump on a VRF device to capture all packets into and out of the VRF as a whole }(hj5hhhNhNubhfootnote_reference)}(h[1]_h]h1}(hj?hhhNhNubah}(h]id1ah ]h"]h$]h&]refidid3docnamenetworking/vrfuh1j=hj5resolvedKubh. Similarly, netfilter }(hj5hhhNhNubj>)}(h[2]_h]h2}(hjWhhhNhNubah}(h]id2ah ]h"]h$]h&]jNid4jPjQuh1j=hj5jRKubhk and tc rules can be applied using the VRF device to specify rules that apply to the VRF domain as a whole.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK.hjhhubhfootnote)}(hPackets in the forwarded state do not flow through the device, so those packets are not seen by tcpdump. Will revisit this limitation in a future release. h](hlabel)}(h1h]h1}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjsubh)}(hPackets in the forwarded state do not flow through the device, so those packets are not seen by tcpdump. Will revisit this limitation in a future release.h]hPackets in the forwarded state do not flow through the device, so those packets are not seen by tcpdump. Will revisit this limitation in a future release.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hjsubeh}(h]jOah ]h"]1ah$]h&]jIajPjQuh1jqhhhK7hjhhjRKubjr)}(hXIptables on ingress supports PREROUTING with skb->dev set to the real ingress device and both INPUT and PREROUTING rules with skb->dev set to the VRF device. For egress POSTROUTING and OUTPUT rules can be written using either the VRF device or real egress device. h](jx)}(h2h]h2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjubh)}(hXIptables on ingress supports PREROUTING with skb->dev set to the real ingress device and both INPUT and PREROUTING rules with skb->dev set to the VRF device. For egress POSTROUTING and OUTPUT rules can be written using either the VRF device or real egress device.h]hXIptables on ingress supports PREROUTING with skb->dev set to the real ingress device and both INPUT and PREROUTING rules with skb->dev set to the VRF device. For egress POSTROUTING and OUTPUT rules can be written using either the VRF device or real egress device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK;hjubeh}(h]jfah ]h"]2ah$]h&]jaajPjQuh1jqhhhK;hjhhjRKubeh}(h]designah ]h"]designah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hSetuph]hSetup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKAubhenumerated_list)}(hhh](h list_item)}(hVRF device is created with an association to a FIB table. e.g,:: ip link add vrf-blue type vrf table 10 ip link set dev vrf-blue up h](h)}(h@VRF device is created with an association to a FIB table. e.g,::h]h?VRF device is created with an association to a FIB table. e.g,:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKBhjubj&)}(hBip link add vrf-blue type vrf table 10 ip link set dev vrf-blue uph]hBip link add vrf-blue type vrf table 10 ip link set dev vrf-blue up}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhKEhjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hXAn l3mdev FIB rule directs lookups to the table associated with the device. A single l3mdev rule is sufficient for all VRFs. The VRF device adds the l3mdev rule for IPv4 and IPv6 when the first device is created with a default preference of 1000. Users may delete the rule if desired and add with a different priority or install per-VRF rules. Prior to the v4.8 kernel iif and oif rules are needed for each VRF device:: ip ru add oif vrf-blue table 10 ip ru add iif vrf-blue table 10 h](h)}(hXWAn l3mdev FIB rule directs lookups to the table associated with the device. A single l3mdev rule is sufficient for all VRFs. The VRF device adds the l3mdev rule for IPv4 and IPv6 when the first device is created with a default preference of 1000. Users may delete the rule if desired and add with a different priority or install per-VRF rules.h]hXWAn l3mdev FIB rule directs lookups to the table associated with the device. A single l3mdev rule is sufficient for all VRFs. The VRF device adds the l3mdev rule for IPv4 and IPv6 when the first device is created with a default preference of 1000. Users may delete the rule if desired and add with a different priority or install per-VRF rules.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhj ubh)}(hKPrior to the v4.8 kernel iif and oif rules are needed for each VRF device::h]hJPrior to the v4.8 kernel iif and oif rules are needed for each VRF device:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKNhj ubj&)}(h?ip ru add oif vrf-blue table 10 ip ru add iif vrf-blue table 10h]h?ip ru add oif vrf-blue table 10 ip ru add iif vrf-blue table 10}hj)sbah}(h]h ]h"]h$]h&]hhuh1j%hhhKPhj ubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hXSet the default route for the table (and hence default route for the VRF):: ip route add table 10 unreachable default metric 4278198272 This high metric value ensures that the default unreachable route can be overridden by a routing protocol suite. FRRouting interprets kernel metrics as a combined admin distance (upper byte) and priority (lower 3 bytes). Thus the above metric translates to [255/8192]. h](h)}(hKSet the default route for the table (and hence default route for the VRF)::h]hJSet the default route for the table (and hence default route for the VRF):}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKShj=ubj&)}(h;ip route add table 10 unreachable default metric 4278198272h]h;ip route add table 10 unreachable default metric 4278198272}hjOsbah}(h]h ]h"]h$]h&]hhuh1j%hhhKUhj=ubh)}(hXThis high metric value ensures that the default unreachable route can be overridden by a routing protocol suite. FRRouting interprets kernel metrics as a combined admin distance (upper byte) and priority (lower 3 bytes). Thus the above metric translates to [255/8192].h]hXThis high metric value ensures that the default unreachable route can be overridden by a routing protocol suite. FRRouting interprets kernel metrics as a combined admin distance (upper byte) and priority (lower 3 bytes). Thus the above metric translates to [255/8192].}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKWhj=ubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hXEnslave L3 interfaces to a VRF device:: ip link set dev eth1 master vrf-blue Local and connected routes for enslaved devices are automatically moved to the table associated with VRF device. Any additional routes depending on the enslaved device are dropped and will need to be reinserted to the VRF FIB table following the enslavement. The IPv6 sysctl option keep_addr_on_down can be enabled to keep IPv6 global addresses as VRF enslavement changes:: sysctl -w net.ipv6.conf.all.keep_addr_on_down=1 h](h)}(h'Enslave L3 interfaces to a VRF device::h]h&Enslave L3 interfaces to a VRF device:}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK\hjqubj&)}(h$ip link set dev eth1 master vrf-blueh]h$ip link set dev eth1 master vrf-blue}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhK^hjqubh)}(hXLocal and connected routes for enslaved devices are automatically moved to the table associated with VRF device. Any additional routes depending on the enslaved device are dropped and will need to be reinserted to the VRF FIB table following the enslavement.h]hXLocal and connected routes for enslaved devices are automatically moved to the table associated with VRF device. Any additional routes depending on the enslaved device are dropped and will need to be reinserted to the VRF FIB table following the enslavement.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK`hjqubh)}(hrThe IPv6 sysctl option keep_addr_on_down can be enabled to keep IPv6 global addresses as VRF enslavement changes::h]hqThe IPv6 sysctl option keep_addr_on_down can be enabled to keep IPv6 global addresses as VRF enslavement changes:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKehjqubj&)}(h/sysctl -w net.ipv6.conf.all.keep_addr_on_down=1h]h/sysctl -w net.ipv6.conf.all.keep_addr_on_down=1}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhKhhjqubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hVAdditional VRF routes are added to associated table:: ip route add table 10 ... h](h)}(h5Additional VRF routes are added to associated table::h]h4Additional VRF routes are added to associated table:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKjhjubj&)}(hip route add table 10 ...h]hip route add table 10 ...}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhKlhjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1jhjhhhhhKBubeh}(h]setupah ]h"]setupah$]h&]uh1hhhhhhhhKAubh)}(hhh](h)}(h Applicationsh]h Applications}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKpubh)}(hXApplications that are to work within a VRF need to bind their socket to the VRF device::h]hWApplications that are to work within a VRF need to bind their socket to the VRF device:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKqhjhhubj&)}(h@setsockopt(sd, SOL_SOCKET, SO_BINDTODEVICE, dev, strlen(dev)+1);h]h@setsockopt(sd, SOL_SOCKET, SO_BINDTODEVICE, dev, strlen(dev)+1);}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhKthjhhubh)}(h:or to specify the output device using cmsg and IP_PKTINFO.h]h:or to specify the output device using cmsg and IP_PKTINFO.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKvhjhhubh)}(hBy default the scope of the port bindings for unbound sockets is limited to the default VRF. That is, it will not be matched by packets arriving on interfaces enslaved to an l3mdev and processes may bind to the same port if they bind to an l3mdev.h]hBy default the scope of the port bindings for unbound sockets is limited to the default VRF. That is, it will not be matched by packets arriving on interfaces enslaved to an l3mdev and processes may bind to the same port if they bind to an l3mdev.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKxhjhhubh)}(hTCP & UDP services running in the default VRF context (ie., not bound to any VRF device) can work across all VRF domains by enabling the tcp_l3mdev_accept and udp_l3mdev_accept sysctl options::h]hTCP & UDP services running in the default VRF context (ie., not bound to any VRF device) can work across all VRF domains by enabling the tcp_l3mdev_accept and udp_l3mdev_accept sysctl options:}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK}hjhhubj&)}(hMsysctl -w net.ipv4.tcp_l3mdev_accept=1 sysctl -w net.ipv4.udp_l3mdev_accept=1h]hMsysctl -w net.ipv4.tcp_l3mdev_accept=1 sysctl -w net.ipv4.udp_l3mdev_accept=1}hjQsbah}(h]h ]h"]h$]h&]hhuh1j%hhhKhjhhubh)}(hXThese options are disabled by default so that a socket in a VRF is only selected for packets in that VRF. There is a similar option for RAW sockets, which is enabled by default for reasons of backwards compatibility. This is so as to specify the output device with cmsg and IP_PKTINFO, but using a socket not bound to the corresponding VRF. This allows e.g. older ping implementations to be run with specifying the device but without executing it in the VRF. This option can be disabled so that packets received in a VRF context are only handled by a raw socket bound to the VRF, and packets in the default VRF are only handled by a socket not bound to any VRF::h]hXThese options are disabled by default so that a socket in a VRF is only selected for packets in that VRF. There is a similar option for RAW sockets, which is enabled by default for reasons of backwards compatibility. This is so as to specify the output device with cmsg and IP_PKTINFO, but using a socket not bound to the corresponding VRF. This allows e.g. older ping implementations to be run with specifying the device but without executing it in the VRF. This option can be disabled so that packets received in a VRF context are only handled by a raw socket bound to the VRF, and packets in the default VRF are only handled by a socket not bound to any VRF:}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj&)}(h&sysctl -w net.ipv4.raw_l3mdev_accept=0h]h&sysctl -w net.ipv4.raw_l3mdev_accept=0}hjmsbah}(h]h ]h"]h$]h&]hhuh1j%hhhKhjhhubh)}(hunetfilter rules on the VRF device can be used to limit access to services running in the default VRF context as well.h]hunetfilter rules on the VRF device can be used to limit access to services running in the default VRF context as well.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hX|Using VRF-aware applications (applications which simultaneously create sockets outside and inside VRFs) in conjunction with ``net.ipv4.tcp_l3mdev_accept=1`` is possible but may lead to problems in some situations. With that sysctl value, it is unspecified which listening socket will be selected to handle connections for VRF traffic; ie. either a socket bound to the VRF or an unbound socket may be used to accept new connections from a VRF. This somewhat unexpected behavior can lead to problems if sockets are configured with extra options (ex. TCP MD5 keys) with the expectation that VRF traffic will exclusively be handled by sockets bound to VRFs, as would be the case with ``net.ipv4.tcp_l3mdev_accept=0``. Finally and as a reminder, regardless of which listening socket is selected, established sockets will be created in the VRF based on the ingress interface, as documented earlier.h](h|Using VRF-aware applications (applications which simultaneously create sockets outside and inside VRFs) in conjunction with }(hjhhhNhNubhliteral)}(h ``net.ipv4.tcp_l3mdev_accept=1``h]hnet.ipv4.tcp_l3mdev_accept=1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX  is possible but may lead to problems in some situations. With that sysctl value, it is unspecified which listening socket will be selected to handle connections for VRF traffic; ie. either a socket bound to the VRF or an unbound socket may be used to accept new connections from a VRF. This somewhat unexpected behavior can lead to problems if sockets are configured with extra options (ex. TCP MD5 keys) with the expectation that VRF traffic will exclusively be handled by sockets bound to VRFs, as would be the case with }(hjhhhNhNubj)}(h ``net.ipv4.tcp_l3mdev_accept=0``h]hnet.ipv4.tcp_l3mdev_accept=0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. Finally and as a reminder, regardless of which listening socket is selected, established sockets will be created in the VRF based on the ingress interface, as documented earlier.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h] applicationsah ]h"] applicationsah$]h&]uh1hhhhhhhhKpubeh}(h]the-vrf-deviceah ]h"]the vrf deviceah$]h&]uh1hhhhhhhhKubh transition)}(hP--------------------------------------------------------------------------------h]h}(h]h ]h"]h$]h&]uh1jhhhKhhhhubh)}(hhh](h)}(hUsing iproute2 for VRFsh]hUsing iproute2 for VRFs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hiproute2 supports the vrf keyword as of v4.7. For backwards compatibility this section lists both commands where appropriate -- with the vrf keyword and the older form without it.h]hiproute2 supports the vrf keyword as of v4.7. For backwards compatibility this section lists both commands where appropriate -- with the vrf keyword and the older form without it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hhh](j)}(hXCreate a VRF To instantiate a VRF device and associate it with a table:: $ ip link add dev NAME type vrf table ID As of v4.8 the kernel supports the l3mdev FIB rule where a single rule covers all VRFs. The l3mdev rule is created for IPv4 and IPv6 on first device create. h](h)}(h Create a VRFh]h Create a VRF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h;To instantiate a VRF device and associate it with a table::h]h:To instantiate a VRF device and associate it with a table:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj&)}(h($ ip link add dev NAME type vrf table IDh]h($ ip link add dev NAME type vrf table ID}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhKhjubh)}(hAs of v4.8 the kernel supports the l3mdev FIB rule where a single rule covers all VRFs. The l3mdev rule is created for IPv4 and IPv6 on first device create.h]hAs of v4.8 the kernel supports the l3mdev FIB rule where a single rule covers all VRFs. The l3mdev rule is created for IPv4 and IPv6 on first device create.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hXList VRFs To list VRFs that have been created:: $ ip [-d] link show type vrf NOTE: The -d option is needed to show the table id For example:: $ ip -d link show type vrf 11: mgmt: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 72:b3:ba:91:e2:24 brd ff:ff:ff:ff:ff:ff promiscuity 0 vrf table 1 addrgenmode eui64 12: red: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether b6:6f:6e:f6:da:73 brd ff:ff:ff:ff:ff:ff promiscuity 0 vrf table 10 addrgenmode eui64 13: blue: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 36:62:e8:7d:bb:8c brd ff:ff:ff:ff:ff:ff promiscuity 0 vrf table 66 addrgenmode eui64 14: green: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether e6:28:b8:63:70:bb brd ff:ff:ff:ff:ff:ff promiscuity 0 vrf table 81 addrgenmode eui64 Or in brief output:: $ ip -br link show type vrf mgmt UP 72:b3:ba:91:e2:24 red UP b6:6f:6e:f6:da:73 blue UP 36:62:e8:7d:bb:8c green UP e6:28:b8:63:70:bb h](h)}(h List VRFsh]h List VRFs}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj=ubh)}(h%To list VRFs that have been created::h]h$To list VRFs that have been created:}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj=ubj&)}(hQ$ ip [-d] link show type vrf NOTE: The -d option is needed to show the table idh]hQ$ ip [-d] link show type vrf NOTE: The -d option is needed to show the table id}hj]sbah}(h]h ]h"]h$]h&]hhuh1j%hhhKhj=ubh)}(h For example::h]h For example:}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj=ubj&)}(hXm$ ip -d link show type vrf 11: mgmt: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 72:b3:ba:91:e2:24 brd ff:ff:ff:ff:ff:ff promiscuity 0 vrf table 1 addrgenmode eui64 12: red: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether b6:6f:6e:f6:da:73 brd ff:ff:ff:ff:ff:ff promiscuity 0 vrf table 10 addrgenmode eui64 13: blue: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 36:62:e8:7d:bb:8c brd ff:ff:ff:ff:ff:ff promiscuity 0 vrf table 66 addrgenmode eui64 14: green: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether e6:28:b8:63:70:bb brd ff:ff:ff:ff:ff:ff promiscuity 0 vrf table 81 addrgenmode eui64h]hXm$ ip -d link show type vrf 11: mgmt: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 72:b3:ba:91:e2:24 brd ff:ff:ff:ff:ff:ff promiscuity 0 vrf table 1 addrgenmode eui64 12: red: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether b6:6f:6e:f6:da:73 brd ff:ff:ff:ff:ff:ff promiscuity 0 vrf table 10 addrgenmode eui64 13: blue: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 36:62:e8:7d:bb:8c brd ff:ff:ff:ff:ff:ff promiscuity 0 vrf table 66 addrgenmode eui64 14: green: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether e6:28:b8:63:70:bb brd ff:ff:ff:ff:ff:ff promiscuity 0 vrf table 81 addrgenmode eui64}hjysbah}(h]h ]h"]h$]h&]hhuh1j%hhhKhj=ubh)}(hOr in brief output::h]hOr in brief output:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj=ubj&)}(hX?$ ip -br link show type vrf mgmt UP 72:b3:ba:91:e2:24 red UP b6:6f:6e:f6:da:73 blue UP 36:62:e8:7d:bb:8c green UP e6:28:b8:63:70:bb h]hX?$ ip -br link show type vrf mgmt UP 72:b3:ba:91:e2:24 red UP b6:6f:6e:f6:da:73 blue UP 36:62:e8:7d:bb:8c green UP e6:28:b8:63:70:bb }hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhKhj=ubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hXKAssign a Network Interface to a VRF Network interfaces are assigned to a VRF by enslaving the netdevice to a VRF device:: $ ip link set dev NAME master NAME On enslavement connected and local routes are automatically moved to the table associated with the VRF device. For example:: $ ip link set dev eth0 master mgmt h](h)}(h#Assign a Network Interface to a VRFh]h#Assign a Network Interface to a VRF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hUNetwork interfaces are assigned to a VRF by enslaving the netdevice to a VRF device::h]hTNetwork interfaces are assigned to a VRF by enslaving the netdevice to a VRF device:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj&)}(h"$ ip link set dev NAME master NAMEh]h"$ ip link set dev NAME master NAME}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhKhjubh)}(hnOn enslavement connected and local routes are automatically moved to the table associated with the VRF device.h]hnOn enslavement connected and local routes are automatically moved to the table associated with the VRF device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h For example::h]h For example:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj&)}(h"$ ip link set dev eth0 master mgmth]h"$ ip link set dev eth0 master mgmt}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hXMShow Devices Assigned to a VRF To show devices that have been assigned to a specific VRF add the master option to the ip command:: $ ip link show vrf NAME $ ip link show master NAME For example:: $ ip link show vrf red 3: eth1: mtu 1500 qdisc pfifo_fast master red state UP mode DEFAULT group default qlen 1000 link/ether 02:00:00:00:02:02 brd ff:ff:ff:ff:ff:ff 4: eth2: mtu 1500 qdisc pfifo_fast master red state UP mode DEFAULT group default qlen 1000 link/ether 02:00:00:00:02:03 brd ff:ff:ff:ff:ff:ff 7: eth5: mtu 1500 qdisc noop master red state DOWN mode DEFAULT group default qlen 1000 link/ether 02:00:00:00:02:06 brd ff:ff:ff:ff:ff:ff Or using the brief output:: $ ip -br link show vrf red eth1 UP 02:00:00:00:02:02 eth2 UP 02:00:00:00:02:03 eth5 DOWN 02:00:00:00:02:06 h](h)}(hShow Devices Assigned to a VRFh]hShow Devices Assigned to a VRF}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hcTo show devices that have been assigned to a specific VRF add the master option to the ip command::h]hbTo show devices that have been assigned to a specific VRF add the master option to the ip command:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj&)}(h2$ ip link show vrf NAME $ ip link show master NAMEh]h2$ ip link show vrf NAME $ ip link show master NAME}hj'sbah}(h]h ]h"]h$]h&]hhuh1j%hhhKhjubh)}(h For example::h]h For example:}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj&)}(hX%$ ip link show vrf red 3: eth1: mtu 1500 qdisc pfifo_fast master red state UP mode DEFAULT group default qlen 1000 link/ether 02:00:00:00:02:02 brd ff:ff:ff:ff:ff:ff 4: eth2: mtu 1500 qdisc pfifo_fast master red state UP mode DEFAULT group default qlen 1000 link/ether 02:00:00:00:02:03 brd ff:ff:ff:ff:ff:ff 7: eth5: mtu 1500 qdisc noop master red state DOWN mode DEFAULT group default qlen 1000 link/ether 02:00:00:00:02:06 brd ff:ff:ff:ff:ff:ffh]hX%$ ip link show vrf red 3: eth1: mtu 1500 qdisc pfifo_fast master red state UP mode DEFAULT group default qlen 1000 link/ether 02:00:00:00:02:02 brd ff:ff:ff:ff:ff:ff 4: eth2: mtu 1500 qdisc pfifo_fast master red state UP mode DEFAULT group default qlen 1000 link/ether 02:00:00:00:02:03 brd ff:ff:ff:ff:ff:ff 7: eth5: mtu 1500 qdisc noop master red state DOWN mode DEFAULT group default qlen 1000 link/ether 02:00:00:00:02:06 brd ff:ff:ff:ff:ff:ff}hjCsbah}(h]h ]h"]h$]h&]hhuh1j%hhhKhjubh)}(hOr using the brief output::h]hOr using the brief output:}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj&)}(hX $ ip -br link show vrf red eth1 UP 02:00:00:00:02:02 eth2 UP 02:00:00:00:02:03 eth5 DOWN 02:00:00:00:02:06 h]hX $ ip -br link show vrf red eth1 UP 02:00:00:00:02:02 eth2 UP 02:00:00:00:02:03 eth5 DOWN 02:00:00:00:02:06 }hj_sbah}(h]h ]h"]h$]h&]hhuh1j%hhhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hXShow Neighbor Entries for a VRF To list neighbor entries associated with devices enslaved to a VRF device add the master option to the ip command:: $ ip [-6] neigh show vrf NAME $ ip [-6] neigh show master NAME For example:: $ ip neigh show vrf red 10.2.1.254 dev eth1 lladdr a6:d9:c7:4f:06:23 REACHABLE 10.2.2.254 dev eth2 lladdr 5e:54:01:6a:ee:80 REACHABLE $ ip -6 neigh show vrf red 2002:1::64 dev eth1 lladdr a6:d9:c7:4f:06:23 REACHABLE h](h)}(hShow Neighbor Entries for a VRFh]hShow Neighbor Entries for a VRF}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjsubh)}(hsTo list neighbor entries associated with devices enslaved to a VRF device add the master option to the ip command::h]hrTo list neighbor entries associated with devices enslaved to a VRF device add the master option to the ip command:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjsubj&)}(h>$ ip [-6] neigh show vrf NAME $ ip [-6] neigh show master NAMEh]h>$ ip [-6] neigh show vrf NAME $ ip [-6] neigh show master NAME}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhMhjsubh)}(h For example::h]h For example:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjsubj&)}(h$ ip neigh show vrf red 10.2.1.254 dev eth1 lladdr a6:d9:c7:4f:06:23 REACHABLE 10.2.2.254 dev eth2 lladdr 5e:54:01:6a:ee:80 REACHABLE $ ip -6 neigh show vrf red 2002:1::64 dev eth1 lladdr a6:d9:c7:4f:06:23 REACHABLEh]h$ ip neigh show vrf red 10.2.1.254 dev eth1 lladdr a6:d9:c7:4f:06:23 REACHABLE 10.2.2.254 dev eth2 lladdr 5e:54:01:6a:ee:80 REACHABLE $ ip -6 neigh show vrf red 2002:1::64 dev eth1 lladdr a6:d9:c7:4f:06:23 REACHABLE}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhMhjsubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hXDShow Addresses for a VRF To show addresses for interfaces associated with a VRF add the master option to the ip command:: $ ip addr show vrf NAME $ ip addr show master NAME For example:: $ ip addr show vrf red 3: eth1: mtu 1500 qdisc pfifo_fast master red state UP group default qlen 1000 link/ether 02:00:00:00:02:02 brd ff:ff:ff:ff:ff:ff inet 10.2.1.2/24 brd 10.2.1.255 scope global eth1 valid_lft forever preferred_lft forever inet6 2002:1::2/120 scope global valid_lft forever preferred_lft forever inet6 fe80::ff:fe00:202/64 scope link valid_lft forever preferred_lft forever 4: eth2: mtu 1500 qdisc pfifo_fast master red state UP group default qlen 1000 link/ether 02:00:00:00:02:03 brd ff:ff:ff:ff:ff:ff inet 10.2.2.2/24 brd 10.2.2.255 scope global eth2 valid_lft forever preferred_lft forever inet6 2002:2::2/120 scope global valid_lft forever preferred_lft forever inet6 fe80::ff:fe00:203/64 scope link valid_lft forever preferred_lft forever 7: eth5: mtu 1500 qdisc noop master red state DOWN group default qlen 1000 link/ether 02:00:00:00:02:06 brd ff:ff:ff:ff:ff:ff Or in brief format:: $ ip -br addr show vrf red eth1 UP 10.2.1.2/24 2002:1::2/120 fe80::ff:fe00:202/64 eth2 UP 10.2.2.2/24 2002:2::2/120 fe80::ff:fe00:203/64 eth5 DOWN h](h)}(hShow Addresses for a VRFh]hShow Addresses for a VRF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(h`To show addresses for interfaces associated with a VRF add the master option to the ip command::h]h_To show addresses for interfaces associated with a VRF add the master option to the ip command:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubj&)}(h2$ ip addr show vrf NAME $ ip addr show master NAMEh]h2$ ip addr show vrf NAME $ ip addr show master NAME}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhMhjubh)}(h For example::h]h For example:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubj&)}(hX"$ ip addr show vrf red 3: eth1: mtu 1500 qdisc pfifo_fast master red state UP group default qlen 1000 link/ether 02:00:00:00:02:02 brd ff:ff:ff:ff:ff:ff inet 10.2.1.2/24 brd 10.2.1.255 scope global eth1 valid_lft forever preferred_lft forever inet6 2002:1::2/120 scope global valid_lft forever preferred_lft forever inet6 fe80::ff:fe00:202/64 scope link valid_lft forever preferred_lft forever 4: eth2: mtu 1500 qdisc pfifo_fast master red state UP group default qlen 1000 link/ether 02:00:00:00:02:03 brd ff:ff:ff:ff:ff:ff inet 10.2.2.2/24 brd 10.2.2.255 scope global eth2 valid_lft forever preferred_lft forever inet6 2002:2::2/120 scope global valid_lft forever preferred_lft forever inet6 fe80::ff:fe00:203/64 scope link valid_lft forever preferred_lft forever 7: eth5: mtu 1500 qdisc noop master red state DOWN group default qlen 1000 link/ether 02:00:00:00:02:06 brd ff:ff:ff:ff:ff:ffh]hX"$ ip addr show vrf red 3: eth1: mtu 1500 qdisc pfifo_fast master red state UP group default qlen 1000 link/ether 02:00:00:00:02:02 brd ff:ff:ff:ff:ff:ff inet 10.2.1.2/24 brd 10.2.1.255 scope global eth1 valid_lft forever preferred_lft forever inet6 2002:1::2/120 scope global valid_lft forever preferred_lft forever inet6 fe80::ff:fe00:202/64 scope link valid_lft forever preferred_lft forever 4: eth2: mtu 1500 qdisc pfifo_fast master red state UP group default qlen 1000 link/ether 02:00:00:00:02:03 brd ff:ff:ff:ff:ff:ff inet 10.2.2.2/24 brd 10.2.2.255 scope global eth2 valid_lft forever preferred_lft forever inet6 2002:2::2/120 scope global valid_lft forever preferred_lft forever inet6 fe80::ff:fe00:203/64 scope link valid_lft forever preferred_lft forever 7: eth5: mtu 1500 qdisc noop master red state DOWN group default qlen 1000 link/ether 02:00:00:00:02:06 brd ff:ff:ff:ff:ff:ff}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhMhjubh)}(hOr in brief format::h]hOr in brief format:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM-hjubj&)}(h$ ip -br addr show vrf red eth1 UP 10.2.1.2/24 2002:1::2/120 fe80::ff:fe00:202/64 eth2 UP 10.2.2.2/24 2002:2::2/120 fe80::ff:fe00:203/64 eth5 DOWNh]h$ ip -br addr show vrf red eth1 UP 10.2.1.2/24 2002:1::2/120 fe80::ff:fe00:202/64 eth2 UP 10.2.2.2/24 2002:2::2/120 fe80::ff:fe00:203/64 eth5 DOWN}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhM/hjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hXJShow Routes for a VRF To show routes for a VRF use the ip command to display the table associated with the VRF device:: $ ip [-6] route show vrf NAME $ ip [-6] route show table ID For example:: $ ip route show vrf red unreachable default metric 4278198272 broadcast 10.2.1.0 dev eth1 proto kernel scope link src 10.2.1.2 10.2.1.0/24 dev eth1 proto kernel scope link src 10.2.1.2 local 10.2.1.2 dev eth1 proto kernel scope host src 10.2.1.2 broadcast 10.2.1.255 dev eth1 proto kernel scope link src 10.2.1.2 broadcast 10.2.2.0 dev eth2 proto kernel scope link src 10.2.2.2 10.2.2.0/24 dev eth2 proto kernel scope link src 10.2.2.2 local 10.2.2.2 dev eth2 proto kernel scope host src 10.2.2.2 broadcast 10.2.2.255 dev eth2 proto kernel scope link src 10.2.2.2 $ ip -6 route show vrf red local 2002:1:: dev lo proto none metric 0 pref medium local 2002:1::2 dev lo proto none metric 0 pref medium 2002:1::/120 dev eth1 proto kernel metric 256 pref medium local 2002:2:: dev lo proto none metric 0 pref medium local 2002:2::2 dev lo proto none metric 0 pref medium 2002:2::/120 dev eth2 proto kernel metric 256 pref medium local fe80:: dev lo proto none metric 0 pref medium local fe80:: dev lo proto none metric 0 pref medium local fe80::ff:fe00:202 dev lo proto none metric 0 pref medium local fe80::ff:fe00:203 dev lo proto none metric 0 pref medium fe80::/64 dev eth1 proto kernel metric 256 pref medium fe80::/64 dev eth2 proto kernel metric 256 pref medium ff00::/8 dev red metric 256 pref medium ff00::/8 dev eth1 metric 256 pref medium ff00::/8 dev eth2 metric 256 pref medium unreachable default dev lo metric 4278198272 error -101 pref medium h](h)}(hShow Routes for a VRFh]hShow Routes for a VRF}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM5hj/ubh)}(haTo show routes for a VRF use the ip command to display the table associated with the VRF device::h]h`To show routes for a VRF use the ip command to display the table associated with the VRF device:}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM7hj/ubj&)}(h;$ ip [-6] route show vrf NAME $ ip [-6] route show table IDh]h;$ ip [-6] route show vrf NAME $ ip [-6] route show table ID}hjOsbah}(h]h ]h"]h$]h&]hhuh1j%hhhM:hj/ubh)}(h For example::h]h For example:}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM=hj/ubj&)}(hX$ ip route show vrf red unreachable default metric 4278198272 broadcast 10.2.1.0 dev eth1 proto kernel scope link src 10.2.1.2 10.2.1.0/24 dev eth1 proto kernel scope link src 10.2.1.2 local 10.2.1.2 dev eth1 proto kernel scope host src 10.2.1.2 broadcast 10.2.1.255 dev eth1 proto kernel scope link src 10.2.1.2 broadcast 10.2.2.0 dev eth2 proto kernel scope link src 10.2.2.2 10.2.2.0/24 dev eth2 proto kernel scope link src 10.2.2.2 local 10.2.2.2 dev eth2 proto kernel scope host src 10.2.2.2 broadcast 10.2.2.255 dev eth2 proto kernel scope link src 10.2.2.2 $ ip -6 route show vrf red local 2002:1:: dev lo proto none metric 0 pref medium local 2002:1::2 dev lo proto none metric 0 pref medium 2002:1::/120 dev eth1 proto kernel metric 256 pref medium local 2002:2:: dev lo proto none metric 0 pref medium local 2002:2::2 dev lo proto none metric 0 pref medium 2002:2::/120 dev eth2 proto kernel metric 256 pref medium local fe80:: dev lo proto none metric 0 pref medium local fe80:: dev lo proto none metric 0 pref medium local fe80::ff:fe00:202 dev lo proto none metric 0 pref medium local fe80::ff:fe00:203 dev lo proto none metric 0 pref medium fe80::/64 dev eth1 proto kernel metric 256 pref medium fe80::/64 dev eth2 proto kernel metric 256 pref medium ff00::/8 dev red metric 256 pref medium ff00::/8 dev eth1 metric 256 pref medium ff00::/8 dev eth2 metric 256 pref medium unreachable default dev lo metric 4278198272 error -101 pref mediumh]hX$ ip route show vrf red unreachable default metric 4278198272 broadcast 10.2.1.0 dev eth1 proto kernel scope link src 10.2.1.2 10.2.1.0/24 dev eth1 proto kernel scope link src 10.2.1.2 local 10.2.1.2 dev eth1 proto kernel scope host src 10.2.1.2 broadcast 10.2.1.255 dev eth1 proto kernel scope link src 10.2.1.2 broadcast 10.2.2.0 dev eth2 proto kernel scope link src 10.2.2.2 10.2.2.0/24 dev eth2 proto kernel scope link src 10.2.2.2 local 10.2.2.2 dev eth2 proto kernel scope host src 10.2.2.2 broadcast 10.2.2.255 dev eth2 proto kernel scope link src 10.2.2.2 $ ip -6 route show vrf red local 2002:1:: dev lo proto none metric 0 pref medium local 2002:1::2 dev lo proto none metric 0 pref medium 2002:1::/120 dev eth1 proto kernel metric 256 pref medium local 2002:2:: dev lo proto none metric 0 pref medium local 2002:2::2 dev lo proto none metric 0 pref medium 2002:2::/120 dev eth2 proto kernel metric 256 pref medium local fe80:: dev lo proto none metric 0 pref medium local fe80:: dev lo proto none metric 0 pref medium local fe80::ff:fe00:202 dev lo proto none metric 0 pref medium local fe80::ff:fe00:203 dev lo proto none metric 0 pref medium fe80::/64 dev eth1 proto kernel metric 256 pref medium fe80::/64 dev eth2 proto kernel metric 256 pref medium ff00::/8 dev red metric 256 pref medium ff00::/8 dev eth1 metric 256 pref medium ff00::/8 dev eth2 metric 256 pref medium unreachable default dev lo metric 4278198272 error -101 pref medium}hjksbah}(h]h ]h"]h$]h&]hhuh1j%hhhM?hj/ubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hXRoute Lookup for a VRF A test route lookup can be done for a VRF:: $ ip [-6] route get vrf NAME ADDRESS $ ip [-6] route get oif NAME ADDRESS For example:: $ ip route get 10.2.1.40 vrf red 10.2.1.40 dev eth1 table red src 10.2.1.2 cache $ ip -6 route get 2002:1::32 vrf red 2002:1::32 from :: dev eth1 table red proto kernel src 2002:1::2 metric 256 pref medium h](h)}(hRoute Lookup for a VRFh]hRoute Lookup for a VRF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM\hjubh)}(h+A test route lookup can be done for a VRF::h]h*A test route lookup can be done for a VRF:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM^hjubj&)}(hI$ ip [-6] route get vrf NAME ADDRESS $ ip [-6] route get oif NAME ADDRESSh]hI$ ip [-6] route get vrf NAME ADDRESS $ ip [-6] route get oif NAME ADDRESS}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhM`hjubh)}(h For example::h]h For example:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMchjubj&)}(h$ ip route get 10.2.1.40 vrf red 10.2.1.40 dev eth1 table red src 10.2.1.2 cache $ ip -6 route get 2002:1::32 vrf red 2002:1::32 from :: dev eth1 table red proto kernel src 2002:1::2 metric 256 pref mediumh]h$ ip route get 10.2.1.40 vrf red 10.2.1.40 dev eth1 table red src 10.2.1.2 cache $ ip -6 route get 2002:1::32 vrf red 2002:1::32 from :: dev eth1 table red proto kernel src 2002:1::2 metric 256 pref medium}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhMehjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hX=Removing Network Interface from a VRF Network interfaces are removed from a VRF by breaking the enslavement to the VRF device:: $ ip link set dev NAME nomaster Connected routes are moved back to the default table and local entries are moved to the local table. For example:: $ ip link set dev eth0 nomaster h](h)}(h%Removing Network Interface from a VRFh]h%Removing Network Interface from a VRF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMmhjubh)}(hYNetwork interfaces are removed from a VRF by breaking the enslavement to the VRF device::h]hXNetwork interfaces are removed from a VRF by breaking the enslavement to the VRF device:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMohjubj&)}(h$ ip link set dev NAME nomasterh]h$ ip link set dev NAME nomaster}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhMrhjubh)}(hdConnected routes are moved back to the default table and local entries are moved to the local table.h]hdConnected routes are moved back to the default table and local entries are moved to the local table.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMthjubh)}(h For example::h]h For example:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMwhjubj&)}(h$ ip link set dev eth0 nomasterh]h$ ip link set dev eth0 nomaster}hjsbah}(h]h ]h"]h$]h&]hhuh1j%hhhMyhjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhjhhhhhKubj)}(hP--------------------------------------------------------------------------------h]h}(h]h ]h"]h$]h&]uh1jhhhM{hjhhubh)}(hCommands used in this example::h]hCommands used in this example:}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM}hjhhubj&)}(hXcat >> /etc/iproute2/rt_tables.d/vrf.conf <> /etc/iproute2/rt_tables.d/vrf.conf <