Lines Matching refs:ip
87 ip netns delete "${ns}" 2>/dev/null || true
100 ip netns add "${LISTENER}" || exit_cleanup
101 ip netns add "${GATEWAY}" || exit_cleanup "${LISTENER}"
102 ip netns add "${RELAY}" || exit_cleanup "${LISTENER}" "${GATEWAY}"
103 ip netns add "${SOURCE}" || exit_cleanup "${LISTENER}" "${GATEWAY}" \
117 ip -netns "${ns}" link set dev lo up
120 ip link add l_gw type veth peer name gw_l
121 ip link add gw_relay type veth peer name relay_gw
122 ip link add relay_src type veth peer name src_relay
124 ip link set l_gw netns "${LISTENER}" up
125 ip link set gw_l netns "${GATEWAY}" up
126 ip link set gw_relay netns "${GATEWAY}" up
127 ip link set relay_gw netns "${RELAY}" up
128 ip link set relay_src netns "${RELAY}" up
129 ip link set src_relay netns "${SOURCE}" up mtu 1400
131 ip netns exec "${LISTENER}" ip a a 192.168.0.2/24 dev l_gw
132 ip netns exec "${LISTENER}" ip r a default via 192.168.0.1 dev l_gw
133 ip netns exec "${LISTENER}" ip a a 2001:db8::2/64 dev l_gw
134 ip netns exec "${LISTENER}" ip r a default via 2001:db8::1 dev l_gw
135 ip netns exec "${LISTENER}" ip a a 239.0.0.1/32 dev l_gw autojoin
136 ip netns exec "${LISTENER}" ip a a ff0e::5:6/128 dev l_gw autojoin
138 ip netns exec "${GATEWAY}" ip a a 192.168.0.1/24 dev gw_l
139 ip netns exec "${GATEWAY}" ip a a 2001:db8::1/64 dev gw_l
140 ip netns exec "${GATEWAY}" ip a a 10.0.0.1/24 dev gw_relay
141 ip netns exec "${GATEWAY}" ip link add br0 type bridge
142 ip netns exec "${GATEWAY}" ip link set br0 up
143 ip netns exec "${GATEWAY}" ip link set gw_l master br0
144 ip netns exec "${GATEWAY}" ip link set gw_l up
145 ip netns exec "${GATEWAY}" ip link add amtg master br0 type amt \
148 ip netns exec "${RELAY}" ip a a 10.0.0.2/24 dev relay_gw
149 ip netns exec "${RELAY}" ip link add amtr type amt mode relay \
151 ip netns exec "${RELAY}" ip a a 172.17.0.1/24 dev relay_src
152 ip netns exec "${RELAY}" ip a a 2001:db8:3::1/64 dev relay_src
153 ip netns exec "${SOURCE}" ip a a 172.17.0.2/24 dev src_relay
154 ip netns exec "${SOURCE}" ip a a 2001:db8:3::2/64 dev src_relay
155 ip netns exec "${SOURCE}" ip r a default via 172.17.0.1 dev src_relay
156 ip netns exec "${SOURCE}" ip r a default via 2001:db8:3::1 dev src_relay
157 ip netns exec "${RELAY}" ip link set amtr up
158 ip netns exec "${GATEWAY}" ip link set amtg up
163 ip netns exec "${RELAY}" sysctl net.ipv4.ip_forward=1 -w -q
168 ip netns exec "${RELAY}" iptables -t mangle -I PREROUTING \
170 ip netns exec "${RELAY}" ip6tables -t mangle -I PREROUTING \
176 ip netns exec "${RELAY}" smcrouted -P $SMCROUTEDIR/amt.pid
177 ip netns exec "${RELAY}" smcroutectl a relay_src \
179 ip netns exec "${RELAY}" smcroutectl a relay_src \
185 REMOTE=$(ip netns exec "${GATEWAY}" \
186 ip -d -j link show amtg | jq .[0].linkinfo.info_data.remote)
197 ip netns exec "${SOURCE}" bash -c \
204 ip netns exec "${SOURCE}" bash -c \
210 ip link help 2>&1 | grep -q amt
219 RESULT4=$(ip netns exec "${LISTENER}" timeout 15 socat - UDP4-LISTEN:4000,readbytes=128 || true)
231 RESULT6=$(ip netns exec "${LISTENER}" timeout 15 socat - UDP6-LISTEN:6000,readbytes=128 || true)
244 ip netns exec "${SOURCE}" bash -c \
251 ip netns exec "${SOURCE}" bash -c \