Home
last modified time | relevance | path

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

1234

/external/linux-kselftest/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.sh17 ip link set dev $h1 master vrf-h1
19 ip link set dev vrf-h1 up
25 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
26 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
31 ip route del 2001:db8:2::/64 vrf vrf-h1
32 ip route del 198.51.100.0/24 vrf vrf-h1
44 ip link set dev $h2 master vrf-h2
46 ip link set dev vrf-h2 up
52 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
53 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 …]
Drouter_mpath_nh_res.sh15 ip link set dev $h1 master vrf-h1
17 ip link set dev vrf-h1 up
23 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
24 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
29 ip route del 2001:db8:2::/64 vrf vrf-h1
30 ip route del 198.51.100.0/24 vrf vrf-h1
42 ip link set dev $h2 master vrf-h2
44 ip link set dev vrf-h2 up
50 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
51 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 …]
Drouter_nh.sh16 ip link set dev $h1 master vrf-h1
18 ip link set dev vrf-h1 up
24 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
25 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
30 ip route del 2001:db8:2::/64 vrf vrf-h1
31 ip route del 198.51.100.0/24 vrf vrf-h1
43 ip link set dev $h2 master vrf-h2
45 ip link set dev vrf-h2 up
51 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
52 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 …]
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_nh.sh76 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2
77 ip route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2
82 ip route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2
83 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2
96 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130
100 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_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 …]
Dgre_multipath_nh_res.sh76 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2
77 ip route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2
82 ip route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2
83 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2
96 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130
100 ip route add vrf v$ol1 192.0.2.82/32 via 192.0.2.146
107 ip route add vrf v$ol1 192.0.2.16/28 nhid 103
108 ip route add vrf v$ol1 2001:db8:2::/64 nhid 103
113 ip route del vrf v$ol1 2001:db8:2::/64
114 ip route del vrf v$ol1 192.0.2.16/28
[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 …]
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 …]
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 …]
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 …]
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 …]
/external/iproute2/ip/
Dipvrf.c55 char *vrf, *end; in vrf_identify() local
70 vrf = strstr(buf, "/vrf/"); in vrf_identify()
71 if (vrf) { in vrf_identify()
72 vrf += 5; /* skip past "/vrf/" */ in vrf_identify()
73 end = strchr(vrf, '\n'); in vrf_identify()
77 strlcpy(name, vrf, len); in vrf_identify()
89 char vrf[32]; in ipvrf_identify() local
100 rc = vrf_identify(pid, vrf, sizeof(vrf)); in ipvrf_identify()
102 if (vrf[0] != '\0') in ipvrf_identify()
103 printf("%s\n", vrf); in ipvrf_identify()
[all …]

1234