/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | router_multipath.sh | 25 ip route del 2001:db8:2::/64 vrf vrf-h1 26 ip route del 198.51.100.0/24 vrf vrf-h1 52 ip route del 2001:db8:1::/64 vrf vrf-h2 53 ip route del 192.0.2.0/24 vrf vrf-h2 83 ip route add 198.51.100.0/24 vrf vrf-r1 \ 86 ip route add 2001:db8:2::/64 vrf vrf-r1 \ 93 ip route del 2001:db8:2::/64 vrf vrf-r1 94 ip route del 198.51.100.0/24 vrf vrf-r1 133 ip route add 192.0.2.0/24 vrf vrf-r2 \ 143 ip route del 2001:db8:1::/64 vrf vrf-r2 [all …]
|
H A D | router_mpath_nh.sh | 31 ip route del 2001:db8:2::/64 vrf vrf-h1 32 ip route del 198.51.100.0/24 vrf vrf-h1 58 ip route del 2001:db8:1::/64 vrf vrf-h2 59 ip route del 192.0.2.0/24 vrf vrf-h2 92 ip route del 2001:db8:2::/64 vrf vrf-r1 93 ip route del 198.51.100.0/24 vrf vrf-r1 142 ip route del 2001:db8:1::/64 vrf vrf-r2 143 ip route del 192.0.2.0/24 vrf vrf-r2 171 ip route add 198.51.100.0/24 vrf vrf-r1 nhid 103 176 ip route add 2001:db8:2::/64 vrf vrf-r1 nhid 106 [all …]
|
H A D | router_broadcast.sh | 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 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 68 ip route add 192.0.2.0/24 vrf vrf-h3 nexthop via 198.51.200.1 74 ip route del 198.51.100.0/24 vrf vrf-h3 [all …]
|
H A D | router_vid_1.sh | 36 ip link set dev vrf-h1 up 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 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 71 ip route del 2001:db8:1::/64 vrf vrf-h2 [all …]
|
H A D | mirror_gre_lag_lacp.sh | 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 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 108 ip -4 route add vrf vrf-h3 192.0.2.129/32 dev lag2 113 ip -4 route del vrf vrf-h3 192.0.2.129/32 dev lag2 123 vrf_create vrf-h3 124 ip link set dev vrf-h3 up 135 ip link set dev vrf-h3 down [all …]
|
H A D | router_mpath_nh_res.sh | 29 ip route del 2001:db8:2::/64 vrf vrf-h1 30 ip route del 198.51.100.0/24 vrf vrf-h1 56 ip route del 2001:db8:1::/64 vrf vrf-h2 57 ip route del 192.0.2.0/24 vrf vrf-h2 90 ip route del 2001:db8:2::/64 vrf vrf-r1 91 ip route del 198.51.100.0/24 vrf vrf-r1 140 ip route del 2001:db8:1::/64 vrf vrf-r2 141 ip route del 192.0.2.0/24 vrf vrf-r2 170 ip route add 198.51.100.0/24 vrf vrf-r1 nhid 103 176 ip route add 2001:db8:2::/64 vrf vrf-r1 nhid 106 [all …]
|
H A D | ip6gre_custom_multipath_hash.sh | 96 ip -6 route del vrf v$h1 default 97 ip route del vrf v$h1 default 118 ip route del vrf v$ol1 203.0.113.0/24 201 ip route del vrf v$ol4 198.51.100.0/24 220 ip -6 route del vrf v$h2 default 221 ip route del vrf v$h2 default 281 ip vrf exec v$h1 $MZ $h1 -q -p 64 \ 288 ip vrf exec v$h1 $MZ $h1 -q -p 64 \ 295 ip vrf exec v$h1 $MZ $h1 -q -p 64 \ 302 ip vrf exec v$h1 $MZ $h1 -q -p 64 \ [all …]
|
H A D | gre_custom_multipath_hash.sh | 96 ip -6 route del vrf v$h1 default 97 ip route del vrf v$h1 default 119 ip route del vrf v$ol1 192.0.2.2/32 201 ip route del vrf v$ol4 192.0.2.1/32 218 ip -6 route del vrf v$h2 default 219 ip route del vrf v$h2 default 279 ip vrf exec v$h1 $MZ $h1 -q -p 64 \ 286 ip vrf exec v$h1 $MZ $h1 -q -p 64 \ 293 ip vrf exec v$h1 $MZ $h1 -q -p 64 \ 300 ip vrf exec v$h1 $MZ $h1 -q -p 64 \ [all …]
|
H A D | router_nh.sh | 16 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 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 57 ip route del 2001:db8:1::/64 vrf vrf-h2 [all …]
|
H A D | gre_inner_v4_multipath.sh | 108 ip route del vrf v$ol1 192.0.4.0/24 110 ip route del vrf v$ol1 192.0.2.66/32 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 150 ip route add vrf v$ul31 192.0.2.65/32 \ 165 ip route del vrf v$ul31 192.0.2.65/32 166 ip route del vrf v$ul31 192.0.2.66/32 188 ip route del vrf v$ol4 192.0.3.0/24 190 ip route del vrf v$ol4 192.0.2.65/32 [all …]
|
H A D | gre_inner_v6_multipath.sh | 108 ip -6 route del vrf v$ol1 2001:db8:2::/64 110 ip route del vrf v$ol1 192.0.2.66/32 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 150 ip route add vrf v$ul31 192.0.2.65/32 \ 165 ip route del vrf v$ul31 192.0.2.65/32 166 ip route del vrf v$ul31 192.0.2.66/32 188 ip -6 route del vrf v$ol4 2001:db8:1::/64 190 ip route del vrf v$ol4 192.0.2.65/32 [all …]
|
H A D | ip6gre_inner_v4_multipath.sh | 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 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 149 ip -6 route add vrf v$ul31 2001:db8:40::1/128 \ 164 ip -6 route del vrf v$ul31 2001:db8:40::1/128 165 ip -6 route del vrf v$ul31 2001:db8:40::2/128 187 ip route del vrf v$ol4 192.0.3.0/24 189 ip -6 route del vrf v$ol4 2001:db8:40::1/128 [all …]
|
H A D | ip6gre_inner_v6_multipath.sh | 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 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 149 ip -6 route add vrf v$ul31 2001:db8:40::1/128 \ 164 ip -6 route del vrf v$ul31 2001:db8:40::1/128 165 ip -6 route del vrf v$ul31 2001:db8:40::2/128 187 ip -6 route del vrf v$ol4 2001:db8:1::/64 189 ip -6 route del vrf v$ol4 2001:db8:40::1/128 [all …]
|
H A D | custom_multipath_hash.sh | 63 ip -6 route del vrf v$h1 default 64 ip route del vrf v$h1 default 87 ip route del vrf v$rp1 203.0.113.0/24 113 ip route del vrf v$rp2 198.51.100.0/24 129 ip -6 route del vrf v$h2 default 130 ip route del vrf v$h2 default 184 ip vrf exec v$h1 $MZ $h1 -q -p 64 \ 191 ip vrf exec v$h1 $MZ $h1 -q -p 64 \ 198 ip vrf exec v$h1 $MZ $h1 -q -p 64 \ 205 ip vrf exec v$h1 $MZ $h1 -q -p 64 \ [all …]
|
H A D | gre_multipath_nh.sh | 76 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2 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 152 ip route add vrf v$ol2 192.0.2.0/28 nhid 203 153 ip route add vrf v$ol2 2001:db8:1::/64 nhid 203 166 ip route del vrf v$ol2 2001:db8:1::/64 167 ip route del vrf v$ol2 192.0.2.0/28 246 ip vrf exec v$h1 \ [all …]
|
H A D | gre_multipath.sh | 69 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 93 ip route add vrf v$ol1 192.0.2.16/28 \ 100 ip route del vrf v$ol1 192.0.2.16/28 131 ip route add vrf v$ol2 192.0.2.0/28 \ 146 ip route del vrf v$ol2 192.0.2.0/28 165 ip route add vrf v$h2 192.0.2.0/28 via 192.0.2.17 170 ip route del vrf v$h2 192.0.2.0/28 via 192.0.2.17 214 ip route replace vrf v$ol1 192.0.2.16/28 \ 221 ip vrf exec v$h1 \ [all …]
|
H A D | gre_multipath_nh_res.sh | 76 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2 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 154 ip route add vrf v$ol2 192.0.2.0/28 nhid 203 155 ip route add vrf v$ol2 2001:db8:1::/64 nhid 203 168 ip route del vrf v$ol2 2001:db8:1::/64 169 ip route del vrf v$ol2 192.0.2.0/28 249 ip vrf exec v$h1 \ [all …]
|
H A D | router_bridge_vlan.sh | 50 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2 54 ip -4 route add 192.0.2.144/28 vrf v$h1 nexthop via 192.0.2.18 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 83 ip -6 route del 2001:db8:3::/64 vrf v$h2 84 ip -6 route del 2001:db8:1::/64 vrf v$h2 85 ip -4 route del 192.0.2.16/28 vrf v$h2 [all …]
|
H A D | router_bridge_1d.sh | 44 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 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 73 ip -6 route del 2001:db8:3::/64 vrf v$h2 74 ip -6 route del 2001:db8:1::/64 vrf v$h2 75 ip -4 route del 192.0.2.16/28 vrf v$h2 [all …]
|
H A D | ip6gre_lib.sh | 239 ip route add vrf v$ol2 198.51.100.0/24 dev g2a 248 ip -6 route del vrf v$ol2 2001:db8:2::/64 249 ip route del vrf v$ol2 198.51.100.0/24 276 ip route add vrf v$ol1 203.0.113.0/24 dev g1a 285 ip -6 route del vrf v$ol1 2001:db8:2::/64 286 ip route del vrf v$ol1 203.0.113.0/24 287 ip -6 route del vrf v$ul1 2001:db8:3::2/128 320 ip route add vrf v$ol2 198.51.100.0/24 dev g2a 329 ip -6 route del vrf v$ol2 2001:db8:2::/64 330 ip route del vrf v$ol2 198.51.100.0/24 [all …]
|
H A D | ipip_lib.sh | 149 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 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 266 ip route del vrf v$ol1 192.0.2.16/28 267 ip route del vrf v$ul1 192.0.2.66/32 297 ip route add vrf v$ol2 192.0.2.0/28 nexthop dev g2a 305 ip route del vrf v$ol2 192.0.2.0/28 [all …]
|
H A D | router.sh | 43 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 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 84 ip route del 2001:db8:1::/64 vrf vrf-h2 [all …]
|
H A D | mirror_gre_bridge_1q_lag.sh | 84 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 …]
|
H A D | tc_flower_router.sh | 13 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 51 ip route del 192.0.2.0/24 vrf v$h3 [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | sctp_vrf.sh | 44 ip -n $SERVER_NS link add vrf-1 type vrf table 10 45 ip -n $SERVER_NS link add vrf-2 type vrf table 20 46 ip -n $SERVER_NS link set vrf-1 up 47 ip -n $SERVER_NS link set vrf-2 up 48 ip -n $SERVER_NS link set veth1 master vrf-1 49 ip -n $SERVER_NS link set veth2 master vrf-2 150 do_test $CLIENT_NS1 vrf-1 || { echo "[FAIL]"; return $RET; } 154 do_test $CLIENT_NS1 vrf-2 && { echo "[FAIL]"; return $RET; } 158 do_test $CLIENT_NS2 vrf-2 || { echo "[FAIL]"; return $RET; } 166 do_testx vrf-1 vrf-2 || { echo "[FAIL]"; return $RET; } [all …]
|