Home
last modified time | relevance | path

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

12345

/linux-6.12.1/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.sh56 ip link set dev $h1 master vrf-h1
58 ip link set dev vrf-h1 up
64 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
65 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
70 ip route del 2001:db8:2::/64 vrf vrf-h1
71 ip route del 198.51.100.0/24 vrf vrf-h1
83 ip link set dev $h2 master vrf-h2
85 ip link set dev vrf-h2 up
91 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
92 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.sh36 ip link set dev vrf-h1 up
39 vlan_create $h1 1 vrf-h1 192.0.2.2/24 2001:db8:1::2/64
41 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
42 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
47 ip route del 2001:db8:2::/64 vrf vrf-h1
48 ip route del 198.51.100.0/24 vrf vrf-h1
53 ip link set dev vrf-h1 down
60 ip link set dev vrf-h2 up
63 vlan_create $h2 1 vrf-h2 198.51.100.2/24 2001:db8:2::2/64
65 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
[all …]
Dmirror_gre_lag_lacp.sh85 vlan_host_create $h1 333 vrf-h1 192.0.2.1/28
86 ip -4 route add 192.0.2.16/28 vrf vrf-h1 nexthop via 192.0.2.2
91 ip -4 route del 192.0.2.16/28 vrf vrf-h1
92 vlan_host_destroy $h1 333 vrf-h1
97 vlan_host_create $h1 555 vrf-h2 192.0.2.18/28
98 ip -4 route add 192.0.2.0/28 vrf vrf-h2 nexthop via 192.0.2.17
103 ip -4 route del 192.0.2.0/28 vrf vrf-h2
104 vlan_host_destroy $h1 555 vrf-h2
110 __simple_if_init lag2 vrf-h3 192.0.2.130/32
111 ip -4 route add vrf vrf-h3 192.0.2.129/32 dev lag2
[all …]
Dgre_custom_multipath_hash.sh90 ip route add vrf v$h1 default via 198.51.100.1 dev $h1
91 ip -6 route add vrf v$h1 default via 2001:db8:1::1 dev $h1
96 ip -6 route del vrf v$h1 default
97 ip route del vrf v$h1 default
108 ip route add vrf v$ol1 192.0.2.2/32 via 192.0.2.18
110 ip route add vrf v$ol1 203.0.113.0/24 dev g1
111 ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1
116 ip -6 route del vrf v$ol1 2001:db8:2::/64
117 ip route del vrf v$ol1 203.0.113.0/24
119 ip route del vrf v$ol1 192.0.2.2/32
[all …]
Dip6gre_custom_multipath_hash.sh90 ip route add vrf v$h1 default via 198.51.100.1 dev $h1
91 ip -6 route add vrf v$h1 default via 2001:db8:1::1 dev $h1
96 ip -6 route del vrf v$h1 default
97 ip route del vrf v$h1 default
109 ip route add vrf v$ol1 2001:db8:3::2/128 via 2001:db8:10::2
111 ip route add vrf v$ol1 203.0.113.0/24 dev g1
112 ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1
117 ip -6 route del vrf v$ol1 2001:db8:2::/64
118 ip route del vrf v$ol1 203.0.113.0/24
120 ip route del vrf v$ol1 2001:db8:3::2/128
[all …]
Drouter_nh.sh30 ip link set dev $h1 master vrf-h1
32 ip link set dev vrf-h1 up
38 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
39 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
44 ip route del 2001:db8:2::/64 vrf vrf-h1
45 ip route del 198.51.100.0/24 vrf vrf-h1
57 ip link set dev $h2 master vrf-h2
59 ip link set dev vrf-h2 up
65 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
66 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1
[all …]
Drouter_mpath_nh_res.sh54 ip link set dev $h1 master vrf-h1
56 ip link set dev vrf-h1 up
62 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
63 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
68 ip route del 2001:db8:2::/64 vrf vrf-h1
69 ip route del 198.51.100.0/24 vrf vrf-h1
81 ip link set dev $h2 master vrf-h2
83 ip link set dev vrf-h2 up
89 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
90 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1
[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 …]
Dgre_multipath_nh_res.sh75 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2
76 ip route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2
81 ip route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2
82 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2
95 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130
99 ip route add vrf v$ol1 192.0.2.82/32 via 192.0.2.146
106 ip route add vrf v$ol1 192.0.2.16/28 nhid 103
107 ip route add vrf v$ol1 2001:db8:2::/64 nhid 103
112 ip route del vrf v$ol1 2001:db8:2::/64
113 ip route del vrf v$ol1 192.0.2.16/28
[all …]
Dgre_multipath_nh.sh75 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2
76 ip route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2
81 ip route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2
82 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2
95 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130
99 ip route add vrf v$ol1 192.0.2.82/32 via 192.0.2.146
105 ip route add vrf v$ol1 192.0.2.16/28 nhid 103
106 ip route add vrf v$ol1 2001:db8:2::/64 nhid 103
111 ip route del vrf v$ol1 2001:db8:2::/64
112 ip route del vrf v$ol1 192.0.2.16/28
[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 …]
Dcustom_multipath_hash.sh57 ip route add vrf v$h1 default via 198.51.100.1 dev $h1
58 ip -6 route add vrf v$h1 default via 2001:db8:1::1 dev $h1
63 ip -6 route del vrf v$h1 default
64 ip route del vrf v$h1 default
74 ip route add vrf v$rp1 203.0.113.0/24 \
78 ip -6 route add vrf v$rp1 2001:db8:4::/64 \
85 ip -6 route del vrf v$rp1 2001:db8:4::/64
87 ip route del vrf v$rp1 203.0.113.0/24
100 ip route add vrf v$rp2 198.51.100.0/24 \
104 ip -6 route add vrf v$rp2 2001:db8:1::/64 \
[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 …]
Dip6gre_lib.sh158 ip route add vrf v$h1 203.0.113.0/24 via 198.51.100.2
159 ip -6 route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2
164 ip -6 route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2
165 ip route del vrf v$h1 203.0.113.0/24 via 198.51.100.2
172 ip route add vrf v$h2 198.51.100.0/24 via 203.0.113.2
173 ip -6 route add vrf v$h2 2001:db8:1::/64 via 2001:db8:2::2
178 ip -6 route del vrf v$h2 2001:db8:1::/64 via 2001:db8:2::2
179 ip route del vrf v$h2 198.51.100.0/24 via 203.0.113.2
238 ip -6 route add vrf v$ol2 2001:db8:3::1/128 via 2001:db8:10::1
239 ip route add vrf v$ol2 198.51.100.0/24 dev g2a
[all …]
Drouter_bridge_vlan.sh50 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2
51 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2
54 ip -4 route add 192.0.2.144/28 vrf v$h1 nexthop via 192.0.2.18
55 ip -6 route add 2001:db8:4::/64 vrf v$h1 nexthop via 2001:db8:3::2
60 ip -6 route del 2001:db8:4::/64 vrf v$h1
61 ip -4 route del 192.0.2.144/28 vrf v$h1
64 ip -6 route del 2001:db8:2::/64 vrf v$h1
65 ip -4 route del 192.0.2.128/28 vrf v$h1
75 ip -4 route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.129
76 ip -4 route add 192.0.2.16/28 vrf v$h2 nexthop via 192.0.2.145
[all …]
Drouter_bridge_1d.sh44 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2
45 ip -4 route add 192.0.2.144/28 vrf v$h1 nexthop via 192.0.2.18
46 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2
47 ip -6 route add 2001:db8:4::/64 vrf v$h1 nexthop via 2001:db8:3::2
52 ip -6 route del 2001:db8:4::/64 vrf v$h1
53 ip -6 route del 2001:db8:2::/64 vrf v$h1
54 ip -4 route del 192.0.2.144/28 vrf v$h1
55 ip -4 route del 192.0.2.128/28 vrf v$h1
65 ip -4 route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.129
66 ip -4 route add 192.0.2.16/28 vrf v$h2 nexthop via 192.0.2.145
[all …]
Dipip_lib.sh148 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2
153 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2
160 ip route add vrf v$h2 192.0.2.0/28 via 192.0.2.17
165 ip route del vrf v$h2 192.0.2.0/28 via 192.0.2.17
220 ip route add vrf v$ol2 192.0.2.65/32 via 192.0.2.129
221 ip route add vrf v$ol2 192.0.2.0/28 nexthop dev g2a
229 ip route del vrf v$ol2 192.0.2.0/28
231 ip route del vrf v$ol2 192.0.2.65/32 via 192.0.2.129
256 ip route add vrf v$ul1 192.0.2.66/32 via 192.0.2.130
257 ip route add vrf v$ol1 192.0.2.16/28 nexthop dev g1a
[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
242 mirror_test vrf-h1 192.0.2.1 192.0.2.18 $host_dev 1 ">= 10"
247 mirror_test vrf-h1 192.0.2.1 192.0.2.18 $h3 1 0
[all …]
Drouter.sh43 ip link set dev $h1 master vrf-h1
45 ip link set dev vrf-h1 up
51 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
52 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
57 ip route del 2001:db8:2::/64 vrf vrf-h1
58 ip route del 198.51.100.0/24 vrf vrf-h1
70 ip link set dev $h2 master vrf-h2
72 ip link set dev vrf-h2 up
78 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
79 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1
[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 …]
/linux-6.12.1/tools/testing/selftests/net/
Dsctp_vrf.sh40 ip -n $SERVER_NS link add vrf-1 type vrf table 10
41 ip -n $SERVER_NS link add vrf-2 type vrf table 20
42 ip -n $SERVER_NS link set vrf-1 up
43 ip -n $SERVER_NS link set vrf-2 up
44 ip -n $SERVER_NS link set veth1 master vrf-1
45 ip -n $SERVER_NS link set veth2 master vrf-2
144 do_test $CLIENT_NS1 vrf-1 || { echo "[FAIL]"; return $RET; }
148 do_test $CLIENT_NS1 vrf-2 && { echo "[FAIL]"; return $RET; }
152 do_test $CLIENT_NS2 vrf-2 || { echo "[FAIL]"; return $RET; }
156 do_test $CLIENT_NS2 vrf-1 && { echo "[FAIL]"; return $RET; }
[all …]

12345