Home
last modified time | relevance | path

Searched refs:ip (Results 1 – 25 of 224) sorted by relevance

123456789

/tools/testing/selftests/bpf/
Dtest_lwt_seg6local.sh44 ip netns del ns1 2> /dev/null
45 ip netns del ns2 2> /dev/null
46 ip netns del ns3 2> /dev/null
47 ip netns del ns4 2> /dev/null
48 ip netns del ns5 2> /dev/null
49 ip netns del ns6 2> /dev/null
55 ip netns add ns1
56 ip netns add ns2
57 ip netns add ns3
58 ip netns add ns4
[all …]
Dtest_tunnel.sh56 ip netns add at_ns0
57 ip link add veth0 type veth peer name veth1
58 ip link set veth0 netns at_ns0
59 ip netns exec at_ns0 ip addr add 172.16.1.100/24 dev veth0
60 ip netns exec at_ns0 ip link set dev veth0 up
61 ip link set dev veth1 up mtu 1500
62 ip addr add dev veth1 172.16.1.200/24
68 ip netns exec at_ns0 \
69 ip link add dev $DEV_NS type $TYPE seq key 2 \
71 ip netns exec at_ns0 ip link set dev $DEV_NS up
[all …]
Dtest_xdp_vlan.sh55 ip link del veth1 2> /dev/null
56 ip netns del ns1 2> /dev/null
57 ip netns del ns2 2> /dev/null
117 ip link set dev lo xdpgeneric off 2>/dev/null > /dev/null
125 ip link del veth1 2> /dev/null
126 ip netns del ns1 2> /dev/null
127 ip netns del ns2 2> /dev/null
134 which ip > /dev/null
144 ip netns add ns1
145 ip netns add ns2
[all …]
Dtest_xdp_redirect.sh22 ip link del veth1 2> /dev/null
23 ip link del veth2 2> /dev/null
24 ip netns del ns1 2> /dev/null
25 ip netns del ns2 2> /dev/null
28 ip link set dev lo xdpgeneric off 2>/dev/null > /dev/null
35 ip netns add ns1
36 ip netns add ns2
40 ip link add veth1 index 111 type veth peer name veth11
41 ip link add veth2 index 222 type veth peer name veth22
43 ip link set veth11 netns ns1
[all …]
Dtest_xdp_meta.sh12 ip link del veth1 2> /dev/null
13 ip netns del ns1 2> /dev/null
14 ip netns del ns2 2> /dev/null
17 ip link set dev lo xdp off 2>/dev/null > /dev/null
24 ip netns add ns1
25 ip netns add ns2
29 ip link add veth1 type veth peer name veth2
31 ip link set veth1 netns ns1
32 ip link set veth2 netns ns2
34 ip netns exec ns1 ip addr add 10.1.1.11/24 dev veth1
[all …]
Dtest_lwt_ip_encap.sh111 ip netns add "${NS1}"
112 ip netns add "${NS2}"
113 ip netns add "${NS3}"
116 ip netns exec ${NS1} sysctl -wq net.ipv4.conf.all.rp_filter=0
117 ip netns exec ${NS2} sysctl -wq net.ipv4.conf.all.rp_filter=0
118 ip netns exec ${NS3} sysctl -wq net.ipv4.conf.all.rp_filter=0
119 ip netns exec ${NS1} sysctl -wq net.ipv4.conf.default.rp_filter=0
120 ip netns exec ${NS2} sysctl -wq net.ipv4.conf.default.rp_filter=0
121 ip netns exec ${NS3} sysctl -wq net.ipv4.conf.default.rp_filter=0
124 ip netns exec ${NS1} sysctl -wq net.ipv6.conf.all.accept_dad=0
[all …]
/tools/testing/selftests/drivers/net/mlxsw/
Drtnetlink.sh43 ip link set dev $swp1 up
44 ip link set dev $swp2 up
51 ip link set dev $swp2 down
52 ip link set dev $swp1 down
64 ip addr flush dev $swp1
65 ip addr flush dev $swp2
68 ip addr add dev $swp1 192.0.2.1/28
71 ip link set dev $swp1 addr 00:11:22:33:44:55
76 ip addr add dev $swp2 192.0.2.2/28 &>/dev/null
78 ip addr add dev $swp2 192.0.2.2/28 2>&1 >/dev/null \
[all …]
Dextack.sh21 ip link set dev $swp1 up
22 ip link set dev $swp2 up
29 ip link set dev $swp2 down
30 ip link set dev $swp1 down
37 ip link add name br1 up type bridge vlan_filtering 0 mcast_snooping 0
38 ip link add name vx1 up type vxlan id 1000 \
42 ip link set dev vx1 master br1
45 ip link set dev $swp1 master br1
48 ip link add name br2 up type bridge vlan_filtering 0 mcast_snooping 0
49 ip link add name vx2 up type vxlan id 2000 \
[all …]
Dvxlan.sh19 ip link set dev $swp1 up
20 ip link set dev $swp2 up
27 ip link set dev $swp2 down
28 ip link set dev $swp1 down
33 ip link set dev $swp1 master br0
35 ip link set dev vxlan0 master br0
38 ip link set dev $swp1 nomaster
40 ip link set dev $swp1 master br0
46 ip link set dev $swp1 master br0
48 ip link set dev vxlan0 master br0 &> /dev/null
[all …]
/tools/testing/selftests/net/forwarding/
Drouter_mpath_nh.sh11 ip link set dev $h1 master vrf-h1
13 ip link set dev vrf-h1 up
14 ip link set dev $h1 up
16 ip address add 192.0.2.2/24 dev $h1
17 ip address add 2001:db8:1::2/64 dev $h1
19 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
20 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
25 ip route del 2001:db8:2::/64 vrf vrf-h1
26 ip route del 198.51.100.0/24 vrf vrf-h1
28 ip address del 2001:db8:1::2/64 dev $h1
[all …]
Drouter.sh11 ip link set dev $h1 master vrf-h1
13 ip link set dev vrf-h1 up
14 ip link set dev $h1 up
16 ip address add 192.0.2.2/24 dev $h1
17 ip address add 2001:db8:1::2/64 dev $h1
19 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
20 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
25 ip route del 2001:db8:2::/64 vrf vrf-h1
26 ip route del 198.51.100.0/24 vrf vrf-h1
28 ip address del 2001:db8:1::2/64 dev $h1
[all …]
Drouter_multipath.sh11 ip link set dev $h1 master vrf-h1
13 ip link set dev vrf-h1 up
14 ip link set dev $h1 up
16 ip address add 192.0.2.2/24 dev $h1
17 ip address add 2001:db8:1::2/64 dev $h1
19 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
20 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
25 ip route del 2001:db8:2::/64 vrf vrf-h1
26 ip route del 198.51.100.0/24 vrf vrf-h1
28 ip address del 2001:db8:1::2/64 dev $h1
[all …]
Dvxlan_asymmetric.sh112 ip link set dev $if_name master $vrf_name
113 ip link set dev $vrf_name up
114 ip link set dev $if_name up
116 ip address add $ip_addr/24 dev $if_name
117 ip neigh replace $gw_ip lladdr 00:00:5e:00:01:01 nud permanent \
119 ip route add default vrf $vrf_name nexthop via $gw_ip
130 ip route del default vrf $vrf_name nexthop via $gw_ip
131 ip neigh del $gw_ip dev $if_name
132 ip address del $ip_addr/24 dev $if_name
134 ip link set dev $if_name down
[all …]
Drouter_vid_1.sh11 ip link set dev vrf-h1 up
13 ip link set dev $h1 up
16 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
17 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
22 ip route del 2001:db8:2::/64 vrf vrf-h1
23 ip route del 198.51.100.0/24 vrf vrf-h1
26 ip link set dev $h1 down
28 ip link set dev vrf-h1 down
35 ip link set dev vrf-h2 up
37 ip link set dev $h2 up
[all …]
Dvxlan_symmetric.sh122 ip link set dev $if_name master $vrf_name
123 ip link set dev $vrf_name up
124 ip link set dev $if_name up
126 ip address add $ip_addr/24 dev $if_name
127 ip neigh replace $gw_ip lladdr 00:00:5e:00:01:01 nud permanent \
129 ip route add default vrf $vrf_name nexthop via $gw_ip
140 ip route del default vrf $vrf_name nexthop via $gw_ip
141 ip neigh del $gw_ip dev $if_name
142 ip address del $ip_addr/24 dev $if_name
144 ip link set dev $if_name down
[all …]
Dipip_lib.sh149 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2
154 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2
161 ip route add vrf v$h2 192.0.2.0/28 via 192.0.2.17
166 ip route del vrf v$h2 192.0.2.0/28 via 192.0.2.17
176 ip link set dev $ol1 up
179 ip link set dev $ul1 up
183 ip link set dev g1a up
186 ip route add 192.0.2.66/32 via 192.0.2.130
188 ip route add 192.0.2.16/28 nexthop dev g1a
196 ip route del 192.0.2.16/28
[all …]
Drouter_broadcast.sh11 ip link set dev $h1 master vrf-h1
13 ip link set dev vrf-h1 up
14 ip link set dev $h1 up
16 ip address add 192.0.2.2/24 dev $h1
18 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
19 ip route add 198.51.200.0/24 vrf vrf-h1 nexthop via 192.0.2.1
24 ip route del 198.51.200.0/24 vrf vrf-h1
25 ip route del 198.51.100.0/24 vrf vrf-h1
27 ip address del 192.0.2.2/24 dev $h1
29 ip link set dev $h1 down
[all …]
/tools/testing/selftests/netfilter/
Dbridge_brouter.sh20 ip -Version > /dev/null 2>&1
26 ip netns add ns0
27 ip netns add ns1
28 ip netns add ns2
30 ip link add veth0 netns ns0 type veth peer name eth0 netns ns1
35 ip link add veth1 netns ns0 type veth peer name eth0 netns ns2
37 ip -net ns0 link set lo up
38 ip -net ns0 link set veth0 up
39 ip -net ns0 link set veth1 up
41 ip -net ns0 link add br0 type bridge
[all …]
Dconntrack_vrf.sh44 ip netns pids $ns0 | xargs kill 2>/dev/null
45 ip netns pids $ns1 | xargs kill 2>/dev/null
47 ip netns del $ns0 $ns1
56 ip -Version > /dev/null 2>&1
62 ip netns add "$ns0"
67 ip netns add "$ns1"
71 ip netns exec $ns0 sysctl -q -w net.ipv4.conf.default.rp_filter=0
72 ip netns exec $ns0 sysctl -q -w net.ipv4.conf.all.rp_filter=0
73 ip netns exec $ns0 sysctl -q -w net.ipv4.conf.all.rp_filter=0
75 ip link add veth0 netns "$ns0" type veth peer name veth0 netns "$ns1" > /dev/null 2>&1
[all …]
/tools/testing/selftests/net/
Drtnetlink.sh31 ip link add name "$devdummy" type dummy
33 ip link set "$devdummy" up
39 ip link del dev "$devdummy"
48 ip netconf show dev "$dev" > /dev/null
52 ip -$f netconf show dev "$dev" > /dev/null
70 ip link add name "$devbr" type bridge
73 ip link set dev "$devdummy" master "$devbr"
76 ip link set "$devbr" up
79 ip link add link "$devbr" name "$vlandev" type vlan id 1
81 ip addr add dev "$vlandev" 10.200.7.23/30
[all …]
Dtest_vxlan_under_vrf.sh49 ip link del veth-hv-1 2>/dev/null || true
50 ip link del veth-tap 2>/dev/null || true
53 ip netns del $ns || true
65 ip link add veth-hv-1 type veth peer name veth-hv-2
69 ip netns add hv-$hv
70 ip link set veth-hv-$hv netns hv-$hv
71 ip -netns hv-$hv link set veth-hv-$hv name veth0
73 ip -netns hv-$hv link add vrf-underlay type vrf table 1
74 ip -netns hv-$hv link set vrf-underlay up
75 ip -netns hv-$hv addr add 172.16.0.$hv/24 dev veth0
[all …]
Dicmp_redirect.sh117 addr=$(ip -netns $ns -6 -br addr show dev ${dev} | \
142 ip netns del $ns 2>/dev/null
150 ip -netns ${ns} link add ${VRF} type vrf table ${VRF_TABLE}
151 ip -netns ${ns} link set ${VRF} up
152 ip -netns ${ns} route add vrf ${VRF} unreachable default metric 8192
153 ip -netns ${ns} -6 route add vrf ${VRF} unreachable default metric 8192
155 ip -netns ${ns} addr add 127.0.0.1/8 dev ${VRF}
156 ip -netns ${ns} -6 addr add ::1 dev ${VRF} nodad
158 ip -netns ${ns} ru del pref 0
159 ip -netns ${ns} ru add pref 32765 from all lookup local
[all …]
Dip_defrag.sh14 ip netns add "${NETNS}"
15 ip -netns "${NETNS}" link set lo up
17 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_high_thresh=9000000 >/dev/null 2>&1
18 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_low_thresh=7000000 >/dev/null 2>&1
19 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_time=1 >/dev/null 2>&1
21 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_high_thresh=9000000 >/dev/null 2>&1
22 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_low_thresh=7000000 >/dev/null 2>&1
23 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_time=1 >/dev/null 2>&1
25ip netns exec "${NETNS}" sysctl -w net.netfilter.nf_conntrack_frag6_high_thresh=9000000 >/dev/null…
26ip netns exec "${NETNS}" sysctl -w net.netfilter.nf_conntrack_frag6_low_thresh=7000000 >/dev/null…
[all …]
Dip6_gre_headroom.sh9 ip link add h1 type veth peer name swp1
10 ip link add h3 type veth peer name swp3
12 ip link set dev h1 up
13 ip address add 192.0.2.1/28 dev h1
15 ip link add dev vh3 type vrf table 20
16 ip link set dev h3 master vh3
17 ip link set dev vh3 up
18 ip link set dev h3 up
20 ip link set dev swp3 up
21 ip address add dev swp3 2001:db8:2::1/64
[all …]
Dl2tp.sh60 out=$(eval ip netns exec ${ns} ${cmd} 2>&1)
83 ip netns add ${ns}
85 ip -netns ${ns} link set lo up
87 ip -netns ${ns} addr add dev lo ${addr}
90 ip -netns ${ns} -6 addr add dev lo ${addr6}
93 ip -netns ${ns} ro add unreachable default metric 8192
94 ip -netns ${ns} -6 ro add unreachable default metric 8192
96 ip netns exec ${ns} sysctl -qw net.ipv4.ip_forward=1
97 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1
98 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.forwarding=1
[all …]

123456789