Home
last modified time | relevance | path

Searched refs:vrf (Results 26 – 50 of 106) sorted by relevance

12345

/openbmc/linux/tools/testing/selftests/net/
H A Dsrv6_end_dt46_l3vpn_test.sh309 ip -netns ${rtname} link add vrf-${tid} type vrf table ${tid}
310 ip -netns ${rtname} link set vrf-${tid} up
316 ip -netns ${rtname} link set ${rtveth} master vrf-${tid}
346 ip -netns ${rtsrc_name} -6 route add ${IPv6_HS_NETWORK}::${hsdst}/128 vrf vrf-${tid} \
348 ip -netns ${rtsrc_name} -4 route add ${IPv4_HS_NETWORK}.${hsdst}/32 vrf vrf-${tid} \
350 ip -netns ${rtsrc_name} -6 route add ${vpn_sid}/128 vrf vrf-${tid} \
356 encap seg6local action End.DT46 vrftable ${tid} dev vrf-${tid}
372 vrf vrf-${tid}
375 vrf vrf-${tid}
557 modprobe vrf &>/dev/null
[all …]
H A Dvrf_route_leaking.sh194 local vrf=$2
197 ip -netns "${ns}" link add "${vrf}" type vrf table "${table}"
198 ip -netns "${ns}" link set "${vrf}" up
199 ip -netns "${ns}" route add vrf "${vrf}" unreachable default metric 8192
200 ip -netns "${ns}" -6 route add vrf "${vrf}" unreachable default metric 8192
267 ip -netns r1 link set eth0 vrf blue up
268 ip -netns r1 link set eth1 vrf red up
275 ip -netns r1 route add vrf blue ${H2_N2} dev red
279 ip -netns r1 route add vrf red ${H1_N1} dev blue
360 ip -netns r1 link set eth0 vrf blue up
[all …]
H A Dsrv6_end_dt4_l3vpn_test.sh275 ip -netns ${rtname} link add vrf-${tid} type vrf table ${tid}
276 ip -netns ${rtname} link set vrf-${tid} up
279 ip -netns ${rtname} link set ${rtveth} master vrf-${tid}
304 ip -netns ${rtsrc_name} -4 route add ${IPv4_HS_NETWORK}.${hsdst}/32 vrf vrf-${tid} \
306 ip -netns ${rtsrc_name} -6 route add ${vpn_sid}/128 vrf vrf-${tid} \
312 encap seg6local action End.DT4 vrftable ${tid} dev vrf-${tid}
483 modprobe vrf &>/dev/null
484 if [ ! -e /proc/sys/net/vrf/strict_mode ]; then
H A Dsrv6_end_dt6_l3vpn_test.sh272 ip -netns ${rtname} link add vrf-${tid} type vrf table ${tid}
273 ip -netns ${rtname} link set vrf-${tid} up
279 ip -netns ${rtname} link set ${rtveth} master vrf-${tid}
307 ip -netns ${rtsrc_name} -6 route add ${IPv6_HS_NETWORK}::${hsdst}/128 vrf vrf-${tid} \
309 ip -netns ${rtsrc_name} -6 route add ${vpn_sid}/128 vrf vrf-${tid} \
315 encap seg6local action End.DT6 vrftable ${tid} dev vrf-${tid}
486 modprobe vrf &>/dev/null
487 if [ ! -e /proc/sys/net/vrf/strict_mode ]; then
H A Dtest_vxlan_under_vrf.sh73 ip -netns hv-$hv link add vrf-underlay type vrf table 1
74 ip -netns hv-$hv link set vrf-underlay up
122 ip -netns hv-1 link set veth0 vrf vrf-underlay
125 ip -netns hv-2 link set veth0 vrf vrf-underlay
H A Dvrf-xfrm-tests.sh89 local vrf=$2
96 ip ${ns} link add ${vrf} type vrf table ${table}
97 ip ${ns} link set ${vrf} up
98 ip ${ns} route add vrf ${vrf} unreachable default metric 8192
99 ip ${ns} -6 route add vrf ${vrf} unreachable default metric 8192
101 ip ${ns} addr add 127.0.0.1/8 dev ${vrf}
102 ip ${ns} -6 addr add ::1 dev ${vrf} nodad
351 run_cmd_host1 ip vrf exec ${VRF} ping -c1 -w1 ${HOST2_4}
353 run_cmd_host1 ip vrf exec ${VRF} ${ping6} -c1 -w1 ${HOST2_6}
358 run_cmd_host1 ip vrf exec ${VRF} ping -c1 -w1 ${HOST2_4}
[all …]
H A Dvrf_strict_mode_test.sh74 ip ${nsarg} -o link show type vrf | wc -l
83 ip ${nsarg} -d -o link show type vrf | grep "table ${tableid}" | wc -l
93 ip ${nsarg} link add ${vrfname} type vrf table ${vrftable} &>/dev/null
160 rval="$(${nsexec} bash -c "cat /proc/sys/net/vrf/strict_mode" | \
248 modprobe vrf
262 echo 0 >/proc/sys/net/vrf/strict_mode 2>/dev/null
384 modinfo vrf || return $?
405 modprobe vrf &>/dev/null
406 if [ ! -e /proc/sys/net/vrf/strict_mode ]; then
/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dip6_forward_instats_vrf.sh22 ip -6 route add vrf v$h1 2001:1:2::/64 via 2001:1:1::1
27 ip -6 route del vrf v$h1 2001:1:2::/64 via 2001:1:1::1
50 ip -6 route add vrf v$h2 2001:1:1::/64 via 2001:1:2::1
57 ip -6 route del vrf v$h2 2001:1:1::/64 via 2001:1:2::1
97 ip vrf exec $vrf_name \
115 ip vrf exec $vrf_name \
133 ip vrf exec $vrf_name \
152 ip vrf exec $vrf_name \
H A Drouter_bridge_pvid_vlan_upper.sh36 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2
37 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2
42 ip -6 route del 2001:db8:2::/64 vrf v$h1
43 ip -4 route del 192.0.2.128/28 vrf v$h1
51 ip -4 route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.129
52 ip -6 route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::1
57 ip -6 route del 2001:db8:1::/64 vrf v$h2
58 ip -4 route del 192.0.2.0/28 vrf v$h2
H A Dvxlan_symmetric.sh217 ip link set dev vrf-green up
304 ip link set dev $rp2 master vrf-spine
305 ip link set dev v1 master vrf-spine
306 ip link set dev vrf-spine up
313 ip route add 10.0.0.1/32 vrf vrf-spine nexthop via 192.0.2.1
314 ip route add 10.0.0.2/32 vrf vrf-spine nexthop via 192.0.3.1
319 ip route del 10.0.0.2/32 vrf vrf-spine nexthop via 192.0.3.1
320 ip route del 10.0.0.1/32 vrf vrf-spine nexthop via 192.0.2.1
388 ip link set dev vrf-green up
487 ip route add $host1_ip/32 vrf vrf-green nexthop via $vtep_ip \
[all …]
H A Dvxlan_symmetric_ipv6.sh217 ip link set dev vrf-green up
301 ip link set dev $rp2 master vrf-spine
302 ip link set dev v1 master vrf-spine
303 ip link set dev vrf-spine up
310 ip route add 2001:db8:3::1/128 vrf vrf-spine nexthop via \
312 ip route add 2001:db8:3::2/128 vrf vrf-spine nexthop via \
318 ip route del 2001:db8:3::2/128 vrf vrf-spine nexthop via \
320 ip route del 2001:db8:3::1/128 vrf vrf-spine nexthop via \
389 ip link set dev vrf-green up
486 ip route add $host1_ip/128 vrf vrf-green nexthop via $vtep_ip \
[all …]
H A Drouter_multicast.sh57 ip route del 2001:db8:3::/64 vrf v$h1
58 ip route del 2001:db8:2::/64 vrf v$h1
60 ip route del 198.51.100.32/28 vrf v$h1
61 ip route del 198.51.100.16/28 vrf v$h1
83 ip route del 2001:db8:3::/64 vrf v$h2
84 ip route del 2001:db8:1::/64 vrf v$h2
86 ip route del 198.51.100.32/28 vrf v$h2
87 ip route del 198.51.100.0/28 vrf v$h2
109 ip route del 2001:db8:2::/64 vrf v$h3
110 ip route del 2001:db8:1::/64 vrf v$h3
[all …]
H A Drouter_bridge_1d_lag.sh129 ip -4 route add 192.0.2.128/28 vrf vlag1 nexthop via 192.0.2.2
132 ip -4 route add 192.0.2.144/28 vrf vlag1 nexthop via 192.0.2.18
138 ip -6 route del 2001:db8:4::/64 vrf vlag1
139 ip -4 route del 192.0.2.144/28 vrf vlag1
141 ip -6 route del 2001:db8:2::/64 vrf vlag1
142 ip -4 route del 192.0.2.128/28 vrf vlag1
169 ip -4 route add 192.0.2.0/28 vrf vlag4 nexthop via 192.0.2.129
178 ip -6 route del 2001:db8:3::/64 vrf vlag4
179 ip -4 route del 192.0.2.16/28 vrf vlag4
181 ip -6 route del 2001:db8:1::/64 vrf vlag4
[all …]
H A Drouter_bridge.sh44 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2
45 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2
50 ip -6 route del 2001:db8:2::/64 vrf v$h1
51 ip -4 route del 192.0.2.128/28 vrf v$h1
58 ip -4 route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.129
59 ip -6 route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::1
64 ip -6 route del 2001:db8:1::/64 vrf v$h2
65 ip -4 route del 192.0.2.0/28 vrf v$h2
H A Drouter_bridge_vlan_upper_pvid.sh41 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2
42 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2
47 ip -6 route del 2001:db8:2::/64 vrf v$h1
48 ip -4 route del 192.0.2.128/28 vrf v$h1
56 ip -4 route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.129
57 ip -6 route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::1
62 ip -6 route del 2001:db8:1::/64 vrf v$h2
63 ip -4 route del 192.0.2.0/28 vrf v$h2
H A Drouter_bridge_vlan_upper.sh39 ip -4 route add 192.0.2.16/28 vrf v$h1 nexthop via 192.0.2.2
40 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2
45 ip -6 route del 2001:db8:2::/64 vrf v$h1
46 ip -4 route del 192.0.2.16/28 vrf v$h1
55 ip -4 route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.17
56 ip -6 route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::1
61 ip -6 route del 2001:db8:1::/64 vrf v$h2
62 ip -4 route del 192.0.2.0/28 vrf v$h2
H A Dvxlan_asymmetric_ipv6.sh119 ip route add default vrf $vrf_name nexthop via $gw_ip
130 ip route del default vrf $vrf_name nexthop via $gw_ip
199 ip link set dev vrf-green up
268 ip link set dev $rp2 master vrf-spine
269 ip link set dev v1 master vrf-spine
270 ip link set dev vrf-spine up
277 ip route add 2001:db8:3::1/128 vrf vrf-spine nexthop via \
279 ip route add 2001:db8:3::2/128 vrf vrf-spine nexthop via \
285 ip route del 2001:db8:3::2/128 vrf vrf-spine nexthop via \
287 ip route del 2001:db8:3::1/128 vrf vrf-spine nexthop via \
[all …]
H A Dvxlan_asymmetric.sh119 ip route add default vrf $vrf_name nexthop via $gw_ip
130 ip route del default vrf $vrf_name nexthop via $gw_ip
199 ip link set dev vrf-green up
273 ip link set dev $rp2 master vrf-spine
274 ip link set dev v1 master vrf-spine
275 ip link set dev vrf-spine up
282 ip route add 10.0.0.1/32 vrf vrf-spine nexthop via 192.0.2.1
283 ip route add 10.0.0.2/32 vrf vrf-spine nexthop via 192.0.3.1
288 ip route del 10.0.0.2/32 vrf vrf-spine nexthop via 192.0.3.1
289 ip route del 10.0.0.1/32 vrf vrf-spine nexthop via 192.0.2.1
[all …]
H A Dmirror_gre_bound.sh80 ip link set h3-gt4 vrf v$h3
84 ip link set h3-gt6 vrf v$h3
122 vrf_create vrf-ol
123 ip link set dev vrf-ol up
127 ip link set dev gt4 master vrf-ol
132 ip link set dev gt6 master vrf-ol
138 vrf_destroy vrf-ol
H A Dhw_stats_l3.sh57 ip route add 192.0.2.16/28 vrf v$h1 nexthop via 192.0.2.2
58 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2
63 ip -6 route del 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2
64 ip route del 192.0.2.16/28 vrf v$h1 nexthop via 192.0.2.2
73 ip route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.17
74 ip -6 route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::2
79 ip -6 route del 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::2
80 ip route del 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.17
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dblackhole_routes.sh56 ip -4 route add default vrf v$h1 nexthop via 192.0.2.2
57 ip -6 route add default vrf v$h1 nexthop via 2001:db8:1::2
62 ip -6 route del default vrf v$h1 nexthop via 2001:db8:1::2
63 ip -4 route del default vrf v$h1 nexthop via 192.0.2.2
72 ip -4 route add default vrf v$h2 nexthop via 198.51.100.2
73 ip -6 route add default vrf v$h2 nexthop via 2001:db8:2::2
78 ip -6 route del default vrf v$h2 nexthop via 2001:db8:2::2
79 ip -4 route del default vrf v$h2 nexthop via 198.51.100.2
H A Done_armed_router.sh56 ip -4 route add default vrf v$h1 nexthop via 192.0.2.2
57 ip -6 route add default vrf v$h1 nexthop via 2001:db8:1::2
62 ip -6 route del default vrf v$h1 nexthop via 2001:db8:1::2
63 ip -4 route del default vrf v$h1 nexthop via 192.0.2.2
72 ip -4 route add default vrf v$h2 nexthop via 198.51.100.2
73 ip -6 route add default vrf v$h2 nexthop via 2001:db8:2::2
78 ip -6 route del default vrf v$h2 nexthop via 2001:db8:2::2
79 ip -4 route del default vrf v$h2 nexthop via 198.51.100.2
147 ip vrf exec v$h1 $MZ $h1 -c 10 -d 100msec -p 64 -A 192.0.2.1 \
190 ip vrf exec v$h1 $MZ $h1 -6 -c 10 -d 100msec -p 64 -A 2001:db8:1::1 \
H A Dtc_sample.sh63 ip -4 route add default vrf v$h1 nexthop via 192.0.2.2
68 ip -4 route del default vrf v$h1 nexthop via 192.0.2.2
77 ip -4 route add default vrf v$h2 nexthop via 198.51.100.2
82 ip -4 route del default vrf v$h2 nexthop via 198.51.100.2
95 ip -4 route add default vrf v${h3}_bond nexthop via 192.0.2.18
100 ip -4 route del default vrf v${h3}_bond nexthop via 192.0.2.18
338 ip vrf exec v$h1 $MZ $h1 -c 3200 -d 1msec -p 64 -A 192.0.2.1 \
390 ip vrf exec v$h1 $MZ $h1 -c 3200 -d 1msec -p 64 -A 192.0.2.1 \
445 ip vrf exec v$h1 $MZ $h1 -c 3200 -d 1msec -p 64 -A 192.0.2.1 \
460 ip vrf exec v$h1 $MZ $h1 -c 3200 -d 1msec -p 64 -A 192.0.2.1 \
[all …]
/openbmc/linux/drivers/net/
H A Dvrf.c182 struct net_vrf *vrf; in vrf_map_elem_get_vrf_ifindex() local
189 return vrf->ifindex; in vrf_map_elem_get_vrf_ifindex()
263 u32 table_id = vrf->tb_id; in vrf_map_register_dev()
321 u32 table_id = vrf->tb_id; in vrf_map_unregister_dev()
331 list_del(&vrf->me_list); in vrf_map_unregister_dev()
826 vrf->fib6_table = fib6_new_table(net, vrf->tb_id); in vrf_rt6_create()
827 if (!vrf->fib6_table) in vrf_rt6_create()
1167 vrf_rtable_release(dev, vrf); in vrf_dev_uninit()
1168 vrf_rt6_release(dev, vrf); in vrf_dev_uninit()
1209 return vrf->tb_id; in vrf_fib_table()
[all …]
/openbmc/linux/Documentation/networking/
H A Dvrf.rst69 ip link add vrf-blue type vrf table 10
70 ip link set dev vrf-blue up
187 $ ip -d link show type vrf
231 $ ip link show vrf NAME
236 $ ip link show vrf red
263 $ ip neigh show vrf red
276 $ ip addr show vrf NAME
281 $ ip addr show vrf red
303 $ ip -br addr show vrf red
319 $ ip route show vrf red
[all …]

12345