Home
last modified time | relevance | path

Searched refs:vrf (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v4.19/tools/testing/selftests/net/forwarding/
Drouter_multipath.sh11 ip link set dev $h1 master vrf-h1
13 ip link set dev vrf-h1 up
19 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
20 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
25 ip route del 2001:db8:2::/64 vrf vrf-h1
26 ip route del 198.51.100.0/24 vrf vrf-h1
38 ip link set dev $h2 master vrf-h2
40 ip link set dev vrf-h2 up
46 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
47 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1
[all …]
Drouter_broadcast.sh11 ip link set dev $h1 master vrf-h1
13 ip link set dev vrf-h1 up
18 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
19 ip route add 198.51.200.0/24 vrf vrf-h1 nexthop via 192.0.2.1
24 ip route del 198.51.200.0/24 vrf vrf-h1
25 ip route del 198.51.100.0/24 vrf vrf-h1
36 ip link set dev $h2 master vrf-h2
38 ip link set dev vrf-h2 up
43 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
44 ip route add 198.51.200.0/24 vrf vrf-h2 nexthop via 198.51.100.1
[all …]
Drouter.sh11 ip link set dev $h1 master vrf-h1
13 ip link set dev vrf-h1 up
19 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
20 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
25 ip route del 2001:db8:2::/64 vrf vrf-h1
26 ip route del 198.51.100.0/24 vrf vrf-h1
38 ip link set dev $h2 master vrf-h2
40 ip link set dev vrf-h2 up
46 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
47 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1
[all …]
Dmirror_gre_lag_lacp.sh82 vlan_host_create $h1 333 vrf-h1 192.0.2.1/28
83 ip -4 route add 192.0.2.16/28 vrf vrf-h1 nexthop via 192.0.2.2
88 ip -4 route del 192.0.2.16/28 vrf vrf-h1
89 vlan_host_destroy $h1 333 vrf-h1
94 vlan_host_create $h1 555 vrf-h2 192.0.2.18/28
95 ip -4 route add 192.0.2.0/28 vrf vrf-h2 nexthop via 192.0.2.17
100 ip -4 route del 192.0.2.0/28 vrf vrf-h2
101 vlan_host_destroy $h1 555 vrf-h2
107 __simple_if_init lag2 vrf-h3 192.0.2.130/32
108 ip -4 route add vrf vrf-h3 192.0.2.129/32 dev lag2
[all …]
Dgre_multipath.sh69 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2
74 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2
87 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130
91 ip route add vrf v$ol1 192.0.2.82/32 via 192.0.2.146
93 ip route add vrf v$ol1 192.0.2.16/28 \
108 ip route del vrf v$ol1 192.0.2.16/28
110 ip route del vrf v$ol1 192.0.2.82/32 via 192.0.2.146
114 ip route del vrf v$ol1 192.0.2.66/32 via 192.0.2.130
133 ip route add vrf v$ol2 192.0.2.65/32 via 192.0.2.129
137 ip route add vrf v$ol2 192.0.2.81/32 via 192.0.2.145
[all …]
Dmirror_gre_bridge_1q_lag.sh84 vlan_host_create $h1 333 vrf-h1 192.0.2.1/28
85 ip -4 route add 192.0.2.16/28 vrf vrf-h1 nexthop via 192.0.2.2
90 ip -4 route del 192.0.2.16/28 vrf vrf-h1
91 vlan_host_destroy $h1 333 vrf-h1
96 vlan_host_create $h1 555 vrf-h2 192.0.2.18/28
97 ip -4 route add 192.0.2.0/28 vrf vrf-h2 nexthop via 192.0.2.17
102 ip -4 route del 192.0.2.0/28 vrf vrf-h2
103 vlan_host_destroy $h1 555 vrf-h2
232 mirror_test vrf-h1 192.0.2.1 192.0.2.18 $host_dev 1 10
237 mirror_test vrf-h1 192.0.2.1 192.0.2.18 $h3 1 0
[all …]
Drouter_bridge.sh14 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2
15 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2
20 ip -6 route del 2001:db8:2::/64 vrf v$h1
21 ip -4 route del 192.0.2.128/28 vrf v$h1
28 ip -4 route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.129
29 ip -6 route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::1
34 ip -6 route del 2001:db8:1::/64 vrf v$h2
35 ip -4 route del 192.0.2.0/28 vrf v$h2
Drouter_bridge_vlan.sh16 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2
17 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2
22 ip -6 route del 2001:db8:2::/64 vrf v$h1
23 ip -4 route del 192.0.2.128/28 vrf v$h1
31 ip -4 route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.129
32 ip -6 route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::1
37 ip -6 route del 2001:db8:1::/64 vrf v$h2
38 ip -4 route del 192.0.2.0/28 vrf v$h2
Dmirror_gre_bound.sh80 ip link set h3-gt4 vrf v$h3
84 ip link set h3-gt6 vrf v$h3
121 vrf_create vrf-ol
122 ip link set dev vrf-ol up
126 ip link set dev gt4 master vrf-ol
131 ip link set dev gt6 master vrf-ol
137 vrf_destroy vrf-ol
Dmirror_gre_topo_lib.sh43 ip link set h3-gt4 vrf v$h3
47 ip link set h3-gt6 vrf v$h3
Dlib.sh322 ip link add dev $vrf_name type vrf table $tb_id
430 local vrf=$1; shift
435 if [ "$vrf" != "" ]; then
436 ip link set dev $name master $vrf
771 ip vrf exec $vrf_name $PING $dip -c 10 -i 0.1 -w 2 &> /dev/null
790 ip vrf exec $vrf_name $PING6 $dip -c 10 -i 0.1 -w 2 &> /dev/null
DREADME17 vrf-h1 | vrf-h2
Dmirror_lib.sh33 ip vrf exec $vrf_name \
/Linux-v4.19/drivers/net/
Dvrf.c401 struct net_vrf *vrf = netdev_priv(vrf_dev); in vrf_ip6_out_redirect() local
407 rt6 = rcu_dereference(vrf->rt6); in vrf_ip6_out_redirect()
476 static void vrf_rt6_release(struct net_device *dev, struct net_vrf *vrf) in vrf_rt6_release() argument
478 struct rt6_info *rt6 = rtnl_dereference(vrf->rt6); in vrf_rt6_release()
482 RCU_INIT_POINTER(vrf->rt6, NULL); in vrf_rt6_release()
500 struct net_vrf *vrf = netdev_priv(dev); in vrf_rt6_create() local
509 vrf->fib6_table = fib6_new_table(net, vrf->tb_id); in vrf_rt6_create()
510 if (!vrf->fib6_table) in vrf_rt6_create()
520 rcu_assign_pointer(vrf->rt6, rt6); in vrf_rt6_create()
534 static void vrf_rt6_release(struct net_device *dev, struct net_vrf *vrf) in vrf_rt6_release() argument
[all …]
DMakefile33 obj-$(CONFIG_NET_VRF) += vrf.o
/Linux-v4.19/Documentation/networking/
Dvrf.txt28 | vrf-blue | ===> route table 10
60 e.g, ip link add vrf-blue type vrf table 10
61 ip link set dev vrf-blue up
70 ip ru add oif vrf-blue table 10
71 ip ru add iif vrf-blue table 10
82 ip link set dev eth1 master vrf-blue
123 iproute2 supports the vrf keyword as of v4.7. For backwards compatibility this
124 section lists both commands where appropriate -- with the vrf keyword and the
130 $ ip link add dev NAME type vrf table ID
139 $ ip [-d] link show type vrf
[all …]
/Linux-v4.19/tools/testing/selftests/drivers/net/mlxsw/
Dqos_dscp_router.sh60 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2
65 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2
76 ip route add vrf v$h2 192.0.2.0/28 via 192.0.2.17
81 ip route del vrf v$h2 192.0.2.0/28 via 192.0.2.17
172 ip vrf exec $vrf_name \
Dmirror_gre.sh26 ip link set h3-gt6-key vrf v$h3
51 ip link set h3-gt6-soft vrf v$h3
58 ip link set dev v2 vrf v$h3
Dqos_dscp_bridge.sh151 ip vrf exec $vrf_name \
Dmirror_gre_scale.sh76 ip link set $htun vrf v$h3
/Linux-v4.19/tools/testing/selftests/net/
Dfib_tests.sh438 local vrf=$3
444 [ "$vrf" = "-" ] && vrf="default"
448 cmd="$IP route add vrf $vrf $pfx $gw $dev"
547 $IP link add red type vrf table 1
549 $IP -4 route add vrf red unreachable default metric 4278198272
550 $IP -6 route add vrf red unreachable default metric 4278198272
557 $IP link set dev veth1 vrf red up
562 $IP link set dev dummy1 vrf red up
693 $IP li add red up type vrf table 101
699 $IP li set veth2 vrf red up
[all …]
Dip6_gre_headroom.sh15 ip link add dev vh3 type vrf table 20
Dfib-onlink-tests.sh168 ip li add ${VRF} type vrf table ${VRF_TABLE}
181 ip li set ${NETIFS[p${n}]} vrf ${VRF}
/Linux-v4.19/Documentation/devicetree/bindings/regulator/
Dmt6380-regulator.txt11 buck-core1, buck-vcore, buck-vrf
36 mt6380_vrf_reg: buck-vrf {
37 regulator-name = "vrf";
/Linux-v4.19/arch/arm64/boot/dts/mediatek/
Dmt6380.dtsi32 mt6380_vrf_reg: buck-vrf {
33 regulator-name = "vrf";

12