Lines Matching +full:6 +full:ns
47 local ns
52 ns="$1"
60 out=$(eval ip netns exec ${ns} ${cmd} 2>&1)
76 local ns=$1
83 ip netns add ${ns}
85 ip -netns ${ns} link set lo up
87 ip -netns ${ns} addr add dev lo ${addr}
90 ip -netns ${ns} -6 addr add dev lo ${addr6}
93 ip -netns ${ns} ro add unreachable default metric 8192
94 ip -netns ${ns} -6 ro add unreachable default metric 8192
96 ip netns exec ${ns} sysctl -qw net.ipv4.ip_forward=1
97 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1
98 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.forwarding=1
99 ip netns exec ${ns} sysctl -qw net.ipv6.conf.default.forwarding=1
100 ip netns exec ${ns} sysctl -qw net.ipv6.conf.default.accept_dad=0
111 local ns2_dev=$6
136 local ns
138 for ns in host-1 host-2 router
140 ip netns del ${ns} 2>/dev/null
198 ip -netns host-1 -6 ro add fc00:101::2/128 via fc00:1::2
199 ip -netns host-2 -6 ro add fc00:101::1/128 via fc00:1::1
219 ip -netns host-1 -6 ro add 2001:db8:2::/64 via 2001:db8:1::2
222 ip -netns host-2 -6 ro add 2001:db8:1::/64 via 2001:db8:2::2
273 run_cmd host-1 ip -6 xfrm policy add \
277 run_cmd host-1 ip -6 xfrm policy add \
281 run_cmd host-2 ip -6 xfrm policy add \
285 run_cmd host-2 ip -6 xfrm policy add \
289 ip -netns host-1 -6 xfrm state add \
294 ip -netns host-1 -6 xfrm state add \
299 ip -netns host-2 -6 xfrm state add \
304 ip -netns host-2 -6 xfrm state add \