Lines Matching refs:ip
49 out=$(eval ip netns exec ${ns} ${cmd} 2>&1)
72 ip netns add ${ns}
74 ip netns exec ${ns} ip link set lo up
76 ip netns exec ${ns} ip addr add dev lo ${addr}
79 ip netns exec ${ns} ip -6 addr add dev lo ${addr6}
82 ip netns exec ${ns} ip ro add unreachable default metric 8192
83 ip netns exec ${ns} ip -6 ro add unreachable default metric 8192
85 ip netns exec ${ns} sysctl -qw net.ipv4.ip_forward=1
86 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1
87 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.forwarding=1
88 ip netns exec ${ns} sysctl -qw net.ipv6.conf.default.forwarding=1
89 ip netns exec ${ns} sysctl -qw net.ipv6.conf.default.accept_dad=0
104 ip netns exec ${ns1} ip li add ${ns1_dev} type veth peer name tmp
105 ip netns exec ${ns1} ip li set ${ns1_dev} up
106 ip netns exec ${ns1} ip li set tmp netns ${ns2} name ${ns2_dev}
107 ip netns exec ${ns2} ip li set ${ns2_dev} up
110 ip netns exec ${ns1} ip addr add dev ${ns1_dev} ${ns1_addr}
114 ip netns exec ${ns2} ip addr add dev ${ns2_dev} ${ns2_addr}
118 ip netns exec ${ns1} ip addr add dev ${ns1_dev} ${ns1_addr6}
122 ip netns exec ${ns2} ip addr add dev ${ns2_dev} ${ns2_addr6}
167 ip netns del ${ns} 2>/dev/null
186 ip netns exec host-2 ip route add default via 2000:103::2
190 ip netns exec router-1 ip route add default via 2000:102::2
193 ip netns exec router-1 ip link add name ${brdev} type bridge
194 ip netns exec router-1 ip link set ${brdev} up
195 ip netns exec router-1 ip addr add 2000:101::1/64 dev ${brdev}
198 ip netns exec router-1 ip link set dev eth0 master ${brdev}
199 ip netns exec host-1 ip route add default via 2000:101::1
202 ip netns exec router-1 ip link set dev eth1 master ${brdev}
205 ip netns exec host-1 ping6 -c5 2000:103::4 >/dev/null 2>&1
247 ip netns del ${ns} 2>/dev/null
263 ip netns exec host-1 ip route add default via 1.0.1.1
265 ip netns exec router ip addr add 1.0.1.1/24 dev eth1
266 ip netns exec router sysctl -qw \
271 ip netns exec host-2 ip route add default via 1.0.2.1
274 ip netns exec host-1 ping -c5 1.0.2.4 >/dev/null 2>&1