Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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_mpath_nh.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_vid_1.sh11 ip link set dev vrf-h1 up
14 vlan_create $h1 1 vrf-h1 192.0.2.2/24 2001:db8:1::2/64
16 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
17 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
22 ip route del 2001:db8:2::/64 vrf vrf-h1
23 ip route del 198.51.100.0/24 vrf vrf-h1
28 ip link set dev vrf-h1 down
35 ip link set dev vrf-h2 up
38 vlan_create $h2 1 vrf-h2 198.51.100.2/24 2001:db8:2::2/64
40 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.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_inner_v4_multipath.sh85 ip route add vrf v$h1 192.0.4.0/24 via 192.0.3.1
90 ip route del vrf v$h1 192.0.4.0/24 via 192.0.3.1
101 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130
103 ip route add vrf v$ol1 192.0.4.0/24 nexthop dev g1
108 ip route del vrf v$ol1 192.0.4.0/24
110 ip route del vrf v$ol1 192.0.2.66/32
125 ip route add vrf v$ul21 192.0.2.65/32 via 192.0.2.129
126 ip route add vrf v$ul21 192.0.2.66/32 \
133 ip route del vrf v$ul21 192.0.2.66/32
134 ip route del vrf v$ul21 192.0.2.65/32
[all …]
Dgre_inner_v6_multipath.sh85 ip -6 route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::1
90 ip -6 route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::1
101 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130
103 ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1
108 ip -6 route del vrf v$ol1 2001:db8:2::/64
110 ip route del vrf v$ol1 192.0.2.66/32
125 ip route add vrf v$ul21 192.0.2.65/32 via 192.0.2.129
126 ip route add vrf v$ul21 192.0.2.66/32 \
133 ip route del vrf v$ul21 192.0.2.66/32
134 ip route del vrf v$ul21 192.0.2.65/32
[all …]
Dip6gre_inner_v4_multipath.sh84 ip route add vrf v$h1 192.0.4.0/24 via 192.0.3.1
89 ip route del vrf v$h1 192.0.4.0/24 via 192.0.3.1
100 ip -6 route add vrf v$ol1 2001:db8:40::2/128 via 2001:db8:80::2
102 ip route add vrf v$ol1 192.0.4.0/24 nexthop dev g1
107 ip route del vrf v$ol1 192.0.4.0/24
109 ip -6 route del vrf v$ol1 2001:db8:40::2/128
124 ip -6 route add vrf v$ul21 2001:db8:40::1/128 via 2001:db8:80::1
125 ip -6 route add vrf v$ul21 2001:db8:40::2/128 \
132 ip -6 route del vrf v$ul21 2001:db8:40::2/128
133 ip -6 route del vrf v$ul21 2001:db8:40::1/128
[all …]
Dip6gre_inner_v6_multipath.sh84 ip -6 route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::1
89 ip -6 route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::1
100 ip -6 route add vrf v$ol1 2001:db8:40::2/128 via 2001:db8:80::2
102 ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1
107 ip -6 route del vrf v$ol1 2001:db8:2::/64
109 ip -6 route del vrf v$ol1 2001:db8:40::2/128
124 ip -6 route add vrf v$ul21 2001:db8:40::1/128 via 2001:db8:80::1
125 ip -6 route add vrf v$ul21 2001:db8:40::2/128 \
132 ip -6 route del vrf v$ul21 2001:db8:40::2/128
133 ip -6 route del vrf v$ul21 2001:db8:40::1/128
[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 \
100 ip route del vrf v$ol1 192.0.2.16/28
102 ip route del vrf v$ol1 192.0.2.82/32 via 192.0.2.146
106 ip route del vrf v$ol1 192.0.2.66/32 via 192.0.2.130
125 ip route add vrf v$ol2 192.0.2.65/32 via 192.0.2.129
129 ip route add vrf v$ol2 192.0.2.81/32 via 192.0.2.145
[all …]
Dipip_lib.sh149 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2
154 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2
161 ip route add vrf v$h2 192.0.2.0/28 via 192.0.2.17
166 ip route del vrf v$h2 192.0.2.0/28 via 192.0.2.17
221 ip route add vrf v$ol2 192.0.2.65/32 via 192.0.2.129
222 ip route add vrf v$ol2 192.0.2.0/28 nexthop dev g2a
230 ip route del vrf v$ol2 192.0.2.0/28
232 ip route del vrf v$ol2 192.0.2.65/32 via 192.0.2.129
257 ip route add vrf v$ul1 192.0.2.66/32 via 192.0.2.130
258 ip route add vrf v$ol1 192.0.2.16/28 nexthop dev g1a
[all …]
Drouter.sh25 ip link set dev $h1 master vrf-h1
27 ip link set dev vrf-h1 up
33 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
34 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
39 ip route del 2001:db8:2::/64 vrf vrf-h1
40 ip route del 198.51.100.0/24 vrf vrf-h1
52 ip link set dev $h2 master vrf-h2
54 ip link set dev vrf-h2 up
60 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
61 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1
[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
240 mirror_test vrf-h1 192.0.2.1 192.0.2.18 $host_dev 1 10
245 mirror_test vrf-h1 192.0.2.1 192.0.2.18 $h3 1 0
[all …]
Dtc_flower_router.sh13 ip route add 192.0.2.0/24 vrf v$h1 nexthop via 192.0.1.2
14 ip route add 192.0.3.0/24 vrf v$h1 nexthop via 192.0.1.2
19 ip route del 192.0.3.0/24 vrf v$h1
20 ip route del 192.0.2.0/24 vrf v$h1
29 ip route add 192.0.1.0/24 vrf v$h2 nexthop via 192.0.2.2
30 ip route add 192.0.3.0/24 vrf v$h2 nexthop via 192.0.2.2
35 ip route del 192.0.3.0/24 vrf v$h2
36 ip route del 192.0.1.0/24 vrf v$h2
45 ip route add 192.0.1.0/24 vrf v$h3 nexthop via 192.0.3.2
46 ip route add 192.0.2.0/24 vrf v$h3 nexthop via 192.0.3.2
[all …]
Drouter_multicast.sh44 ip route add 198.51.100.16/28 vrf v$h1 nexthop via 198.51.100.1
45 ip route add 198.51.100.32/28 vrf v$h1 nexthop via 198.51.100.1
47 ip route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::1
48 ip route add 2001:db8:3::/64 vrf v$h1 nexthop via 2001:db8:1::1
57 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
70 ip route add 198.51.100.0/28 vrf v$h2 nexthop via 198.51.100.17
71 ip route add 198.51.100.32/28 vrf v$h2 nexthop via 198.51.100.17
[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
Dvxlan_symmetric.sh129 ip route add default vrf $vrf_name nexthop via $gw_ip
140 ip route del default vrf $vrf_name nexthop via $gw_ip
217 ip link set dev vrf-green up
219 ip link add link br1 name vlan10 up master vrf-green type vlan id 10
221 ip link add link vlan10 name vlan10-v up master vrf-green \
225 ip link add link br1 name vlan20 up master vrf-green type vlan id 20
227 ip link add link vlan20 name vlan20-v up master vrf-green \
231 ip link add link br1 name vlan4001 up master vrf-green \
304 ip link set dev $rp2 master vrf-spine
305 ip link set dev v1 master vrf-spine
[all …]
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
Dip6_forward_instats_vrf.sh20 ip -6 route add vrf v$h1 2001:1:2::/64 via 2001:1:1::1
25 ip -6 route del vrf v$h1 2001:1:2::/64 via 2001:1:1::1
48 ip -6 route add vrf v$h2 2001:1:1::/64 via 2001:1:2::1
55 ip -6 route del vrf v$h2 2001:1:1::/64 via 2001:1:2::1
95 ip vrf exec $vrf_name \
113 ip vrf exec $vrf_name \
131 ip vrf exec $vrf_name \
150 ip vrf exec $vrf_name \
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
201 ip link add link br1 name vlan10 up master vrf-green type vlan id 10
203 ip link add link vlan10 name vlan10-v up master vrf-green \
207 ip link add link br1 name vlan20 up master vrf-green type vlan id 20
209 ip link add link vlan20 name vlan20-v up master vrf-green \
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
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
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
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
146 ip vrf exec v$h1 $MZ $h1 -c 10 -d 100msec -p 64 -A 192.0.2.1 \
189 ip vrf exec v$h1 $MZ $h1 -6 -c 10 -d 100msec -p 64 -A 2001:db8:1::1 \
/kernel/linux/linux-5.10/tools/testing/selftests/net/
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
202 ip -netns "${ns}" addr add 127.0.0.1/8 dev "${vrf}"
203 ip -netns "${ns}" -6 addr add ::1 dev "${vrf}" nodad
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
[all …]
/kernel/linux/linux-5.10/Documentation/networking/
Dvrf.rst35 | vrf-blue | ===> route table 10
69 ip link add vrf-blue type vrf table 10
70 ip link set dev vrf-blue up
80 ip ru add oif vrf-blue table 10
81 ip ru add iif vrf-blue table 10
94 ip link set dev eth1 master vrf-blue
151 iproute2 supports the vrf keyword as of v4.7. For backwards compatibility this
152 section lists both commands where appropriate -- with the vrf keyword and the
159 $ ip link add dev NAME type vrf table ID
169 $ ip [-d] link show type vrf
[all …]
/kernel/linux/linux-5.10/drivers/net/
Dvrf.c190 struct net_vrf *vrf; in vrf_map_elem_get_vrf_ifindex() local
195 vrf = list_first_entry(me_head, struct net_vrf, me_list); in vrf_map_elem_get_vrf_ifindex()
197 return vrf->ifindex; in vrf_map_elem_get_vrf_ifindex()
269 struct net_vrf *vrf = netdev_priv(dev); in vrf_map_register_dev() local
271 u32 table_id = vrf->tb_id; in vrf_map_register_dev()
310 list_add(&vrf->me_list, &me->vrf_list); in vrf_map_register_dev()
328 struct net_vrf *vrf = netdev_priv(dev); in vrf_map_unregister_dev() local
329 u32 table_id = vrf->tb_id; in vrf_map_unregister_dev()
339 list_del(&vrf->me_list); in vrf_map_unregister_dev()
703 struct net_vrf *vrf = netdev_priv(vrf_dev); in vrf_ip6_out_redirect() local
[all …]

123