Home
last modified time | relevance | path

Searched refs:add (Results 1 – 25 of 311) sorted by relevance

12345678910>>...13

/tools/testing/selftests/net/mptcp/
Dpm_netlink.sh49 ip netns add $ns1 || exit $ksft_skip
83 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.1
84 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.2 flags subflow dev lo
85 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.3 flags signal,backup
99 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.3
102 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.4 flags signal
106 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.$i flags signal >/dev/null 2>&1
113 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.9 id $i
138 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.1
139 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.2
[all …]
Dsimult_flows.sh65 ip netns add $i || exit $ksft_skip
71 ip link add ns1eth1 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"
72 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth2 netns "$ns2"
73 ip link add ns2eth3 netns "$ns2" type veth peer name ns3eth1 netns "$ns3"
75 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth1
76 ip -net "$ns1" addr add dead:beef:1::1/64 dev ns1eth1 nodad
78 ip -net "$ns1" route add default via 10.0.1.2
79 ip -net "$ns1" route add default via dead:beef:1::2
81 ip -net "$ns1" addr add 10.0.2.1/24 dev ns1eth2
82 ip -net "$ns1" addr add dead:beef:2::1/64 dev ns1eth2 nodad
[all …]
Dmptcp_join.sh54 ip netns add $netns || exit $ksft_skip
71 ip link add ns1eth$i netns "$ns1" type veth peer name ns2eth$i netns "$ns2"
72 ip -net "$ns1" addr add 10.0.$i.1/24 dev ns1eth$i
73 ip -net "$ns1" addr add dead:beef:$i::1/64 dev ns1eth$i nodad
76 ip -net "$ns2" addr add 10.0.$i.2/24 dev ns2eth$i
77 ip -net "$ns2" addr add dead:beef:$i::2/64 dev ns2eth$i nodad
81 ip -net "$ns2" route add default via 10.0.$i.1 dev ns2eth$i metric 10$i
82 ip -net "$ns2" route add default via dead:beef:$i::1 dev ns2eth$i metric 10$i
89 tc -n $ns1 qdisc add dev ns1eth$i root netem rate 20mbit delay 1
90 tc -n $ns2 qdisc add dev ns2eth$i root netem rate 20mbit delay 1
[all …]
/tools/testing/selftests/drivers/net/netdevsim/
Dnexthop.sh117 $IP nexthop add id 1 via 192.0.2.2 dev dummy1
137 $IP nexthop add id 1 via 192.0.2.2 dev dummy1
139 $IP nexthop add id 2 via 192.0.2.3 dev dummy1 &> /dev/null
155 $IP nexthop add id 1 via 192.0.2.2 dev dummy1
156 $IP nexthop add id 2 via 192.0.2.3 dev dummy1
158 $IP nexthop add id 10 group 1/2
169 $IP nexthop add id 10 group 1,20/2,39
191 $IP nexthop add id 1 via 192.0.2.2 dev dummy1
192 $IP nexthop add id 2 via 192.0.2.3 dev dummy1
194 $IP nexthop add id 10 group 1/2 &> /dev/null
[all …]
/tools/testing/selftests/bpf/
Dtest_lwt_ip_encap.sh111 ip netns add "${NS1}"
112 ip netns add "${NS2}"
113 ip netns add "${NS3}"
131 ip link add veth1 type veth peer name veth2
132 ip link add veth3 type veth peer name veth4
133 ip link add veth5 type veth peer name veth6
134 ip link add veth7 type veth peer name veth8
149 ip -netns ${NS1} link add red type vrf table 1001
151 ip -netns ${NS1} route add table 1001 unreachable default metric 8192
152 ip -netns ${NS1} -6 route add table 1001 unreachable default metric 8192
[all …]
Dtest_lwt_seg6local.sh55 ip netns add ns1
56 ip netns add ns2
57 ip netns add ns3
58 ip netns add ns4
59 ip netns add ns5
60 ip netns add ns6
64 ip link add veth1 type veth peer name veth2
65 ip link add veth3 type veth peer name veth4
66 ip link add veth5 type veth peer name veth6
67 ip link add veth7 type veth peer name veth8
[all …]
Dtest_tunnel.sh56 ip netns add at_ns0
57 ip link add veth0 type veth peer name veth1
59 ip netns exec at_ns0 ip addr add 172.16.1.100/24 dev veth0
62 ip addr add dev veth1 172.16.1.200/24
69 ip link add dev $DEV_NS type $TYPE seq key 2 \
72 ip netns exec at_ns0 ip addr add dev $DEV_NS 10.1.1.100/24
75 ip link add dev $DEV type $TYPE key 2 external
77 ip addr add dev $DEV 10.1.1.200/24
84 ip netns exec at_ns0 ip addr add ::11/96 dev veth0
86 ip addr add dev veth1 ::22/96
[all …]
/tools/testing/selftests/net/
Dl2tp.sh83 ip netns add ${ns}
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
115 ip -netns ${ns1} li add ${ns1_dev} type veth peer name tmp
121 ip -netns ${ns1} addr add dev ${ns1_dev} ${ns1_addr}
122 ip -netns ${ns2} addr add dev ${ns2_dev} ${ns2_addr}
126 ip -netns ${ns1} addr add dev ${ns1_dev} ${ns1_addr6}
127 ip -netns ${ns2} addr add dev ${ns2_dev} ${ns2_addr6}
[all …]
Dvrf_route_leaking.sh186 ip -netns "${ns}" rule add pref 32765 from all lookup local
188 ip -netns "${ns}" -6 rule add pref 32765 from all lookup local
197 ip -netns "${ns}" link add "${vrf}" type vrf table "${table}"
199 ip -netns "${ns}" route add vrf "${vrf}" unreachable default metric 8192
200 ip -netns "${ns}" -6 route add vrf "${vrf}" unreachable default metric 8192
202 ip -netns "${ns}" addr add 127.0.0.1/8 dev "${vrf}"
203 ip -netns "${ns}" -6 addr add ::1 dev "${vrf}" nodad
217 ip netns add $ns
232 ip -netns h1 link add eth0 type veth peer name r1h1
235 ip -netns h2 link add eth0 type veth peer name r1h2
[all …]
Dbareudp.sh143 ip netns add "${NS0}" || exit_cleanup
144 ip netns add "${NS1}" || exit_cleanup "${NS0}"
145 ip netns add "${NS2}" || exit_cleanup "${NS0}" "${NS1}"
146 ip netns add "${NS3}" || exit_cleanup "${NS0}" "${NS1}" "${NS2}"
177 ip -netns "${NS}" address add dev "${DEV}" "${LOCAL_IP4}" peer "${PEER_IP4}"
178 ip -netns "${NS}" address add dev "${DEV}" "${LOCAL_IP6}" peer "${PEER_IP6}" nodad
195 ip link add name veth01 netns "${NS0}" type veth peer name veth10 netns "${NS1}"
196 ip link add name veth12 netns "${NS1}" type veth peer name veth21 netns "${NS2}"
197 ip link add name veth23 netns "${NS2}" type veth peer name veth32 netns "${NS3}"
205 tc -netns "${NS1}" qdisc add dev veth10 ingress
[all …]
Dxfrm_policy.sh39 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu…
41 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
53 …ip -net $ns xfrm state add src $remote dst $me proto esp spi $spi_in enc aes $KEY_AES auth sha1 …
54 …ip -net $ns xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 …
76 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
79 ip -net $ns xfrm policy add src 10.2.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
82 ip -net $ns xfrm policy add src 10.2.0.0/23 dst 10.0.1.0/24 dir fwd priority 200 action block
108 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/23 dir fwd priority 200 action block
113 …ip -net $ns xfrm policy add src 10.253.1.$((RANDOM%255))/$p dst 10.254.1.$((RANDOM%255))/$p dir fw…
146 ip -net $ns xfrm policy add dst $plain dir out priority 10 action allow
[all …]
Dip6_gre_headroom.sh9 ip link add h1 type veth peer name swp1
10 ip link add h3 type veth peer name swp3
13 ip address add 192.0.2.1/28 dev h1
15 ip link add dev vh3 type vrf table 20
21 ip address add dev swp3 2001:db8:2::1/64
22 ip address add dev swp3 2001:db8:2::3/64
25 tc qdisc add dev swp1 clsact
27 ip link add name er6 type ip6erspan \
31 ip link add name gt6 type ip6gretap \
52 tc filter add dev swp1 ingress pref 1000 matchall skip_hw \
Dvrf-xfrm-tests.sh96 ip ${ns} link add ${vrf} type vrf table ${table}
98 ip ${ns} route add vrf ${vrf} unreachable default metric 8192
99 ip ${ns} -6 route add vrf ${vrf} unreachable default metric 8192
101 ip ${ns} addr add 127.0.0.1/8 dev ${vrf}
102 ip ${ns} -6 addr add ::1 dev ${vrf} nodad
105 ip ${ns} ru add pref 32765 from all lookup local
107 ip ${ns} -6 ru add pref 32765 from all lookup local
119 ip netns add ${ns}
123 ip -netns ${ns} addr add dev lo ${addr}
126 ip -netns ${ns} -6 addr add dev lo ${addr6}
[all …]
/tools/testing/selftests/net/forwarding/
Dvxlan_symmetric.sh126 ip address add $ip_addr/24 dev $if_name
129 ip route add default vrf $vrf_name nexthop via $gw_ip
170 ip link add name br1 type bridge vlan_filtering 1 vlan_default_pvid 0 \
178 ip address add dev $rp1 192.0.2.1/24
179 ip route add 10.0.0.2/32 nexthop via 192.0.2.2
181 ip link add name vx10 type vxlan id 1010 \
187 bridge vlan add vid 10 dev vx10 pvid untagged
189 ip link add name vx20 type vxlan id 1020 \
195 bridge vlan add vid 20 dev vx20 pvid untagged
199 bridge vlan add vid 10 dev $swp1 pvid untagged
[all …]
Dvxlan_asymmetric.sh116 ip address add $ip_addr/24 dev $if_name
119 ip route add default vrf $vrf_name nexthop via $gw_ip
160 ip link add name br1 type bridge vlan_filtering 1 vlan_default_pvid 0 \
168 ip address add dev $rp1 192.0.2.1/24
169 ip route add 10.0.0.2/32 nexthop via 192.0.2.2
171 ip link add name vx10 type vxlan id 1000 \
177 bridge vlan add vid 10 dev vx10 pvid untagged
179 ip link add name vx20 type vxlan id 2000 \
185 bridge vlan add vid 20 dev vx20 pvid untagged
189 bridge vlan add vid 10 dev $swp1 pvid untagged
[all …]
Dfib_offload_lib.sh63 ip -n $ns link add name dummy$i type dummy
67 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 0 metric 1024
95 ip -n $ns link add name dummy1 type dummy
98 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 0 metric 1024
102 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 2 metric 1024
109 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 1 metric 1024
124 ip -n $ns link add name dummy1 type dummy
127 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric 1024
131 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric 1022
138 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric 1023
[all …]
Drouter_mpath_nh.sh22 ip address add 192.0.2.2/24 dev $h1
23 ip address add 2001:db8:1::2/64 dev $h1
25 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
26 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
49 ip address add 198.51.100.2/24 dev $h2
50 ip address add 2001:db8:2::2/64 dev $h2
52 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
53 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1
80 ip address add 192.0.2.1/24 dev $rp11
81 ip address add 2001:db8:1::1/64 dev $rp11
[all …]
Drouter_nh.sh21 ip address add 192.0.2.2/24 dev $h1
22 ip address add 2001:db8:1::2/64 dev $h1
24 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
25 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
48 ip address add 198.51.100.2/24 dev $h2
49 ip address add 2001:db8:2::2/64 dev $h2
51 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
52 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1
72 tc qdisc add dev $rp2 clsact
74 ip address add 192.0.2.1/24 dev $rp1
[all …]
/tools/testing/selftests/drivers/net/mlxsw/
Dtc_restrictions.sh43 tc qdisc add dev $swp1 ingress_block 22 clsact
46 tc filter add block 22 protocol ip pref 1 handle 101 flower \
50 tc qdisc add dev $swp2 ingress_block 22 clsact
55 tc qdisc add dev $swp2 egress_block 22 clsact
60 tc qdisc add dev $swp2 egress_block 22 clsact
63 tc filter add block 22 protocol ip pref 1 handle 101 flower \
69 tc qdisc add dev $swp1 egress_block 22 clsact
72 tc filter add block 22 protocol ip pref 1 handle 101 flower \
91 tc qdisc add dev $swp1 ingress_block 22 clsact
94 tc filter add block 22 protocol ip pref 1 handle 101 flower \
[all …]
Drtnetlink.sh76 ip addr add dev $swp1 192.0.2.1/28
84 ip addr add dev $swp2 192.0.2.2/28 &>/dev/null
86 ip addr add dev $swp2 192.0.2.2/28 2>&1 >/dev/null \
92 ip addr add dev $swp2 192.0.2.2/28 &>/dev/null
118 ip link add name vrf-test type vrf table 10
121 ip -4 address add 192.0.2.1/24 dev vrf-test
123 ip -6 address add 2001:db8:1::1/64 dev vrf-test
136 ip addr add dev $swp1 192.0.2.1/28
140 ip link add name br1 up type bridge vlan_filtering 0
142 ip addr add dev br1 192.0.2.17/28
[all …]
Dq_in_q_veto.sh49 ip link add dev br0 type bridge vlan_filtering 1 \
55 ip link add name br0.100 link br0 type vlan \
59 ip link add name br0.100 link br0 type vlan \
73 ip link add name $swp1.100 link $swp1 type vlan \
77 ip link add name $swp1.100 link $swp1 type vlan \
89 ip link add dev br0 type bridge vlan_filtering 1 \
95 ip link add name $swp1.100 link $swp1 type vlan \
99 ip link add name $swp1.100 link $swp1 type vlan \
113 ip link add name bond1 type bond mode 802.3ad
117 ip link add name bond1.100 link bond1 type vlan \
[all …]
/tools/testing/selftests/netfilter/
Dipip-conntrack-mtu.sh48 ip netns add ${n}
93 ip link add veth0 netns ${r_a} type veth peer name veth0 netns ${r_w}
94 ip link add veth1 netns ${r_a} type veth peer name veth0 netns ${c_a}
98 ip netns exec ${r_a} ip link add ipip0 type ipip local ${l_addr} remote ${r_addr} mode ipip || exit…
104 ip -net ${r_a} addr add 10.2.2.1/24 dev veth0
105 ip -net ${r_a} addr add 192.168.10.1/24 dev veth1
107 ip -net ${r_a} route add 192.168.20.0/24 dev ipip0
108 ip -net ${r_a} route add 10.4.4.0/24 via 10.2.2.254
123 ip link add veth0 netns ${r_b} type veth peer name veth1 netns ${r_w}
124 ip link add veth1 netns ${r_b} type veth peer name veth0 netns ${c_b}
[all …]
Dnft_concat_range.sh435 ip netns add B
436 ip link add veth_a type veth peer name veth_b || return 1
443 ip addr add dev veth_a 10.0.0.1
444 ip route add default dev veth_a
446 ip -6 addr add fe80::1/64 dev veth_a nodad
447 ip -6 addr add 2001:db8::1/64 dev veth_a nodad
448 ip -6 route add default dev veth_a
450 ip -n B route add default dev veth_b
452 ip -6 -n B addr add fe80::2/64 dev veth_b nodad
453 ip -6 -n B addr add 2001:db8::2/64 dev veth_b nodad
[all …]
Dnft_fib.sh38 ip netns add ${nsrouter}
53 ip netns add ${ns1}
54 ip netns add ${ns2}
119 ip link add veth0 netns ${nsrouter} type veth peer name eth0 netns ${ns1} > /dev/null 2>&1
124 ip link add veth1 netns ${nsrouter} type veth peer name eth0 netns ${ns2}
128 ip -net ${nsrouter} addr add 10.0.1.1/24 dev veth0
129 ip -net ${nsrouter} addr add dead:1::1/64 dev veth0
132 ip -net ${nsrouter} addr add 10.0.2.1/24 dev veth1
133 ip -net ${nsrouter} addr add dead:2::1/64 dev veth1
141 ip -net ${ns1} addr add 10.0.1.99/24 dev eth0
[all …]
/tools/testing/selftests/wireguard/
Dnetns.sh71 pp ip netns add $netns0
72 pp ip netns add $netns1
73 pp ip netns add $netns2
76 ip0 link add dev wg0 type wireguard
78 ip0 link add dev wg0 type wireguard
92 ip1 addr add 192.168.241.1/24 dev wg0
93 ip1 addr add fd00::1/112 dev wg0
95 ip2 addr add 192.168.241.2/24 dev wg0
96 ip2 addr add fd00::2/112 dev wg0
200 n1 ip route add 192.168.241.2/32 dev wg0 mtu 1299
[all …]

12345678910>>...13