Lines Matching +full:6 +full:ns
180 local ns=$1
182 ip -netns "${ns}" rule del pref 0
183 ip -netns "${ns}" rule add pref 32765 from all lookup local
184 ip -netns "${ns}" -6 rule del pref 0
185 ip -netns "${ns}" -6 rule add pref 32765 from all lookup local
190 local ns=$1
194 ip -netns "${ns}" link add "${vrf}" type vrf table "${table}"
195 ip -netns "${ns}" link set "${vrf}" up
196 ip -netns "${ns}" route add vrf "${vrf}" unreachable default metric 8192
197 ip -netns "${ns}" -6 route add vrf "${vrf}" unreachable default metric 8192
199 ip -netns "${ns}" addr add 127.0.0.1/8 dev "${vrf}"
200 ip -netns "${ns}" -6 addr add ::1 dev "${vrf}" nodad
205 local ns
213 for ns in $h1 $h2 $r1; do
214 if echo $ns | grep -q h[12]-; then
215 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=0
216 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.keep_addr_on_down=1
218 ip netns exec $ns sysctl -q -w net.ipv4.ip_forward=1
219 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=1
236 ip -netns $h1 -6 addr add dev eth0 ${H1_N1_IP6}/64 nodad
241 ip -netns $h1 -6 route add ${H2_N2_6} via "${R1_N1_IP6}" dev eth0
247 ip -netns $h2 -6 addr add dev eth0 ${H2_N2_IP6}/64 nodad
252 ip -netns $h2 -6 route add default via ${R1_N2_IP6} dev eth0
264 ip -netns $r1 -6 addr add dev eth0 ${R1_N1_IP6}/64 nodad
266 ip -netns $r1 -6 addr add dev eth1 ${R1_N2_IP6}/64 nodad
270 ip -netns $r1 -6 route add vrf blue ${H2_N2_6} dev red
274 ip -netns $r1 -6 route add vrf red ${H1_N1_6} dev blue
283 local ns
291 for ns in $h1 $h2 $r1 $r2; do
292 if echo $ns | grep -q h[12]-; then
293 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=0
294 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.keep_addr_on_down=1
296 ip netns exec $ns sysctl -q -w net.ipv4.ip_forward=1
297 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=1
322 ip -netns $h1 -6 addr add dev br0 ${H1_N1_IP6}/64 nodad
328 ip -netns $h1 -6 route add ${H2_N2_6} via "${R1_N1_IP6}" dev br0
336 ip -netns $h2 -6 addr add dev br0 ${H2_N2_IP6}/64 nodad
342 ip -netns $h2 -6 route add default via ${R2_N2_IP6} dev br0
354 ip -netns $r1 -6 addr add dev eth0 ${R1_N1_IP6}/64 nodad
356 ip -netns $r1 -6 addr add dev eth1 ${R1_N2_IP6}/64 nodad
360 ip -netns $r1 -6 route add vrf blue ${H2_N2_6} dev red
368 ip -netns $r2 -6 addr add dev eth0 ${R2_N1_IP6}/64 nodad
370 ip -netns $r2 -6 addr add dev eth1 ${R2_N2_IP6}/64 nodad
596 run_cmd nettest -s -6 -O "$h2" -l ${H2_N2_IP6} -I eth0 -3 eth0 &
598 run_cmd nettest -6 -N "$r1" -d blue -r ${H2_N2_IP6}
610 run_cmd nettest -s -6 -D -O "$h2" -l ${H2_N2_IP6} -I eth0 -3 eth0 &
612 run_cmd nettest -6 -D -N "$r1" -d blue -r ${H2_N2_IP6}
625 -6 Run IPv6 tests only
653 6) TESTS=ipv6;;