/linux/tools/testing/selftests/net/ |
H A D | test_ingress_egress_chaining.sh | 22 veth2="veth2$((RANDOM%899+100))" 36 ip link del $veth2 &> /dev/null 42 echo "Setup veth pairs [$veth1, $peer1], and veth pair [$veth2, $peer2]" 44 ip link add $veth2 type veth peer name $peer2 52 ip link set $veth2 up 54 echo "Add tc filter ingress->egress forwarding $veth1 <-> $veth2" 55 tc qdisc add dev $veth2 ingress 57 tc filter add dev $veth2 ingress prio 1 proto all flower \ 60 action mirred egress redirect dev $veth2
|
H A D | sctp_vrf.sh | 28 ip -n $SERVER_NS link add veth2 type veth peer name veth1 netns $CLIENT_NS2 45 ip -n $SERVER_NS link set veth2 master vrf-2 49 ip -n $SERVER_NS addr add $SERVER_IP4/24 dev veth2 52 ip -n $SERVER_NS addr add $SERVER_IP6/24 dev veth2 55 ip -n $SERVER_NS link set veth2 up 57 ip -n $SERVER_NS route add table 20 $CLIENT_IP4 dev veth2 src $SERVER_IP4 60 ip -n $SERVER_NS route add table 20 $CLIENT_IP6 dev veth2 src $SERVER_IP6 136 do_test $CLIENT_NS1 veth2 && { echo "[FAIL]"; return $RET; }
|
H A D | arp_ndisc_evict_nocarrier.sh | 37 $IP li add veth1 type veth peer name veth2 40 $IP li set veth2 netns ${peer} up 41 ip -netns ${peer} -6 addr add $V6_ADDR1/64 dev veth2 nodad 56 ip netns exec ${peer} ip link set veth2 down
|
H A D | fib_tests.sh | 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 ingres [all...] |
H A D | vlan_hw_filter.sh | 21 ip netns exec ${NETNS} ip link add bond_slave_1 type veth peer veth2 27 ip netns exec ${NETNS} ip link del veth2 || fail "Please check vlan HW filter function"
|
H A D | fib_nexthops.sh | 184 $IP li add veth1 type veth peer name veth2 194 $IP li set veth2 netns $peer up 195 ip -netns $peer addr add 172.16.1.2/24 dev veth2 196 ip -netns $peer -6 addr add 2001:db8:91::2/64 dev veth2 nodad 1596 lladdr=$(get_linklocal veth2 $peer) 1737 lladdr=$(get_linklocal veth2 $peer) 2139 ip -netns $peer li set veth2 down 2142 ip -netns $peer li set veth2 up
|
H A D | fib-onlink-tests.sh | 15 NETIFS[p2]=veth2
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_xdp_meta.sh | 35 ip link add veth1 type veth peer name veth2 38 ip link set veth2 netns ${NS2} 41 ip netns exec ${NS2} ip addr add 10.1.1.22/24 dev veth2 44 ip netns exec ${NS2} tc qdisc add dev veth2 clsact 47 ip netns exec ${NS2} tc filter add dev veth2 ingress bpf da obj ${BPF_FILE} sec t 50 ip netns exec ${NS2} ip link set dev veth2 xdp obj ${BPF_FILE} sec x 53 ip netns exec ${NS2} ip link set dev veth2 up
|
H A D | test_xdp_redirect.sh | 26 ip link add veth2 index 222 type veth peer name veth22 netns ${NS2} 29 ip link set veth2 up 40 ip link del veth2 2> /dev/null 60 ip link set dev veth2 $xdpmode obj test_xdp_redirect.bpf.o sec redirect_to_111 &> /dev/null
|
H A D | test_tc_tunnel.sh | 33 peer name veth2 mtu 1500 netns "${ns2}" 38 ip -netns "${ns2}" link set veth2 up 41 ip -netns "${ns2}" -4 addr add "${ns2_v4}/24" dev veth2 43 ip -netns "${ns2}" -6 addr add "${ns2_v6}/64" dev veth2 nodad 277 ethaddr=$(ip netns exec "${ns2}" ip link show veth2 | \ 312 ip netns exec "${ns2}" tc qdisc add dev veth2 clsact 313 ip netns exec "${ns2}" tc filter add dev veth2 ingress \
|
H A D | test_xdp_vlan.sh | 156 ip link add veth1 type veth peer name veth2 160 ip link set veth2 netns ${NS2} 168 ip netns exec ${NS2} ethtool -K veth2 rxvlan off 171 ip netns exec ${NS2} ethtool -K veth2 txvlan off 183 export DEVNS2=veth2
|
H A D | test_lwt_ip_encap.sh | 132 ip link add veth1 type veth peer name veth2 141 ip link set veth2 netns ${NS2} 161 ip -netns ${NS2} link set veth2 vrf red 169 ip -netns ${NS2} addr add ${IPv4_2}/24 dev veth2 173 ip -netns ${NS2} -6 addr add ${IPv6_2}/128 nodad dev veth2 188 ip -netns ${NS2} link set dev veth2 up 215 ip -netns ${NS2} route add ${IPv4_1}/32 dev veth2 ${VRF} 217 ip -netns ${NS2} -6 route add ${IPv6_1}/128 dev veth2 ${VRF} 435 ${BPF_FILE} sec encap_gre dev veth2 ${VRF} 437 ${BPF_FILE} sec encap_gre dev veth2 ${VRF} [all …]
|
H A D | test_lwt_seg6local.sh | 71 ip link add veth1 type veth peer name veth2 78 ip link set veth2 netns ${NS2} 89 ip netns exec ${NS2} ip link set dev veth2 up 103 ip netns exec ${NS2} ip -6 addr add fb00::21/16 dev veth2 scope link 121 ip netns exec ${NS2} ip -6 route add fb00::6 encap bpf in obj ${BPF_FILE} sec encap_srh dev veth2
|
/linux/tools/testing/selftests/drivers/net/bonding/ |
H A D | bond-break-lacpdu-tx.sh | 33 ip link del veth2-bond >/dev/null 2>&1 || : 56 ip link add name veth2-bond type veth peer name veth2-end 61 ip link set veth2-bond master fbond 65 ip link set veth2-end up
|
/linux/tools/testing/selftests/wireguard/ |
H A D | netns.sh | 409 # │ │ wg0 │─────────────│veth1│───────────┼────┼──│veth2│────────────│ wg0 │ │ 419 ip1 link add veth1 type veth peer name veth2 420 ip1 link set veth2 netns $netns2 424 n2 bash -c 'printf 0 > /proc/sys/net/ipv6/conf/veth2/accept_dad' 430 ip2 addr add 10.0.0.2/24 dev veth2 431 ip2 addr add fd00:aa::2/96 dev veth2 433 ip2 link set veth2 up 435 waitiface $netns2 veth2 449 ip2 link set veth2 down 451 ip2 addr flush dev veth2 [all...] |
/linux/tools/testing/selftests/net/netfilter/ |
H A D | conntrack_tcp_unreplied.sh | 54 ip -net "$ns1" link add name veth1 type veth peer name veth2 55 ip -net "$ns1" link set netns "$ns2" dev veth2 60 ip -net "$ns2" link set up dev veth2 62 ip -net "$ns2" addr add 10.11.11.2/24 dev veth2 65 ip netns exec "$ns2" sysctl -q net.ipv4.conf.veth2.forwarding=1
|
H A D | nf_nat_edemux.sh | 26 ip link add name veth2 type veth peer name veth1 28 ip link set netns "$ns2" dev veth2 35 ip netns exec "$ns2" ip link set up dev veth2 36 ip netns exec "$ns2" ip addr add 192.168.1.2/24 dev veth2
|
H A D | nft_tproxy_tcp.sh | 53 ip link add veth2 netns "$nsrouter" type veth peer name eth0 netns "$ns3" 63 ip -net "$nsrouter" link set veth2 up 64 ip -net "$nsrouter" addr add 10.0.3.1/24 dev veth2 65 ip -net "$nsrouter" addr add dead:3::1/64 dev veth2 nodad 89 ip netns exec "$nsrouter" sysctl net.ipv4.conf.veth2.forwarding=1 > /dev/null
|
H A D | nft_tproxy_udp.sh | 53 ip link add veth2 netns "$nsrouter" type veth peer name eth0 netns "$ns3" 63 ip -net "$nsrouter" link set veth2 up 64 ip -net "$nsrouter" addr add 10.0.3.1/24 dev veth2 65 ip -net "$nsrouter" addr add dead:3::1/64 dev veth2 nodad 89 ip netns exec "$nsrouter" sysctl net.ipv4.conf.veth2.forwarding=1 > /dev/null
|
H A D | nft_queue.sh | 51 ip link add veth2 netns "$nsrouter" type veth peer name eth0 netns "$ns3" 61 ip -net "$nsrouter" link set veth2 up 62 ip -net "$nsrouter" addr add 10.0.3.1/24 dev veth2 63 ip -net "$nsrouter" addr add dead:3::1/64 dev veth2 nodad 603 ip netns exec "$nsrouter" sysctl net.ipv4.conf.veth2.forwarding=1 > /dev/null
|
H A D | br_netfilter.sh | 65 ip link add veth2 netns "$ns0" type veth peer name eth0 netns "$ns2"
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | bind4_prog.c | 29 char veth2[IFNAMSIZ] = "test_sock_addr2"; in bind_to_device() local 41 &veth2, sizeof(veth2))) in bind_to_device()
|
H A D | bind6_prog.c | 35 char veth2[IFNAMSIZ] = "test_sock_addr2"; in bind_to_device() local 47 &veth2, sizeof(veth2))) in bind_to_device()
|
H A D | connect4_prog.c | 92 char veth2[IFNAMSIZ] = "test_sock_addr2"; in bind_to_device() local 100 &veth2, sizeof(veth2))) in bind_to_device()
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | forwarding.config.sample | 10 [p3]=veth2
|