Lines Matching refs:ip

60 	ip link del veth1 2> /dev/null
61 ip netns del ${NS1} 2> /dev/null
62 ip netns del ${NS2} 2> /dev/null
122 ip link set dev lo xdpgeneric off 2>/dev/null > /dev/null
130 ip link del veth1 2> /dev/null
131 ip netns del ${NS1} 2> /dev/null
132 ip netns del ${NS2} 2> /dev/null
139 which ip > /dev/null
149 ip netns add ${NS1}
150 ip netns add ${NS2}
156 ip link add veth1 type veth peer name veth2
159 ip link set veth1 netns ${NS1}
160 ip link set veth2 netns ${NS2}
167 ip netns exec ${NS1} ethtool -K veth1 rxvlan off
168 ip netns exec ${NS2} ethtool -K veth2 rxvlan off
171 ip netns exec ${NS2} ethtool -K veth2 txvlan off
172 ip netns exec ${NS1} ethtool -K veth1 txvlan off
178 ip netns exec ${NS1} ip addr add ${IPADDR1}/24 dev veth1
179 ip netns exec ${NS1} ip link set veth1 up
184 ip netns exec ${NS2} ip link add link $DEVNS2 name $DEVNS2.$VLAN type vlan id $VLAN
185 ip netns exec ${NS2} ip addr add ${IPADDR2}/24 dev $DEVNS2.$VLAN
186 ip netns exec ${NS2} ip link set $DEVNS2 up
187 ip netns exec ${NS2} ip link set $DEVNS2.$VLAN up
190 ip netns exec ${NS1} ip link set lo up
191 ip netns exec ${NS2} ip link set lo up
196 ip netns exec ${NS2} sh -c 'ping -W 1 -c 1 100.64.41.1 || echo "Success: First ping must fail"'
207 ip netns exec ${NS1} ip link set $DEVNS1 $XDP_MODE object $BPF_FILE section $XDP_PROG
213 ip netns exec ${NS1} tc qdisc add dev $DEVNS1 clsact
214 ip netns exec ${NS1} tc filter add dev $DEVNS1 egress \
218 ip netns exec ${NS2} ping -i 0.2 -W 2 -c 2 $IPADDR1
219 ip netns exec ${NS1} ping -i 0.2 -W 2 -c 2 $IPADDR2
228 ip netns exec ${NS1} ip link set $DEVNS1 $XDP_MODE off
229 ip netns exec ${NS1} ip link set $DEVNS1 $XDP_MODE object $BPF_FILE section $XDP_PROG
232 ip netns exec ${NS2} ping -i 0.2 -W 2 -c 2 $IPADDR1
233 ip netns exec ${NS1} ping -i 0.2 -W 2 -c 2 $IPADDR2