Lines Matching +full:6 +full:ns
4 # Validate cached routes in fib{6}_nh that is used by multiple prefixes.
73 local ns=${1}
75 ip netns del ${ns} 2>/dev/null
77 ip netns add ${ns}
78 ip -netns ${ns} addr add 127.0.0.1/8 dev lo
79 ip -netns ${ns} link set lo up
81 ip netns exec ${ns} sysctl -q -w net.ipv6.conf.all.keep_addr_on_down=1
82 case ${ns} in
84 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=0
87 ip netns exec $ns sysctl -q -w net.ipv4.ip_forward=1
88 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=1
95 local ns
100 for ns in h0 r1 h1 h2 h3
102 create_ns ${ns}
116 ip -netns h${i} -6 addr add dev eth0 2001:db8:10${i}::1/64
118 ip -netns r1 -6 addr add dev eth${i} 2001:db8:10${i}::64/64
122 ip -netns h0 nexthop add id 6 via 2001:db8:100::64 dev eth0
130 ip -netns h0 -6 ro add 2001:db8:10${i}::/64 nhid 6
131 ip -netns h${i} -6 ro add 2001:db8:100::/64 via 2001:db8:10${i}::64
139 ip -netns h0 -6 ro sh
210 ip -netns h0 -6 ro get ${dst}
216 ip -netns h0 -6 ro get ${dst} | \
286 ip -netns h0 -6 ro del 2001:db8:102::/64 nhid 6
289 ip -netns h0 nexthop del id 6