Lines Matching +full:6 +full:- +full:64

1 # SPDX-License-Identifier: GPL-2.0
4 # Handles creation and destruction of IP-in-IP or GRE tunnels over the given
10 # SW2 uses non-default VRF tunnel has a bound dev.
11 # +--------------------------------+
15 # | 2001:db8:1::1/64 | |
16 # +-------------------------|------+
18 # +-------------------------|-------------------+
22 # | 2001:db8:1::2/64 |
26 # | rem=2001:db8:3::2 --. |
29 # | .--------------------- |
33 # | | 2001:db8:10::1/64 |
38 # +---------------------|-----------------------+
40 # +---------------------|-----------------------+
47 # | ^ 2001:db8:10::2/64 |
50 # | '----------------------. |
53 # | rem=2001:db8:3::1 --' |
58 # | VRF v$ol2 | 2001:db8:2::2/64 |
59 # +---------------------|-----------------------+
60 # +---------------------|----------+
64 # | 2001:db8:2::1/64 |
65 # +--------------------------------+
70 # +--------------------------------+
74 # | 2001:db8:1::1/64 | |
75 # +-------------------------|------+
77 # +-------------------------|-------------------+
79 # | +-----------------------|-----------------+ |
82 # | | 2001:db8:1::2/64 | |
90 # | +--------------------|--------------------+ |
92 # | +--------------------|--------------------+ |
97 # | | 2001:db8:3::1/64 | |
98 # | | .-----------' | |
102 # | | | 2001:db8:10::1/64 | |
107 # | +---------------------|-------------------+ |
108 # +-----------------------|---------------------+
110 # +-----------------------|---------------------+
112 # | +---------------------|-------------------+ |
118 # | | + 2001:db8:10::2/64 | |
121 # | | '------. | |
123 # | | 2001:db8:3::2/64 | |
128 # | +---------------------|-------------------+ |
130 # | +---------------------|-------------------+ |
141 # | | 2001:db8:2::2/64 | | |
142 # | +---------------------|-------------------+ |
143 # +-----------------------|---------------------+
145 # +-----------------------|--------+
149 # | 2001:db8:2::1/64 |
150 # +--------------------------------+
157 simple_if_init $h1 198.51.100.1/24 2001:db8:1::1/64
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
166 simple_if_fini $h1 198.51.100.1/24 2001:db8:1::1/64
171 simple_if_init $h2 203.0.113.1/24 2001:db8:2::1/64
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
180 simple_if_fini $h2 203.0.113.1/24 2001:db8:2::1/64
189 __addr_add_del $ol1 add 198.51.100.2/24 2001:db8:1::2/64
192 vlan_create $ul1 111 "" 2001:db8:10::1/64
199 ip -6 route add 2001:db8:3::2/128 via 2001:db8:10::2
201 ip -6 route add 2001:db8:2::/64 dev g1a
209 ip -6 route del 2001:db8:2::/64
211 ip -6 route del 2001:db8:3::2/128 via 2001:db8:10::2
218 __simple_if_fini $ol1 198.51.100.2/24 2001:db8:1::2/64
226 simple_if_init $ol2 203.0.113.2/24 2001:db8:2::2/64
228 vlan_create $ul2 111 v$ol2 2001:db8:10::2/64
236 ip -6 neigh replace dev $ol2 2001:db8:2::1 lladdr $(mac_get $h2)
238 ip -6 route add vrf v$ol2 2001:db8:3::1/128 via 2001:db8:10::1
240 ip -6 route add vrf v$ol2 2001:db8:1::/64 dev g2a
248 ip -6 route del vrf v$ol2 2001:db8:2::/64
250 ip -6 route del vrf v$ol2 2001:db8:3::1/128 via 2001:db8:10::1
257 simple_if_fini $ol2 203.0.113.2/24 2001:db8:2::2/64
265 simple_if_init $ol1 198.51.100.2/24 2001:db8:1::2/64
268 __simple_if_init dummy1 v$ul1 2001:db8:3::1/64
270 vlan_create $ul1 111 v$ul1 2001:db8:10::1/64
275 ip -6 route add vrf v$ul1 2001:db8:3::2/128 via 2001:db8:10::2
277 ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1a
285 ip -6 route del vrf v$ol1 2001:db8:2::/64
287 ip -6 route del vrf v$ul1 2001:db8:3::2/128
292 __simple_if_fini dummy1 2001:db8:3::1/64
296 simple_if_fini $ol1 198.51.100.2/24 2001:db8:1::2/64
304 simple_if_init $ol2 203.0.113.2/24 2001:db8:2::2/64
308 __simple_if_init dummy2 v$ul2 2001:db8:3::2/64
310 vlan_create $ul2 111 v$ul2 2001:db8:10::2/64
317 ip -6 neigh replace dev $ol2 2001:db8:2::1 lladdr $(mac_get $h2)
319 ip -6 route add vrf v$ul2 2001:db8:3::1/128 via 2001:db8:10::1
321 ip -6 route add vrf v$ol2 2001:db8:1::/64 dev g2a
329 ip -6 route del vrf v$ol2 2001:db8:2::/64
331 ip -6 route del vrf v$ul2 2001:db8:3::1/128
336 __simple_if_fini dummy2 2001:db8:3::2/64
340 simple_if_fini $ol2 203.0.113.2/24 2001:db8:2::2/64
358 $MZ $h1 -c 1000 -p 64 -a $h1mac -b $ol1mac -A 198.51.100.1 \
359 -B 203.0.113.1 -t ip -q -d $MZ_DELAY
391 $MZ -6 $h1 -c 1000 -p 64 -a $h1mac -b $ol1mac -A 2001:db8:1::1 \
392 -B 2001:db8:2::1 -t ip -q -d $MZ_DELAY
429 ping6_do $h1 2001:db8:2::1 "-s 1800 -w 3"
435 ping6_do $h1 2001:db8:2::1 "-s 1800 -w 3"
450 ip -6 route add $new2/128 via 2001:db8:10::2
451 ip -6 route del $old2/128
456 ip -6 route add vrf v$ol2 $new1/128 via 2001:db8:10::1
457 ip -6 route del vrf v$ol2 $old1/128
487 __addr_add_del dummy1 del "$old1/64"
488 __addr_add_del dummy1 add "$new1/64"
490 ip -6 route add vrf v$ul1 $new2/128 via 2001:db8:10::2
491 ip -6 route del vrf v$ul1 $old2/128
493 __addr_add_del dummy2 del "$old2/64"
494 __addr_add_del dummy2 add "$new2/64"
496 ip -6 route add vrf v$ul2 $new1/128 via 2001:db8:10::1
497 ip -6 route del vrf v$ul2 $old1/128