Lines Matching full:net

31 	ip -net $ROUTER_NS link add link1 type veth peer name link0 netns $CLIENT_NS
32 ip -net $ROUTER_NS link add link2 type veth peer name link3 netns $SERVER_NS
34 ip -net $CLIENT_NS link set link0 up
35 ip -net $CLIENT_NS link set link0 mtu 1442
36 ip -net $CLIENT_NS addr add $CLIENT_IP4/24 dev link0
37 ip -net $CLIENT_NS addr add $CLIENT_IP6/64 dev link0 nodad
38 ip -net $CLIENT_NS route add $SERVER_IP4 dev link0 via $CLIENT_GW4
39 ip -net $CLIENT_NS route add $SERVER_IP6 dev link0 via $CLIENT_GW6
40 ip -net $CLIENT_NS link set dev link0 \
42 ip -net $CLIENT_NS link set dev link0 \
44 ip net exec $CLIENT_NS sysctl -wq net.ipv4.tcp_window_scaling=10
46 ip -net $ROUTER_NS link set link1 up
47 ip -net $ROUTER_NS link set link2 up
48 ip -net $ROUTER_NS addr add $CLIENT_GW4/24 dev link1
49 ip -net $ROUTER_NS addr add $CLIENT_GW6/64 dev link1 nodad
50 ip -net $ROUTER_NS addr add $SERVER_GW4/24 dev link2
51 ip -net $ROUTER_NS addr add $SERVER_GW6/64 dev link2 nodad
52 ip -net $ROUTER_NS link set dev link1 \
54 ip -net $ROUTER_NS link set dev link2 \
56 ip -net $ROUTER_NS link set dev link1 \
58 ip -net $ROUTER_NS link set dev link2 \
61 ip net exec $ROUTER_NS tc qdisc add dev link1 ingress
62 ip net exec $ROUTER_NS tc filter add dev link1 ingress \
64 ip net exec $ROUTER_NS tc filter add dev link1 ingress \
66 ip net exec $ROUTER_NS sysctl -wq net.ipv4.ip_forward=1
67 ip net exec $ROUTER_NS sysctl -wq net.ipv6.conf.all.forwarding=1
69 ip -net $SERVER_NS link set link3 up
70 ip -net $SERVER_NS addr add $SERVER_IP4/24 dev link3
71 ip -net $SERVER_NS addr add $SERVER_IP6/64 dev link3 nodad
72 ip -net $SERVER_NS route add $CLIENT_IP4 dev link3 via $SERVER_GW4
73 ip -net $SERVER_NS route add $CLIENT_IP6 dev link3 via $SERVER_GW6
74 ip -net $SERVER_NS link set dev link3 \
76 ip -net $SERVER_NS link set dev link3 \
78 ip net exec $SERVER_NS sysctl -wq net.ipv4.tcp_window_scaling=10
79 ip net exec $SERVER_NS netserver 2>&1 >/dev/null
83 ip net exec $SERVER_NS pkill netserver
84 ip -net $ROUTER_NS link del link1
85 ip -net $ROUTER_NS link del link2
97 ip net exec $netns $ipt -t raw -A PREROUTING -i $iface \
107 test `ip net exec $netns $ipt -t raw -L -v |grep $iface | awk '{print $1}'` != "0"
116 ip net exec $netns $ipt -t raw -D PREROUTING -i $iface \
127 ip net exec $netns netperf -$NF -t TCP_STREAM -l 1 -H $serip -- -m 262144 2>&1 >/dev/null
137 ip net exec $CLIENT_NS ethtool -K link0 tso $cli_tso
138 ip net exec $ROUTER_NS ethtool -K link1 gro $gw_gro
139 ip net exec $ROUTER_NS ethtool -K link2 tso $gw_tso
140 ip net exec $SERVER_NS ethtool -K link3 gro $ser_gro