Lines Matching +full:route +full:- +full:up
2 # SPDX-License-Identifier: GPL-2.0
6 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)"
10 ip -netns "${PEER_NS}" link set dev lo up
12 ip link set dev veth0 up
15 # Enable route_localnet and delete useless route 127.0.0.0/8.
16 sysctl -w net.ipv4.conf.veth0.route_localnet=1
17 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.route_localnet=1
18 ip route del 127.0.0.0/8 dev lo table local
19 ip netns exec "${PEER_NS}" ip route del 127.0.0.0/8 dev lo table local
21 ifconfig veth0 127.25.3.4/24 up
22 ip netns exec "${PEER_NS}" ifconfig veth1 127.25.3.14/24 up
24 ip route flush cache
25 ip netns exec "${PEER_NS}" ip route flush cache
30 ip route add local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1
31 local -r ns="$(ip netns list|grep $PEER_NS)"
32 [ -n "$ns" ] && ip netns del $ns 2>/dev/null
40 sysctl -w net.ipv4.conf.veth0.arp_announce=2
41 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_announce=2
42 ping -c5 -I veth0 127.25.3.14
43 if [ $? -ne 0 ];then
57 sysctl -w net.ipv4.conf.veth0.arp_ignore=3
58 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_ignore=3
59 ping -c5 -I veth0 127.25.3.14
60 if [ $? -ne 0 ];then