Lines Matching full:ip
135 run_cmd ip link add name "$devdummy" type dummy
136 run_cmd ip link set "$devdummy" up
141 run_cmd ip link del dev "$devdummy"
148 run_cmd ip netconf show dev "$dev"
150 run_cmd ip -$f netconf show dev "$dev"
154 end_test "FAIL: ip netconf show $dev"
167 run_cmd ip link add name "$devbr" type bridge
168 run_cmd ip link set dev "$devdummy" master "$devbr"
169 run_cmd ip link set "$devbr" up
170 run_cmd ip link add link "$devbr" name "$vlandev" type vlan id 1
171 run_cmd ip addr add dev "$vlandev" 10.200.7.23/30
172 run_cmd ip -6 addr add dev "$vlandev" dead:42::1234/64
173 run_cmd ip -d link
174 run_cmd ip r s t all
179 run_cmd ip -6 addr del dev "$vlandev" dead:42::1234/64
180 run_cmd ip link del dev "$vlandev"
181 run_cmd ip link del dev "$devbr"
198 run_cmd ip tunnel add $gredev mode gre remote $rem local $loc ttl 1
199 run_cmd ip link set $gredev up
200 run_cmd ip addr add 10.23.7.10 dev $gredev
201 run_cmd ip route add 10.23.8.0/30 dev $gredev
202 run_cmd ip addr add dev "$devdummy" 10.23.7.11/24
203 run_cmd ip link
204 run_cmd ip addr
207 run_cmd ip addr del dev "$devdummy" 10.23.7.11/24
208 run_cmd ip link del $gredev
226 run_cmd tc filter add dev "$dev" parent 1:0 prio 5 handle ffe: protocol ip u32 divisor 256
227 run_cmd tc filter add dev "$dev" parent 1:0 prio 5 handle ffd: protocol ip u32 divisor 256
228 run_cmd tc filter add dev "$dev" parent 1:0 prio 5 handle ffc: protocol ip u32 divisor 256
229 …run_cmd tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32 ht ffe:2: match i…
230 …run_cmd tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:2 u32 ht ffe:2: match i…
232 run_cmd tc filter del dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32
247 run_cmd ip rule add fwmark 1 lookup 100
248 run_cmd ip route add local 0.0.0.0/0 dev lo table 100
249 run_cmd ip r s t all
250 run_cmd ip rule del fwmark 1 lookup 100
251 run_cmd ip route del local 0.0.0.0/0 dev lo table 100
265 run_cmd ip route get 127.0.0.1
266 run_cmd ip route get 127.0.0.1 dev "$devdummy"
267 run_cmd ip route get ::1
268 run_cmd ip route get fe80::1 dev "$devdummy"
269 run_cmd ip route get 127.0.0.1 from 127.0.0.1 oif lo tos 0x10 mark 0x1
270 run_cmd ip route get ::1 from ::1 iif lo oif lo tos 0x10 mark 0x1
271 run_cmd ip addr add dev "$devdummy" 10.23.7.11/24
272 run_cmd ip route get 10.23.7.11 from 10.23.7.12 iif "$devdummy"
273 run_cmd ip route add 10.23.8.0/24 \
278 run_cmd ip route get 10.23.8.11
280 run_cmd ip route get 10.23.8.11
282 run_cmd ip route del 10.23.8.0/24
283 run_cmd ip addr del dev "$devdummy" 10.23.7.11/24
298 run_cmd ip addr add 10.23.11.$i/32 dev "$devdummy" preferred_lft $lft valid_lft $((lft+1))
302 run_cmd_grep_fail "10.23.11." ip addr show dev "$devdummy"
319 IP="10.23.11.$i"
320 ip -f inet addr add $IP/16 brd + dev "$devdummy"
321 ifconfig "$devdummy" $IP netmask 255.255.0.0
324 ip addr flush dev "$devdummy"
334 run_cmd ip addrlabel add prefix dead::/64 dev lo label 1
335 run_cmd_grep "prefix dead::/64 dev lo label 1" ip addrlabel list
336 run_cmd ip addrlabel del prefix dead::/64 dev lo label 1
337 run_cmd ip addrlabel add prefix dead::/64 label 1
338 run_cmd ip addrlabel del prefix dead::/64 label 1
342 ip addrlabel add prefix 1c3::/64 label 12345 2>/dev/null
346 ip addrlabel del prefix 1c3::/64 label 12345 2>/dev/null
351 ip addrlabel del prefix 1c3::/64 label 12345 2>/dev/null
366 run_cmd ip link set dev "$devdummy" alias "$namewant"
372 run_cmd_grep "alias $namewant" ip link show "$devdummy"
383 run_cmd_grep "alias $namewant" ip link show "$devdummy"
387 run_cmd_grep_fail "alias $namewant" ip link show "$devdummy"
396 run_cmd ip link set dev "$devdummy" alias "$namewant"
412 run_cmd ip link show type vrf
417 run_cmd ip link add "$vrfname" type vrf table 10
422 run_cmd_grep "$vrfname" ip -br link show type vrf
428 run_cmd ip link set dev "$vrfname" up
429 run_cmd ip link set dev "$devdummy" master "$vrfname"
430 run_cmd ip link del dev "$vrfname"
445 run_cmd ip -netns "$testns" link add "$vxlan" type vxlan id 42 group 239.1.1.1 \
452 run_cmd ip -netns "$testns" addr add 10.2.11.49/24 dev "$vxlan"
453 run_cmd ip -netns "$testns" link set up dev "$vxlan"
454 run_cmd ip -netns "$testns" link add link "$vxlan" name "$vlan" type vlan id 1
457 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan vni 43
458 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan group ffe5::5 dev "$devdummy"
459 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan ttl inherit
461 run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan ttl 64
462 run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan nolearning
464 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan proxy
465 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan norsc
466 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan l2miss
467 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan l3miss
468 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan external
469 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udpcsum
470 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udp6zerocsumtx
471 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udp6zerocsumrx
472 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan remcsumtx
473 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan remcsumrx
474 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan gbp
475 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan gpe
476 run_cmd ip -netns "$testns" link del "$vxlan"
489 run_cmd_grep 'Usage: ip fou' ip fou help
501 run_cmd ip -netns "$testns" fou add port 7777 ipproto 47
506 run_cmd ip -netns "$testns" fou add port 8888 ipproto 4
507 run_cmd_fail ip -netns "$testns" fou del port 9999
508 run_cmd ip -netns "$testns" fou del port 7777
526 run_cmd ip -netns "$testns" link set lo up
527 run_cmd ip -netns "$testns" link add name "$devdummy" type dummy
528 run_cmd ip -netns "$testns" link set "$devdummy" up
532 ip netns del "$testns"
540 run_cmd_grep "^Usage: ip macsec" ip macsec help
545 run_cmd ip link add link "$devdummy" "$msname" type macsec port 42 encrypt on
550 run_cmd ip macsec add "$msname" tx sa 0 pn 1024 on key 01 12345678901234567890123456789012
551 run_cmd ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef"
552 …run_cmd ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef" sa 0 pn 1 on key 00 01234…
553 run_cmd ip macsec show
554 run_cmd ip link del dev "$msname"
566 # ip x s add proto esp src 14.0.0.52 dst 14.0.0.70 \
570 # ip x p add dir out src 14.0.0.52/24 dst 14.0.0.70/24 \
575 # ip x s update
576 # ip x s allocspi
577 # ip x s deleteall
578 # ip x p update
579 # ip x p deleteall
580 # ip x p set
590 ip addr add $srcip dev $devdummy
593 run_cmd ip x s flush ; ip x p flush
597 mpid=`(ip x m > $tmpfile & echo $!) 2>/dev/null`
601 run_cmd ip x s add $ipsecid \
606 lines=`ip x s list | grep $srcip | grep $dstip | wc -l`
608 run_cmd_grep "SAD count 1" ip x s count
610 lines=`ip x s get $ipsecid | grep $srcip | grep $dstip | wc -l`
612 run_cmd ip x s delete $ipsecid
614 lines=`ip x s list | wc -l`
618 run_cmd ip x p add $ipsecsel \
623 lines=`ip x p list | grep $srcip | grep $dstip | wc -l`
626 run_cmd_grep "SPD IN 0 OUT 1 FWD 0" ip x p count
628 lines=`ip x p get $ipsecsel | grep $srcip | grep $dstip | wc -l`
631 run_cmd ip x p delete $ipsecsel
633 lines=`ip x p list | wc -l`
643 run_cmd ip x s flush
644 run_cmd ip x p flush
645 ip addr del $srcip/32 dev $devdummy
656 # ip x s add proto esp src 14.0.0.52 dst 14.0.0.70 \
661 # ip x p add dir out src 14.0.0.52/24 dst 14.0.0.70/24 \
696 ip addr add $srcip dev $dev
697 ip link set $dev up
708 ip x s flush ; ip x p flush
711 run_cmd ip x p add dir out src $srcip/24 dst $dstip/24 \
715 run_cmd ip x p add dir in src $dstip/24 dst $srcip/24 \
719 run_cmd ip x s add proto esp src $srcip dst $dstip spi 9 \
723 run_cmd ip x s add proto esp src $dstip dst $srcip spi 9 \
732 # does offload show up in ip output
733 lines=`ip x s list | grep -c "crypto offload parameters: dev $dev dir"`
740 ip neigh add $dstip dev $dev lladdr 00:11:22:33:44:55
760 ip x s flush
761 ip x p flush
790 run_cmd_grep "^Usage:" ip link help gretap
793 ip netns del "$testns"
798 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type gretap seq \
802 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
803 run_cmd ip -netns "$testns" link set dev $DEV_NS up
804 run_cmd ip -netns "$testns" link del "$DEV_NS"
807 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type gretap external
808 run_cmd ip -netns "$testns" link del "$DEV_NS"
812 ip netns del "$testns"
817 ip netns del "$testns"
831 run_cmd_grep "^Usage:" ip link help ip6gretap
834 ip netns del "$testns"
839 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6gretap seq \
843 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" fc00:200::1/96
844 run_cmd ip -netns "$testns" link set dev $DEV_NS up
845 run_cmd ip -netns "$testns" link del "$DEV_NS"
848 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6gretap external
849 run_cmd ip -netns "$testns" link del "$DEV_NS"
853 ip netns del "$testns"
858 ip netns del "$testns"
865 run_cmd_grep "^Usage:" ip link help erspan
877 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan seq \
882 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
883 run_cmd ip -netns "$testns" link set dev $DEV_NS up
884 run_cmd ip -netns "$testns" link del "$DEV_NS"
887 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan seq \
892 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
893 run_cmd ip -netns "$testns" link set dev $DEV_NS up
894 run_cmd ip -netns "$testns" link del "$DEV_NS"
897 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan external
898 run_cmd ip -netns "$testns" link del "$DEV_NS"
902 ip netns del "$testns"
907 ip netns del "$testns"
914 run_cmd_grep "^Usage:" ip link help ip6erspan
926 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6erspan seq \
931 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
932 run_cmd ip -netns "$testns" link set dev $DEV_NS up
933 run_cmd ip -netns "$testns" link del "$DEV_NS"
936 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6erspan seq \
941 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
942 run_cmd ip -netns "$testns" link set dev $DEV_NS up
943 run_cmd ip -netns "$testns" link del "$DEV_NS"
946 run_cmd ip -netns "$testns" link add dev "$DEV_NS" \
949 run_cmd ip -netns "$testns" link del "$DEV_NS"
953 ip netns del "$testns"
958 ip netns del "$testns"
981 IP="ip -netns $testns"
983 run_cmd $IP link add "$vxlandev" type vxlan id 10 local $localip \
985 run_cmd $IP link add name "$brdev" type bridge
986 run_cmd $IP link set dev "$vxlandev" master "$brdev"
993 ip netns del $testns &>/dev/null
1021 IP="ip -netns $testns"
1023 run_cmd $IP link add $dummydev type dummy
1024 run_cmd $IP link add name $brdev type bridge vlan_filtering 1
1025 run_cmd $IP link set dev $dummydev master $brdev
1032 ip netns del $testns &>/dev/null
1049 run_cmd_grep 'ip neigh get' ip neigh help
1056 run_cmd ip neigh add $dstip lladdr $dstmac dev "$devdummy"
1057 run_cmd_grep "$dstmac" ip neigh get $dstip dev "$devdummy"
1058 run_cmd ip neigh del $dstip lladdr $dstmac dev "$devdummy"
1061 run_cmd ip neigh add proxy $dstip dev "$devdummy"
1062 run_cmd_grep "$dstip" ip neigh get proxy $dstip dev "$devdummy"
1063 run_cmd ip neigh del proxy $dstip dev "$devdummy"
1066 run_cmd ip neigh add $dstip6 lladdr $dstmac dev "$devdummy"
1067 run_cmd_grep "$dstmac" ip neigh get $dstip6 dev "$devdummy"
1068 run_cmd ip neigh del $dstip6 lladdr $dstmac dev "$devdummy"
1071 run_cmd ip neigh add proxy $dstip6 dev "$devdummy"
1072 run_cmd_grep "$dstip6" ip neigh get proxy $dstip6 dev "$devdummy"
1073 run_cmd ip neigh del proxy $dstip6 dev "$devdummy"
1105 run_cmd ip link add name test-bond0 type bond mode 802.3ad
1106 run_cmd ip link set dev $dev10 master test-bond0
1107 run_cmd ip link set dev $dev20 master test-bond0
1108 run_cmd ip link add name test-br0 type bridge
1109 run_cmd ip link set dev test-bond0 master test-br0
1112 ip link del dev test-br0
1113 ip link del dev test-bond0
1129 ip -N -j address show dev "$devdummy" |
1136 ip -N -j address show dev "$devdummy" "$@" |
1151 ip address add dev "$devdummy" "$addr3"
1157 ip address add dev "$devdummy" "$addr2" proto 0x99
1163 ip address add dev "$devdummy" "$addr" proto 0xab
1169 ip address replace dev "$devdummy" "$addr" proto 0x11
1195 ip address del dev "$devdummy" "$addr"
1196 ip address del dev "$devdummy" "$addr2"
1197 ip address del dev "$devdummy" "$addr3"
1230 run_cmd ip -netns $testns link add dev $bond type bond mode balance-rr
1231 run_cmd ip -netns $testns link add dev $devdummy type dummy
1232 run_cmd ip -netns $testns link set dev $devdummy up
1233 run_cmd ip -netns $testns link set dev $devdummy master $bond down
1236 ip netns del "$testns"
1241 ip netns del "$testns"
1254 local addr_list=$(ip -j -n $testns addr show dev ${dev})
1295 run_cmd ip -n $testns link add ${devdummy} type dummy
1296 run_cmd ip -n $testns link set ${devdummy} up
1297 run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.use_tempaddr=1
1298 run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.temp_prefered_lft=10
1299 run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.temp_valid_lft=25
1300 run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.max_desync_factor=1
1306 run_cmd ip -n $testns addr add 2001:db8:7e57:${i}::1/64 mngtmpaddr dev ${devdummy}
1319 run_cmd ip -n $testns addr del 2001:db8:7e57:${i}::1/64 $mng_flag dev ${devdummy}
1321 run_cmd ip -n $testns addr change 2001:db8:7e57:${i}::1/64 dev ${devdummy}
1333 ip netns del "$testns"
1376 for x in ip tc;do