Lines Matching +full:route +full:- +full:up
2 # SPDX-License-Identifier: GPL-2.0
10 vrf_create "vrf-h1"
11 ip link set dev $h1 master vrf-h1
13 ip link set dev vrf-h1 up
14 ip link set dev $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
30 vrf_destroy "vrf-h1"
35 vrf_create "vrf-h2"
36 ip link set dev $h2 master vrf-h2
38 ip link set dev vrf-h2 up
39 ip link set dev $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
49 ip route del 198.51.200.0/24 vrf vrf-h2
50 ip route del 192.0.2.0/24 vrf vrf-h2
55 vrf_destroy "vrf-h2"
60 vrf_create "vrf-h3"
61 ip link set dev $h3 master vrf-h3
63 ip link set dev vrf-h3 up
64 ip link set dev $h3 up
68 ip route add 192.0.2.0/24 vrf vrf-h3 nexthop via 198.51.200.1
69 ip route add 198.51.100.0/24 vrf vrf-h3 nexthop via 198.51.200.1
74 ip route del 198.51.100.0/24 vrf vrf-h3
75 ip route del 192.0.2.0/24 vrf vrf-h3
80 vrf_destroy "vrf-h3"
85 ip link set dev $rp1 up
86 ip link set dev $rp2 up
87 ip link set dev $rp3 up
170 local fail=${4:-0}
176 $PING -I $oif $dip -c 10 -i 0.1 -w $PING_TIMEOUT -b 2>&1 \
188 log_test "h1 -> net2: reply from r1 (not forwarding)"
190 log_test "h1 -> net3: reply from r1 (not forwarding)"
192 log_test "h1 -> net1: reply from r1 (not dropping)"
194 log_test "h1 -> 255.255.255.255: reply from r1 (not forwarding)"
197 log_test "h2 -> net1: reply from r1 (not forwarding)"
199 log_test "h2 -> net3: reply from r1 (not forwarding)"
201 log_test "h2 -> net2: reply from r1 (not dropping)"
203 log_test "h2 -> 255.255.255.255: reply from r1 (not forwarding)"
209 log_test "h1 -> net2: reply from h2 (forwarding)"
211 log_test "h1 -> net3: reply from h3 (forwarding)"
213 log_test "h1 -> net1: no reply (dropping)"
215 log_test "h1 -> 255.255.255.255: reply from r1 (not forwarding)"
218 log_test "h2 -> net1: reply from h1 (forwarding)"
220 log_test "h2 -> net3: reply from h3 (forwarding)"
222 log_test "h2 -> net2: no reply (dropping)"
224 log_test "h2 -> 255.255.255.255: reply from r1 (not forwarding)"