Home
last modified time | relevance | path

Searched refs:veth1 (Results 1 – 25 of 48) sorted by relevance

12

/linux/tools/testing/selftests/net/
H A Dtest_ingress_egress_chaining.sh21 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 ingress prio 1 proto all flower \
62 echo "Add tc filter egress->ingress forwarding $peer1 -> $veth1, bypassing the veth pipe"
[all …]
H A Dsctp_vrf.sh27 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 up
35 ip -n $CLIENT_NS2 addr add $CLIENT_IP4/24 dev veth1
36 ip -n $CLIENT_NS2 addr add $CLIENT_IP6/24 dev veth1
44 ip -n $SERVER_NS link set veth1 master vrf-1
48 ip -n $SERVER_NS addr add $SERVER_IP4/24 dev veth1
[all …]
H A Darp_ndisc_evict_nocarrier.sh28 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
48 ip netns exec ${me} ip -6 neigh get $V6_ADDR1 dev veth1 >/dev/null 2>&1
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 up
66 ip netns exec "${PEER_NS}" ip addr add $V4_ADDR1/24 dev veth1
67 ip netns exec ${PEER_NS} ip route add default via $V4_ADDR1 dev veth1
[all …]
H A Dudpgro_frglist.sh36 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.bpf.o…
46 …tc -n "${PEER_NS}" filter add dev veth1 egress prio 4 protocol ip bpf object-file nat6to4.bpf.o se…
H A Droute_localnet.sh11 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 Dudpgro_bench.sh36 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 Dudpgro.sh35 ip link set dev veth1 netns "${PEER_NS}"
36 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24
37 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad
38 ip -netns "${PEER_NS}" link set dev veth1 up
39 ip netns exec "${PEER_NS}" ethtool -K veth1 gro on
89 ip -netns "${PEER_NS}" addr add dev veth1 ${addr2}
H A Dfib_nexthop_nongw.sh76 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 Dfib_nexthops.sh184 $IP li add veth1 type veth peer name veth2
185 $IP li set veth1 up
186 $IP addr add 172.16.1.1/24 dev veth1
187 $IP -6 addr add 2001:db8:91::1/64 dev veth1 nodad
617 gws=([veth1]=172.16.1.2 [veth3]=172.16.2.2)
619 other_dev=([veth1]=veth3 [veth3]=veth1)
621 run_cmd "$IP nexthop add id 1 via ${gws["veth1"]} dev veth1"
626 for dev in veth1 veth3; do
670 gws=([veth1]=2001:db8:91::2 [veth3]=2001:db8:92::2)
672 other_dev=([veth1]=veth3 [veth3]=veth1)
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_xdp_meta.sh18 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 Dtest_xdp_vlan.sh60 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
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
178 ip netns exec ${NS1} ip addr add ${IPADDR1}/24 dev veth1
179 ip netns exec ${NS1} ip link set veth1 up
202 export DEVNS1=veth1
H A Dtest_xdp_redirect.sh25 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 Dtest_tc_tunnel.sh32 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
211 ip netns exec "${ns1}" tc qdisc add dev veth1 clsact
212 ip netns exec "${ns1}" tc filter add dev veth1 egress \
H A Dtest_xdping.sh39 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
H A Dtest_tunnel.sh59 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 up
184 ip addr add dev veth1 ::22/96
185 ip link set dev veth1 up
219 ip addr add dev veth1 ::22/96
[all …]
H A Dtest_lwt_ip_encap.sh132 ip link add veth1 type veth peer name veth2
140 ip link set veth1 netns ${NS1}
154 ip -netns ${NS1} link set veth1 vrf red
168 ip -netns ${NS1} addr add ${IPv4_1}/24 dev veth1
172 ip -netns ${NS1} -6 addr add ${IPv6_1}/128 nodad dev veth1
187 ip -netns ${NS1} link set dev veth1 up
201 ip -netns ${NS1} route add ${IPv4_2}/32 dev veth1 ${VRF}
202 ip -netns ${NS1} route add default dev veth1 via ${IPv4_2} ${VRF} # go top by default
203 ip -netns ${NS1} -6 route add ${IPv6_2}/128 dev veth1 ${VRF}
204 ip -netns ${NS1} -6 route add default dev veth1 via ${IPv6_2} ${VRF} # go top by default
[all …]
H A Dtest_lwt_seg6local.sh71 ip link add veth1 type veth peer name veth2
77 ip link set veth1 netns ${NS1}
88 ip netns exec ${NS1} ip link set dev veth1 up
101 ip netns exec ${NS1} ip -6 addr add fb00::12/16 dev veth1 scope link
102 ip netns exec ${NS1} ip -6 route add fb00::21 dev veth1 scope link
119 ip netns exec ${NS1} ip -6 route add fb00::6 dev veth1 via fb00::21
/linux/tools/testing/selftests/drivers/net/bonding/
H A Dbond-break-lacpdu-tx.sh32 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
H A Dbond-lladdr-target.sh50 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/tools/testing/selftests/net/netfilter/
H A Dconntrack_ipip_mtu.sh82 ip link add veth1 netns "$r_a" type veth peer name veth0 netns "$c_a"
88 for dev in lo veth0 veth1 ipip0; do
93 ip -net "$r_a" addr add 192.168.10.1/24 dev veth1
111 ip link add veth0 netns "$r_b" type veth peer name veth1 netns "$r_w"
112 ip link add veth1 netns "$r_b" type veth peer name veth0 netns "$c_b"
119 for dev in veth0 veth1 ipip0; do
124 ip -net "$r_b" addr add 192.168.20.1/24 dev veth1
142 ip -net "$r_w" addr add 10.4.4.254/24 dev veth1
145 ip -net "$r_w" link set dev veth1 up mtu 1400
H A Dnf_nat_edemux.sh26 ip link add name veth2 type veth peer name veth1
27 ip link set netns "$ns1" dev veth1
31 ip netns exec "$ns1" ip link set up dev veth1
32 ip netns exec "$ns1" ip addr add 192.168.1.1/24 dev veth1
H A Dnft_synproxy.sh25 ip link add veth1 netns "$nsr" type veth peer name eth0 netns "$ns2"
27 for dev in veth0 veth1; do
32 ip -net "$nsr" addr add 10.0.2.1/24 dev veth1
35 ip netns exec "$nsr" sysctl -q net.ipv4.conf.veth1.forwarding=1
H A Dbridge_brouter.sh31 ip link add veth1 netns "$nsbr" type veth peer name eth0 netns "$ns2"
39 ip -net "$nsbr" link set veth1 up
42 ip -net "$nsbr" link set veth1 master br0
74 ip netns exec "$nsbr" sysctl -q net.ipv4.conf.veth1.forwarding=1
H A Dnft_fib.sh112 ip link add veth1 netns "$nsrouter" type veth peer name eth0 netns "$ns2"
118 ip -net "$nsrouter" link set veth1 up
119 ip -net "$nsrouter" addr add 10.0.2.1/24 dev veth1
120 ip -net "$nsrouter" addr add dead:2::1/64 dev veth1 nodad
156 ip netns exec "$nsrouter" sysctl net.ipv4.conf.veth1.forwarding=1 > /dev/null
222 ip -net "$nsrouter" route add table 129 to 10.0.2.0/24 dev veth1
/linux/tools/testing/selftests/wireguard/
H A Dnetns.sh409 # │ │ wg0 │─────────────│veth1│───────────┼────┼──│veth2│────────────│ wg0 │ │
419 ip1 link add veth1 type veth peer name veth2
423 n1 bash -c 'printf 0 > /proc/sys/net/ipv6/conf/veth1/accept_dad'
425 n1 bash -c 'printf 1 > /proc/sys/net/ipv4/conf/veth1/promote_secondaries'
428 ip1 addr add 10.0.0.1/24 dev veth1
429 ip1 addr add fd00:aa::1/96 dev veth1
432 ip1 link set veth1 up
434 waitiface $netns1 veth1
438 ip1 addr add 10.0.0.10/24 dev veth1
439 ip1 addr del 10.0.0.1/24 dev veth1
[all...]

12