Lines Matching +full:6 +full:ns

174 	local ns
176 for ns in h1 h2 r1 r2; do
177 ip netns del $ns 2>/dev/null
183 local ns=$1
185 ip -netns "${ns}" rule del pref 0
186 ip -netns "${ns}" rule add pref 32765 from all lookup local
187 ip -netns "${ns}" -6 rule del pref 0
188 ip -netns "${ns}" -6 rule add pref 32765 from all lookup local
193 local ns=$1
197 ip -netns "${ns}" link add "${vrf}" type vrf table "${table}"
198 ip -netns "${ns}" link set "${vrf}" up
199 ip -netns "${ns}" route add vrf "${vrf}" unreachable default metric 8192
200 ip -netns "${ns}" -6 route add vrf "${vrf}" unreachable default metric 8192
202 ip -netns "${ns}" addr add 127.0.0.1/8 dev "${vrf}"
203 ip -netns "${ns}" -6 addr add ::1 dev "${vrf}" nodad
208 local ns
216 for ns in h1 h2 r1; do
217 ip netns add $ns
218 ip -netns $ns link set lo up
220 case "${ns}" in
221 h[12]) ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=0
222 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.keep_addr_on_down=1
224 r1) ip netns exec $ns sysctl -q -w net.ipv4.ip_forward=1
225 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=1
242 ip -netns h1 -6 addr add dev eth0 ${H1_N1_IP6}/64 nodad
247 ip -netns h1 -6 route add ${H2_N2_6} via "${R1_N1_IP6}" dev eth0
253 ip -netns h2 -6 addr add dev eth0 ${H2_N2_IP6}/64 nodad
258 ip -netns h2 -6 route add default via ${R1_N2_IP6} dev eth0
270 ip -netns r1 -6 addr add dev eth0 ${R1_N1_IP6}/64 nodad
272 ip -netns r1 -6 addr add dev eth1 ${R1_N2_IP6}/64 nodad
276 ip -netns r1 -6 route add vrf blue ${H2_N2_6} dev red
280 ip -netns r1 -6 route add vrf red ${H1_N1_6} dev blue
289 local ns
297 for ns in h1 h2 r1 r2; do
298 ip netns add $ns
299 ip -netns $ns link set lo up
301 case "${ns}" in
302 h[12]) ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=0
303 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.keep_addr_on_down=1
305 r[12]) ip netns exec $ns sysctl -q -w net.ipv4.ip_forward=1
306 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=1
331 ip -netns h1 -6 addr add dev br0 ${H1_N1_IP6}/64 nodad
337 ip -netns h1 -6 route add ${H2_N2_6} via "${R1_N1_IP6}" dev br0
345 ip -netns h2 -6 addr add dev br0 ${H2_N2_IP6}/64 nodad
351 ip -netns h2 -6 route add default via ${R2_N2_IP6} dev br0
363 ip -netns r1 -6 addr add dev eth0 ${R1_N1_IP6}/64 nodad
365 ip -netns r1 -6 addr add dev eth1 ${R1_N2_IP6}/64 nodad
369 ip -netns r1 -6 route add vrf blue ${H2_N2_6} dev red
377 ip -netns r2 -6 addr add dev eth0 ${R2_N1_IP6}/64 nodad
379 ip -netns r2 -6 addr add dev eth1 ${R2_N2_IP6}/64 nodad
554 -6 Run IPv6 tests only
578 6) TESTS=ipv6;;