/linux-master/tools/testing/selftests/net/ |
H A D | test_ingress_egress_chaining.sh | 21 veth1="veth1$((RANDOM%899+100))" 35 ip link del $veth1 &> /dev/null 42 echo "Setup veth pairs [$veth1, $peer1], and veth pair [$veth2, $peer2]" 43 ip link add $veth1 type veth peer name $peer1 51 ip link set $veth1 up 54 echo "Add tc filter ingress->egress forwarding $veth1 <-> $veth2" 56 tc qdisc add dev $veth1 ingress 58 action mirred egress redirect dev $veth1 59 tc filter add dev $veth1 ingres [all...] |
H A D | route_localnet.sh | 11 ip link add name veth0 type veth peer name veth1 13 ip link set dev veth1 netns "${PEER_NS}" 17 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.route_localnet=1 23 ip netns exec "${PEER_NS}" ip address add 127.25.3.14/24 dev veth1 24 ip netns exec "${PEER_NS}" ip link set dev veth1 up 43 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_announce=2 60 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_ignore=3
|
H A D | udpgro_frglist.sh | 36 ip link set dev veth1 netns "${PEER_NS}" 37 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24 38 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad 39 ip -netns "${PEER_NS}" link set dev veth1 up 40 ip netns exec "${PEER_NS}" ethtool -K veth1 rx-gro-list on 43 ip -n "${PEER_NS}" link set veth1 xdp object ${BPF_FILE} section xdp 44 tc -n "${PEER_NS}" qdisc add dev veth1 clsact 45 tc -n "${PEER_NS}" filter add dev veth1 ingress prio 4 protocol ipv6 bpf object-file nat6to4.o section schedcls/ingress6/nat_6 direct-action 46 tc -n "${PEER_NS}" filter add dev veth1 egress prio 4 protocol ip bpf object-file nat6to4.o section schedcls/egress4/snat4 direct-action
|
H A D | arp_ndisc_evict_nocarrier.sh | 28 sysctl -w net.ipv6.conf.veth1.ndisc_evict_nocarrier=1 >/dev/null 2>&1 37 $IP li add veth1 type veth peer name veth2 38 $IP li set veth1 up 39 $IP -6 addr add $V6_ADDR0/64 dev veth1 nodad 47 # Should have the veth1 entry in ND table 48 ip netns exec ${me} ip -6 neigh get $V6_ADDR1 dev veth1 >/dev/null 2>&1 55 # Set veth2 down, which will put veth1 in NOCARRIER state 61 ip link add name veth0 type veth peer name veth1 63 ip link set dev veth1 netns "${PEER_NS}" 64 ip netns exec "${PEER_NS}" ip link set dev veth1 u [all...] |
H A D | sctp_vrf.sh | 5 # TOPO: CLIENT_NS1 (veth1) <---> (veth1) -> vrf_s1 7 # CLIENT_NS2 (veth1) <---> (veth2) -> vrf_s2 27 ip -n $SERVER_NS link add veth1 type veth peer name veth1 netns $CLIENT_NS1 28 ip -n $SERVER_NS link add veth2 type veth peer name veth1 netns $CLIENT_NS2 30 ip -n $CLIENT_NS1 link set veth1 up 31 ip -n $CLIENT_NS1 addr add $CLIENT_IP4/24 dev veth1 32 ip -n $CLIENT_NS1 addr add $CLIENT_IP6/24 dev veth1 34 ip -n $CLIENT_NS2 link set veth1 u [all...] |
H A D | fib_nexthop_nongw.sh | 8 # veth0 <---|---> veth1 76 ip -n $h1 link add name veth0 type veth peer name veth1 netns $h2 79 ip -n $h2 link set veth1 up 82 ip -n $h2 address add 192.168.1.1/32 dev veth1 83 ip -n $h2 route add default dev veth1
|
H A D | udpgro_bench.sh | 36 ip link set dev veth1 netns "${PEER_NS}" 37 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24 38 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad 39 ip -netns "${PEER_NS}" link set dev veth1 up 41 ip -n "${PEER_NS}" link set veth1 xdp object ${BPF_FILE} section xdp
|
H A D | bind_bhash.sh | 40 ip -netns "${NETNS}" link add veth0 type veth peer name veth1 43 ip -netns "${NETNS}" link set veth1 up
|
H A D | udpgro.sh | 37 ip link set dev veth1 netns "${PEER_NS}" 38 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24 39 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad 40 ip -netns "${PEER_NS}" link set dev veth1 up 41 ip -n "${PEER_NS}" link set veth1 xdp object ${BPF_FILE} section xdp 88 ip -netns "${PEER_NS}" addr add dev veth1 ${addr2}
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_xdp_meta.sh | 18 ip link del veth1 2> /dev/null 35 ip link add veth1 type veth peer name veth2 37 ip link set veth1 netns ${NS1} 40 ip netns exec ${NS1} ip addr add 10.1.1.11/24 dev veth1 43 ip netns exec ${NS1} tc qdisc add dev veth1 clsact 46 ip netns exec ${NS1} tc filter add dev veth1 ingress bpf da obj ${BPF_FILE} sec t 49 ip netns exec ${NS1} ip link set dev veth1 xdp obj ${BPF_FILE} sec x 52 ip netns exec ${NS1} ip link set dev veth1 up
|
H A D | test_xdping.sh | 15 # | veth1 | --------- | veth0 | 22 # veth1 IP: 10.1.1.200 23 # xdp added to veth1, xdpings originate from here. 39 ip link add veth0 type veth peer name veth1 42 ip addr add ${LOCAL_IP}/24 dev veth1 44 ip link set veth1 up 51 ip link del veth1 2>/dev/null 90 client_args="-I veth1 -S" 94 client_args="-I veth1 -S -c 10" 99 test "-I veth1 [all...] |
H A D | test_xdp_redirect.sh | 8 # (veth1, ------ (veth2, 25 ip link add veth1 index 111 type veth peer name veth11 netns ${NS1} 28 ip link set veth1 up 39 ip link del veth1 2> /dev/null 51 ip link set dev veth1 $xdpmode off &> /dev/null 59 ip link set dev veth1 $xdpmode obj test_xdp_redirect.bpf.o sec redirect_to_222 &> /dev/null
|
H A D | test_xdp_vlan.sh | 60 ip link del veth1 2> /dev/null 130 ip link del veth1 2> /dev/null 156 ip link add veth1 type veth peer name veth2 158 # Move veth1 and veth2 into the respective namespaces 159 ip link set veth1 netns ${NS1} 167 ip netns exec ${NS1} ethtool -K veth1 rxvlan off 172 ip netns exec ${NS1} ethtool -K veth1 txvlan off 177 # In ns1/veth1 add IP-addr on plain net_device 178 ip netns exec ${NS1} ip addr add ${IPADDR1}/24 dev veth1 179 ip netns exec ${NS1} ip link set veth1 u [all...] |
H A D | test_tc_tunnel.sh | 32 ip link add dev veth1 mtu 1500 netns "${ns1}" type veth \ 35 ip netns exec "${ns1}" ethtool -K veth1 tso off 37 ip -netns "${ns1}" link set veth1 up 40 ip -netns "${ns1}" -4 addr add "${ns1_v4}/24" dev veth1 42 ip -netns "${ns1}" -6 addr add "${ns1_v6}/64" dev veth1 nodad 48 ip -netns "${ns1}" -4 route add "${ns2_v4}" mtu 1450 dev veth1 49 ip -netns "${ns1}" -6 route add "${ns2_v6}" mtu 1430 dev veth1 201 ip netns exec "${ns1}" tc qdisc add dev veth1 clsact 202 ip netns exec "${ns1}" tc filter add dev veth1 egress \
|
H A D | test_xdp_veth.sh | 11 # (veth1, (veth2, (veth3, 32 ip link del veth1 2> /dev/null 87 ip link add veth1 index 111 type veth peer name veth11 netns ${NS1} 91 ip link set veth1 up 109 ip link set dev veth1 xdp pinned $BPF_DIR/progs/xdp_redirect_map_0
|
H A D | test_tunnel.sh | 18 # | veth1 | --------- | veth0 | (underlay network) 26 # veth1 IP: 172.16.1.200, IPv6: 00::22 (underlay) 43 # 3) Outer tunnel header is prepended and route the packet to veth1's egress 59 ip link add veth0 type veth peer name veth1 63 ip link set dev veth1 up mtu 1500 64 ip addr add dev veth1 172.16.1.200/24 93 ip addr add dev veth1 ::22/96 94 ip link set dev veth1 up 141 ip addr add dev veth1 ::22/96 142 ip link set dev veth1 u [all...] |
/linux-master/tools/testing/selftests/drivers/net/bonding/ |
H A D | bond-break-lacpdu-tx.sh | 19 # |veth1 | |veth2 | 32 ip link del veth1-bond >/dev/null 2>&1 || : 55 ip link add name veth1-bond type veth peer name veth1-end 60 ip link set veth1-bond master fbond 64 ip link set veth1-end up 71 tc qdisc add dev veth1-end clsact 72 tc filter add dev veth1-end ingress protocol 0x8809 pref 1 handle 101 flower skip_hw action pass 74 tc_rule_handle_stats_get "dev veth1-end ingress" 101 ".packets" "" &> /dev/null; then
|
H A D | bond-lladdr-target.sh | 10 # | veth0 veth1 | 14 # | veth0 veth1 | 50 ip -n $host link add veth1 type veth peer name veth1 netns $sw 64 ip -n $host link set veth1 master bond0 67 ip -n $sw link set veth1 master br0 69 ip -n $sw link set veth1 up
|
/linux-master/tools/testing/selftests/netfilter/ |
H A D | ipip-conntrack-mtu.sh | 95 ip link add veth1 netns ${r_a} type veth peer name veth0 netns ${c_a} 101 for dev in lo veth0 veth1 ipip0; do 106 ip -net ${r_a} addr add 192.168.10.1/24 dev veth1 124 ip link add veth0 netns ${r_b} type veth peer name veth1 netns ${r_w} 125 ip link add veth1 netns ${r_b} type veth peer name veth0 netns ${c_b} 132 for dev in lo veth0 veth1 ipip0; do 137 ip -net ${r_b} addr add 192.168.20.1/24 dev veth1 157 ip -net ${r_w} addr add 10.4.4.254/24 dev veth1 161 ip -net ${r_w} link set dev veth1 up mtu 1400
|
H A D | bridge_brouter.sh | 35 ip link add veth1 netns ns0 type veth peer name eth0 netns ns2 39 ip -net ns0 link set veth1 up 48 ip -net ns0 link set veth1 master br0 83 ip netns exec ns0 sysctl -q net.ipv4.conf.veth1.forwarding=1
|
H A D | nft_synproxy.sh | 43 ip link add veth1 netns $nsr type veth peer name eth0 netns $ns2 45 for dev in lo veth0 veth1; do 50 ip -net $nsr addr add 10.0.2.1/24 dev veth1 53 ip netns exec $nsr sysctl -q net.ipv4.conf.veth1.forwarding=1 77 # ip netns exec $nsr tcpdump -vvv -n -i veth1 tcp | head -n 10 &
|
H A D | nf_nat_edemux.sh | 52 ip link add name veth2 type veth peer name veth1 53 ip link set netns $ns1 dev veth1 57 ip netns exec $ns1 ip link set up dev veth1 58 ip netns exec $ns1 ip addr add 192.168.1.1/24 dev veth1
|
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | forwarding.config.sample | 9 NETIFS[p2]=veth1
|
/linux-master/tools/testing/selftests/wireguard/ |
H A D | netns.sh | 408 # ��� ��� wg0 ���������������������������������������������veth1���������������������������������������������������������������veth2������������������������������������������ wg0 ��� ��� 418 ip1 link add veth1 type veth peer name veth2 422 n1 bash -c 'printf 0 > /proc/sys/net/ipv6/conf/veth1/accept_dad' 424 n1 bash -c 'printf 1 > /proc/sys/net/ipv4/conf/veth1/promote_secondaries' 427 ip1 addr add 10.0.0.1/24 dev veth1 428 ip1 addr add fd00:aa::1/96 dev veth1 431 ip1 link set veth1 up 433 waitiface $netns1 veth1 437 ip1 addr add 10.0.0.10/24 dev veth1 438 ip1 addr del 10.0.0.1/24 dev veth1 [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | bind6_prog.c | 32 char veth1[IFNAMSIZ] = "test_sock_addr1"; local 39 &veth1, sizeof(veth1)))
|