Searched refs:veth2 (Results 1 – 25 of 26) sorted by relevance
12
22 veth2="veth2$((RANDOM%899+100))"36 ip link del $veth2 &> /dev/null42 echo "Setup veth pairs [$veth1, $peer1], and veth pair [$veth2, $peer2]"44 ip link add $veth2 type veth peer name $peer252 ip link set $veth2 up54 echo "Add tc filter ingress->egress forwarding $veth1 <-> $veth2"55 tc qdisc add dev $veth2 ingress57 tc filter add dev $veth2 ingress prio 1 proto all flower \60 action mirred egress redirect dev $veth2
28 ip -n $SERVER_NS link add veth2 type veth peer name veth1 netns $CLIENT_NS245 ip -n $SERVER_NS link set veth2 master vrf-249 ip -n $SERVER_NS addr add $SERVER_IP4/24 dev veth252 ip -n $SERVER_NS addr add $SERVER_IP6/24 dev veth255 ip -n $SERVER_NS link set veth2 up57 ip -n $SERVER_NS route add table 20 $CLIENT_IP4 dev veth2 src $SERVER_IP460 ip -n $SERVER_NS route add table 20 $CLIENT_IP6 dev veth2 src $SERVER_IP6136 do_test $CLIENT_NS1 veth2 && { echo "[FAIL]"; return $RET; }
37 $IP li add veth1 type veth peer name veth240 $IP li set veth2 netns ${peer} up41 ip -netns ${peer} -6 addr add $V6_ADDR1/64 dev veth2 nodad56 ip netns exec ${peer} ip link set veth2 down
21 ip netns exec ${NETNS} ip link add bond_slave_1 type veth peer veth227 ip netns exec ${NETNS} ip link del veth2 || fail "Please check vlan HW filter function"
448 $IP link add name veth1 type veth peer name veth2449 $IP link set dev veth2 netns $ns2451 ip -netns $ns2 address add 192.0.2.1/24 dev veth2453 ip -netns $ns2 link set dev veth2 up458 ip -netns $ns2 link set dev veth2 address 52:54:00:6a:c7:5e463 action mirred egress redirect dev veth2465 action mirred egress redirect dev veth2482 ip netns exec $ns2 tc qdisc add dev veth2 ingress483 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 \[all …]
184 $IP li add veth1 type veth peer name veth2194 $IP li set veth2 netns $peer up195 ip -netns $peer addr add 172.16.1.2/24 dev veth2196 ip -netns $peer -6 addr add 2001:db8:91::2/64 dev veth2 nodad1596 lladdr=$(get_linklocal veth2 $peer)1737 lladdr=$(get_linklocal veth2 $peer)2139 ip -netns $peer li set veth2 down2142 ip -netns $peer li set veth2 up
15 NETIFS[p2]=veth2
35 ip link add veth1 type veth peer name veth238 ip link set veth2 netns ${NS2}41 ip netns exec ${NS2} ip addr add 10.1.1.22/24 dev veth244 ip netns exec ${NS2} tc qdisc add dev veth2 clsact47 ip netns exec ${NS2} tc filter add dev veth2 ingress bpf da obj ${BPF_FILE} sec t50 ip netns exec ${NS2} ip link set dev veth2 xdp obj ${BPF_FILE} sec x53 ip netns exec ${NS2} ip link set dev veth2 up
26 ip link add veth2 index 222 type veth peer name veth22 netns ${NS2}29 ip link set veth2 up40 ip link del veth2 2> /dev/null60 ip link set dev veth2 $xdpmode obj test_xdp_redirect.bpf.o sec redirect_to_111 &> /dev/null
156 ip link add veth1 type veth peer name veth2160 ip link set veth2 netns ${NS2}168 ip netns exec ${NS2} ethtool -K veth2 rxvlan off171 ip netns exec ${NS2} ethtool -K veth2 txvlan off183 export DEVNS2=veth2
33 peer name veth2 mtu 1500 netns "${ns2}"38 ip -netns "${ns2}" link set veth2 up41 ip -netns "${ns2}" -4 addr add "${ns2_v4}/24" dev veth243 ip -netns "${ns2}" -6 addr add "${ns2_v6}/64" dev veth2 nodad277 ethaddr=$(ip netns exec "${ns2}" ip link show veth2 | \312 ip netns exec "${ns2}" tc qdisc add dev veth2 clsact313 ip netns exec "${ns2}" tc filter add dev veth2 ingress \
132 ip link add veth1 type veth peer name veth2141 ip link set veth2 netns ${NS2}161 ip -netns ${NS2} link set veth2 vrf red169 ip -netns ${NS2} addr add ${IPv4_2}/24 dev veth2173 ip -netns ${NS2} -6 addr add ${IPv6_2}/128 nodad dev veth2188 ip -netns ${NS2} link set dev veth2 up215 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 …]
71 ip link add veth1 type veth peer name veth278 ip link set veth2 netns ${NS2}89 ip netns exec ${NS2} ip link set dev veth2 up103 ip netns exec ${NS2} ip -6 addr add fb00::21/16 dev veth2 scope link121 ip netns exec ${NS2} ip -6 route add fb00::6 encap bpf in obj ${BPF_FILE} sec encap_srh dev veth2
33 ip link del veth2-bond >/dev/null 2>&1 || :56 ip link add name veth2-bond type veth peer name veth2-end61 ip link set veth2-bond master fbond65 ip link set veth2-end up
418 ip1 link add veth1 type veth peer name veth2419 ip1 link set veth2 netns $netns2429 ip2 addr add 10.0.0.2/24 dev veth2430 ip2 addr add fd00:aa::2/96 dev veth2432 ip2 link set veth2 up434 waitiface $netns2 veth2448 ip2 link set veth2 down450 ip2 addr flush dev veth2455 ip2 addr add 10.0.0.3/24 dev veth2456 ip2 addr add fd00:aa::3/96 dev veth2[all …]
54 ip -net "$ns1" link add name veth1 type veth peer name veth255 ip -net "$ns1" link set netns "$ns2" dev veth260 ip -net "$ns2" link set up dev veth262 ip -net "$ns2" addr add 10.11.11.2/24 dev veth265 ip netns exec "$ns2" sysctl -q net.ipv4.conf.veth2.forwarding=1
26 ip link add name veth2 type veth peer name veth128 ip link set netns "$ns2" dev veth235 ip netns exec "$ns2" ip link set up dev veth236 ip netns exec "$ns2" ip addr add 192.168.1.2/24 dev veth2
53 ip link add veth2 netns "$nsrouter" type veth peer name eth0 netns "$ns3"63 ip -net "$nsrouter" link set veth2 up64 ip -net "$nsrouter" addr add 10.0.3.1/24 dev veth265 ip -net "$nsrouter" addr add dead:3::1/64 dev veth2 nodad89 ip netns exec "$nsrouter" sysctl net.ipv4.conf.veth2.forwarding=1 > /dev/null
51 ip link add veth2 netns "$nsrouter" type veth peer name eth0 netns "$ns3"61 ip -net "$nsrouter" link set veth2 up62 ip -net "$nsrouter" addr add 10.0.3.1/24 dev veth263 ip -net "$nsrouter" addr add dead:3::1/64 dev veth2 nodad603 ip netns exec "$nsrouter" sysctl net.ipv4.conf.veth2.forwarding=1 > /dev/null
65 ip link add veth2 netns "$ns0" type veth peer name eth0 netns "$ns2"
29 char veth2[IFNAMSIZ] = "test_sock_addr2"; in bind_to_device() local41 &veth2, sizeof(veth2))) in bind_to_device()
35 char veth2[IFNAMSIZ] = "test_sock_addr2"; in bind_to_device() local47 &veth2, sizeof(veth2))) in bind_to_device()
92 char veth2[IFNAMSIZ] = "test_sock_addr2"; in bind_to_device() local100 &veth2, sizeof(veth2))) in bind_to_device()
10 [p3]=veth2