Searched refs:veth2 (Results 1 - 23 of 23) sorted by relevance
/linux-master/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 [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 | sctp_vrf.sh | 7 # CLIENT_NS2 (veth1) <---> (veth2) -> vrf_s2 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 135 echo -n "TEST 05: bind veth2 in server, connect from client 1, N " 136 do_test $CLIENT_NS1 veth2 [all...] |
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 55 # Set veth2 down, which will put veth1 in NOCARRIER state 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 | fib_nexthops.sh | 7 # veth1 <---|---> veth2 | 179 $IP li add veth1 type veth peer name veth2 189 $IP li set veth2 netns $peer up 190 ip -netns $peer addr add 172.16.1.2/24 dev veth2 191 ip -netns $peer -6 addr add 2001:db8:91::2/64 dev veth2 nodad 1543 lladdr=$(get_linklocal veth2 $peer) 1684 lladdr=$(get_linklocal veth2 $peer) 2086 ip -netns $peer li set veth2 down 2089 ip -netns $peer li set veth2 up
|
H A D | fib-onlink-tests.sh | 15 NETIFS[p2]=veth2
|
/linux-master/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 | 8 # (veth1, ------ (veth2, 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_xdp_veth.sh | 11 # (veth1, (veth2, (veth3, 33 ip link del veth2 2> /dev/null 88 ip link add veth2 index 122 type veth peer name veth22 netns ${NS2} 92 ip link set veth2 up 110 ip link set dev veth2 xdp pinned $BPF_DIR/progs/xdp_redirect_map_1
|
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 265 # Share ethernet address between tunnel/veth2 so L2 decap works. 266 ethaddr=$(ip netns exec "${ns2}" ip link show veth2 | \ 282 # expected veth2 (veth2 is where 192.168.1.2 is configured). 301 ip netns exec "${ns2}" tc qdisc add dev veth2 clsact 302 ip netns exec "${ns2}" tc filter add dev veth2 ingres [all...] |
H A D | test_xdp_vlan.sh | 156 ip link add veth1 type veth peer name veth2 158 # Move veth1 and veth2 into the respective namespaces 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 181 # In ns2/veth2 create VLAN device 183 export DEVNS2=veth2
|
H A D | test_lwt_ip_encap.sh | 7 # veth1 <---> veth2 veth3 <---> veth4 (the top route) 35 # 2b. in an ingress test, a bpf LWT_IN program is installed on veth2 38 # ping: SRC->[encap at veth2:ingress]->GRE:decap->DST 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 [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-master/tools/testing/selftests/drivers/net/bonding/ |
H A D | bond-break-lacpdu-tx.sh | 19 # |veth1 | |veth2 | 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-master/tools/testing/selftests/net/forwarding/ |
H A D | forwarding.config.sample | 10 NETIFS[p3]=veth2
|
/linux-master/tools/testing/selftests/netfilter/ |
H A D | nf_nat_edemux.sh | 52 ip link add name veth2 type veth peer name veth1 54 ip link set netns $ns2 dev veth2 61 ip netns exec $ns2 ip link set up dev veth2 62 ip netns exec $ns2 ip addr add 192.168.1.2/24 dev veth2
|
H A D | conntrack_tcp_unreplied.sh | 65 ip -net $ns1 link add name veth1 type veth peer name veth2 66 ip -net $ns1 link set netns $ns2 dev veth2 71 ip -net $ns2 link set up dev veth2 73 ip -net $ns2 addr add 10.11.11.2/24 dev veth2 76 ip netns exec $ns2 sysctl -q net.ipv4.conf.veth2.forwarding=1
|
H A D | bridge_netfilter.sh | 77 ip link add veth2 netns ${ns0} type veth peer name eth0 netns $ns2
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | bind6_prog.c | 33 char veth2[IFNAMSIZ] = "test_sock_addr2"; local 45 &veth2, sizeof(veth2)))
|
H A D | bind4_prog.c | 27 char veth2[IFNAMSIZ] = "test_sock_addr2"; local 39 &veth2, sizeof(veth2)))
|
H A D | connect4_prog.c | 90 char veth2[IFNAMSIZ] = "test_sock_addr2"; local 98 &veth2, sizeof(veth2)))
|
/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 419 ip1 link set veth2 netns $netns2 423 n2 bash -c 'printf 0 > /proc/sys/net/ipv6/conf/veth2/accept_dad' 429 ip2 addr add 10.0.0.2/24 dev veth2 430 ip2 addr add fd00:aa::2/96 dev veth2 432 ip2 link set veth2 up 434 waitiface $netns2 veth2 448 ip2 link set veth2 down 450 ip2 addr flush dev veth2 [all...] |
Completed in 410 milliseconds