Lines Matching refs:veth2

448 	$IP link add name veth1 type veth peer name veth2
449 $IP link set dev veth2 netns $ns2
451 ip -netns $ns2 address add 192.0.2.1/24 dev veth2
453 ip -netns $ns2 link set dev veth2 up
458 ip -netns $ns2 link set dev veth2 address 52:54:00:6a:c7:5e
460 # 1. (ns2) redirect lo's egress to veth2's egress
463 action mirred egress redirect dev veth2
465 action mirred egress redirect dev veth2
481 # 4. (ns2) redirect veth2's ingress to lo's ingress
482 ip netns exec $ns2 tc qdisc add dev veth2 ingress
483 ip netns exec $ns2 tc filter add dev veth2 ingress protocol arp basic \
485 ip netns exec $ns2 tc filter add dev veth2 ingress protocol ip basic \
883 $IP link add veth1 type veth peer name veth2
885 $IP link set dev veth2 up
887 $IP -6 address add 2001:10::2/64 dev veth2 nodad
892 # Send a RA message with a route from veth2 to veth1.
893 $NS_EXEC ra6 -i veth2 -d 2001:10::1 -t $EXPIRE
1062 $IP li add veth1 type veth peer name veth2
1067 $IP li set veth2 netns $ns2 up
1077 ip -netns $ns2 -6 addr add 2001:db8:101::2/64 dev veth2 nodad
1081 ip -netns $ns2 addr add 172.16.101.2/24 dev veth2
2522 run_cmd "ip netns exec $ns2 bash -c \"echo 20000 > /sys/class/net/veth2/gro_flush_timeout\""
2523 run_cmd "ip netns exec $ns2 bash -c \"echo 1 > /sys/class/net/veth2/napi_defer_hard_irqs\""
2524 run_cmd "ip netns exec $ns2 ethtool -K veth2 generic-receive-offload on"
2534 run_cmd "ip netns exec $ns2 sysctl -qw net.ipv4.conf.veth2.rp_filter=0"
2539 local dmac=$(ip -n $ns2 -j link show dev veth2 | jq -r '.[]["address"]')
2548 local t0_rx_pkts=$(link_stats_get $ns2 veth2 rx packets)
2550 local t1_rx_pkts=$(link_stats_get $ns2 veth2 rx packets)
2570 run_cmd "ip netns exec $ns2 bash -c \"echo 20000 > /sys/class/net/veth2/gro_flush_timeout\""
2571 run_cmd "ip netns exec $ns2 bash -c \"echo 1 > /sys/class/net/veth2/napi_defer_hard_irqs\""
2572 run_cmd "ip netns exec $ns2 ethtool -K veth2 generic-receive-offload on"
2584 local dmac=$(ip -n $ns2 -j link show dev veth2 | jq -r '.[]["address"]')
2593 local t0_rx_pkts=$(link_stats_get $ns2 veth2 rx packets)
2595 local t1_rx_pkts=$(link_stats_get $ns2 veth2 rx packets)