Lines Matching +full:add +full:- +full:on

2 # SPDX-License-Identifier: GPL-2.0
4 # +------------------+
9 # +-------------|----+
11 # +-------------|-------------------------------+
20 # +--------------|--------------------------|---+
23 # +--------------|---+ +--------------|---+
28 # +------------------+ +------------------+
44 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
50 tc qdisc add dev $h1 ingress
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
73 ip route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::1
74 ip route add 2001:db8:3::/64 vrf v$h2 nexthop via 2001:db8:2::1
76 tc qdisc add dev $h2 ingress
96 ip route add 198.51.100.0/28 vrf v$h3 nexthop via 198.51.100.33
97 ip route add 198.51.100.16/28 vrf v$h3 nexthop via 198.51.100.33
99 ip route add 2001:db8:1::/64 vrf v$h3 nexthop via 2001:db8:3::1
100 ip route add 2001:db8:2::/64 vrf v$h3 nexthop via 2001:db8:3::1
102 tc qdisc add dev $h3 ingress
124 ip address add 198.51.100.1/28 dev $rp1
125 ip address add 198.51.100.17/28 dev $rp2
126 ip address add 198.51.100.33/28 dev $rp3
128 ip address add 2001:db8:1::1/64 dev $rp1
129 ip address add 2001:db8:2::1/64 dev $rp2
130 ip address add 2001:db8:3::1/64 dev $rp3
132 tc qdisc add dev $rp3 ingress
154 SMCROUTEDIR="$(mktemp -d)"
161 $MCD -N -I $table_name -f $SMCROUTEDIR/$table_name.conf \
162 -P $SMCROUTEDIR/$table_name.pid
168 rm -rf $SMCROUTEDIR
219 $MC_CLI -I $table_name add $if_name $s_addr $mcast $dest_ifs
229 $MC_CLI -I $table_name remove $if_name $s_addr $mcast $dest_ifs
234 # Add two interfaces to an MC group, send a packet to the MC group and
235 # verify packets are received on both. Then delete the route and verify
240 tc filter add dev $h2 ingress protocol ip pref 1 handle 122 flower \
242 tc filter add dev $h3 ingress protocol ip pref 1 handle 133 flower \
248 $MZ $h1 -c 5 -p 128 -t udp -a 00:11:22:33:44:55 -b 01:00:5e:01:02:03 \
249 -A 198.51.100.2 -B 225.1.2.3 -q
252 check_err $? "Multicast not received on first host"
254 check_err $? "Multicast not received on second host"
258 $MZ $h1 -c 5 -p 128 -t udp -a 00:11:22:33:44:55 -b 01:00:5e:01:02:03 \
259 -A 198.51.100.2 -B 225.1.2.3 -q
262 check_err $? "Multicast received on host although deleted"
264 check_err $? "Multicast received on second host although deleted"
274 # Add two interfaces to an MC group, send a packet to the MC group and
275 # verify packets are received on both. Then delete the route and verify
280 tc filter add dev $h2 ingress protocol ipv6 pref 1 handle 122 flower \
282 tc filter add dev $h3 ingress protocol ipv6 pref 1 handle 133 flower \
288 $MZ $h1 -6 -c 5 -p 128 -t udp -a 00:11:22:33:44:55 \
289 -b 33:33:00:00:00:03 -A 2001:db8:1::2 -B ff0e::3 -q
292 check_err $? "Multicast not received on first host"
294 check_err $? "Multicast not received on second host"
298 $MZ $h1 -6 -c 5 -p 128 -t udp -a 00:11:22:33:44:55 \
299 -b 33:33:00:00:00:03 -A 2001:db8:1::2 -B ff0e::3 -q
302 check_err $? "Multicast received on first host although deleted"
304 check_err $? "Multicast received on second host although deleted"
314 # Add a multicast route from first router port to the other two. Send
323 tc filter add dev $h1 ingress protocol ip pref 1 handle 1 flower \
325 tc filter add dev $h2 ingress protocol ip pref 1 handle 1 flower \
327 tc filter add dev $h3 ingress protocol ip pref 1 handle 1 flower \
329 tc filter add dev $rp3 ingress protocol ip pref 1 handle 1 flower \
334 $MZ $h1 -c 5 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \
335 -a 00:11:22:33:44:55 -b 01:00:5e:01:02:03 \
336 -A 198.51.100.2 -B 225.1.2.3 -q
339 check_err $? "Multicast not received on first host"
341 check_err $? "Multicast not received on second host"
343 $MZ $h3 -c 5 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \
344 -a 00:11:22:33:44:55 -b 01:00:5e:01:02:03 \
345 -A 198.51.100.2 -B 225.1.2.3 -q
348 check_err $? "Multicast received on first host when should not"
350 check_err $? "Multicast received on second host when should not"
368 tc filter add dev $h1 ingress protocol ipv6 pref 1 handle 1 flower \
370 tc filter add dev $h2 ingress protocol ipv6 pref 1 handle 1 flower \
372 tc filter add dev $h3 ingress protocol ipv6 pref 1 handle 1 flower \
374 tc filter add dev $rp3 ingress protocol ipv6 pref 1 handle 1 flower \
379 $MZ $h1 -6 -c 5 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \
380 -a 00:11:22:33:44:55 -b 33:33:00:00:00:03 \
381 -A 2001:db8:1::2 -B ff0e::3 -q
384 check_err $? "Multicast not received on first host"
386 check_err $? "Multicast not received on second host"
388 $MZ $h3 -6 -c 5 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \
389 -a 00:11:22:33:44:55 -b 33:33:00:00:00:03 \
390 -A 2001:db8:1::2 -B ff0e::3 -q
393 check_err $? "Multicast received on first host when should not"
395 check_err $? "Multicast received on second host when should not"
419 tc filter add dev $h2 ingress protocol ip pref 1 handle 1 flower \
421 tc filter add dev $h3 ingress protocol ip pref 1 handle 1 flower \
425 $MZ $h1 -c 1 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \
426 -a 00:11:22:33:44:55 -b 01:00:5e:01:02:03 \
427 -A 198.51.100.2 -B 225.1.2.3 -q
430 check_err $? "Multicast received on first host when should not"
432 check_err $? "Multicast received on second host when should not"
437 $MZ $h1 -c 1 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \
438 -a 00:11:22:33:44:55 -b 01:00:5e:01:02:03 \
439 -A 198.51.100.2 -B 225.1.2.3 -q
442 check_err $? "Multicast not received on first host"
444 check_err $? "Multicast not received on second host"
464 tc filter add dev $h2 ingress protocol ipv6 pref 1 handle 1 flower \
466 tc filter add dev $h3 ingress protocol ipv6 pref 1 handle 1 flower \
470 $MZ $h1 -6 -c 1 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \
471 -a 00:11:22:33:44:55 -b 33:33:00:00:00:03 \
472 -A 2001:db8:1::2 -B ff0e::3 -q
475 check_err $? "Multicast received on first host when should not"
477 check_err $? "Multicast received on second host when should not"
482 $MZ $h1 -6 -c 1 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \
483 -a 00:11:22:33:44:55 -b 33:33:00:00:00:03 \
484 -A 2001:db8:1::2 -B ff0e::3 -q
487 check_err $? "Multicast not received on first host"
489 check_err $? "Multicast not received on second host"