Lines Matching full:ip
133 run_cmd ip link add name "$devdummy" type dummy
134 run_cmd ip link set "$devdummy" up
139 run_cmd ip link del dev "$devdummy"
146 run_cmd ip netconf show dev "$dev"
148 run_cmd ip -$f netconf show dev "$dev"
152 end_test "FAIL: ip netconf show $dev"
165 run_cmd ip link add name "$devbr" type bridge
166 run_cmd ip link set dev "$devdummy" master "$devbr"
167 run_cmd ip link set "$devbr" up
168 run_cmd ip link add link "$devbr" name "$vlandev" type vlan id 1
169 run_cmd ip addr add dev "$vlandev" 10.200.7.23/30
170 run_cmd ip -6 addr add dev "$vlandev" dead:42::1234/64
171 run_cmd ip -d link
172 run_cmd ip r s t all
177 run_cmd ip -6 addr del dev "$vlandev" dead:42::1234/64
178 run_cmd ip link del dev "$vlandev"
179 run_cmd ip link del dev "$devbr"
196 run_cmd ip tunnel add $gredev mode gre remote $rem local $loc ttl 1
197 run_cmd ip link set $gredev up
198 run_cmd ip addr add 10.23.7.10 dev $gredev
199 run_cmd ip route add 10.23.8.0/30 dev $gredev
200 run_cmd ip addr add dev "$devdummy" 10.23.7.11/24
201 run_cmd ip link
202 run_cmd ip addr
205 run_cmd ip addr del dev "$devdummy" 10.23.7.11/24
206 run_cmd ip link del $gredev
224 run_cmd tc filter add dev "$dev" parent 1:0 prio 5 handle ffe: protocol ip u32 divisor 256
225 run_cmd tc filter add dev "$dev" parent 1:0 prio 5 handle ffd: protocol ip u32 divisor 256
226 run_cmd tc filter add dev "$dev" parent 1:0 prio 5 handle ffc: protocol ip u32 divisor 256
227 …run_cmd tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32 ht ffe:2: match i…
228 …run_cmd tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:2 u32 ht ffe:2: match i…
230 run_cmd tc filter del dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32
245 run_cmd ip rule add fwmark 1 lookup 100
246 run_cmd ip route add local 0.0.0.0/0 dev lo table 100
247 run_cmd ip r s t all
248 run_cmd ip rule del fwmark 1 lookup 100
249 run_cmd ip route del local 0.0.0.0/0 dev lo table 100
263 run_cmd ip route get 127.0.0.1
264 run_cmd ip route get 127.0.0.1 dev "$devdummy"
265 run_cmd ip route get ::1
266 run_cmd ip route get fe80::1 dev "$devdummy"
267 run_cmd ip route get 127.0.0.1 from 127.0.0.1 oif lo tos 0x10 mark 0x1
268 run_cmd ip route get ::1 from ::1 iif lo oif lo tos 0x10 mark 0x1
269 run_cmd ip addr add dev "$devdummy" 10.23.7.11/24
270 run_cmd ip route get 10.23.7.11 from 10.23.7.12 iif "$devdummy"
271 run_cmd ip route add 10.23.8.0/24 \
276 run_cmd ip route get 10.23.8.11
278 run_cmd ip route get 10.23.8.11
280 run_cmd ip route del 10.23.8.0/24
281 run_cmd ip addr del dev "$devdummy" 10.23.7.11/24
296 run_cmd ip addr add 10.23.11.$i/32 dev "$devdummy" preferred_lft $lft valid_lft $((lft+1))
300 run_cmd_grep_fail "10.23.11." ip addr show dev "$devdummy"
317 IP="10.23.11.$i"
318 ip -f inet addr add $IP/16 brd + dev "$devdummy"
319 ifconfig "$devdummy" $IP netmask 255.255.0.0
322 ip addr flush dev "$devdummy"
332 run_cmd ip addrlabel add prefix dead::/64 dev lo label 1
333 run_cmd_grep "prefix dead::/64 dev lo label 1" ip addrlabel list
334 run_cmd ip addrlabel del prefix dead::/64 dev lo label 1
335 run_cmd ip addrlabel add prefix dead::/64 label 1
336 run_cmd ip addrlabel del prefix dead::/64 label 1
340 ip addrlabel add prefix 1c3::/64 label 12345 2>/dev/null
344 ip addrlabel del prefix 1c3::/64 label 12345 2>/dev/null
349 ip addrlabel del prefix 1c3::/64 label 12345 2>/dev/null
364 run_cmd ip link set dev "$devdummy" alias "$namewant"
370 run_cmd_grep "alias $namewant" ip link show "$devdummy"
381 run_cmd_grep "alias $namewant" ip link show "$devdummy"
385 run_cmd_grep_fail "alias $namewant" ip link show "$devdummy"
394 run_cmd ip link set dev "$devdummy" alias "$namewant"
410 run_cmd ip link show type vrf
415 run_cmd ip link add "$vrfname" type vrf table 10
420 run_cmd_grep "$vrfname" ip -br link show type vrf
426 run_cmd ip link set dev "$vrfname" up
427 run_cmd ip link set dev "$devdummy" master "$vrfname"
428 run_cmd ip link del dev "$vrfname"
443 run_cmd ip -netns "$testns" link add "$vxlan" type vxlan id 42 group 239.1.1.1 \
450 run_cmd ip -netns "$testns" addr add 10.2.11.49/24 dev "$vxlan"
451 run_cmd ip -netns "$testns" link set up dev "$vxlan"
452 run_cmd ip -netns "$testns" link add link "$vxlan" name "$vlan" type vlan id 1
455 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan vni 43
456 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan group ffe5::5 dev "$devdummy"
457 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan ttl inherit
459 run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan ttl 64
460 run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan nolearning
462 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan proxy
463 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan norsc
464 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan l2miss
465 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan l3miss
466 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan external
467 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udpcsum
468 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udp6zerocsumtx
469 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udp6zerocsumrx
470 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan remcsumtx
471 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan remcsumrx
472 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan gbp
473 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan gpe
474 run_cmd ip -netns "$testns" link del "$vxlan"
487 run_cmd_grep 'Usage: ip fou' ip fou help
499 run_cmd ip -netns "$testns" fou add port 7777 ipproto 47
504 run_cmd ip -netns "$testns" fou add port 8888 ipproto 4
505 run_cmd_fail ip -netns "$testns" fou del port 9999
506 run_cmd ip -netns "$testns" fou del port 7777
524 run_cmd ip -netns "$testns" link set lo up
525 run_cmd ip -netns "$testns" link add name "$devdummy" type dummy
526 run_cmd ip -netns "$testns" link set "$devdummy" up
530 ip netns del "$testns"
538 run_cmd_grep "^Usage: ip macsec" ip macsec help
543 run_cmd ip link add link "$devdummy" "$msname" type macsec port 42 encrypt on
548 run_cmd ip macsec add "$msname" tx sa 0 pn 1024 on key 01 12345678901234567890123456789012
549 run_cmd ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef"
550 …run_cmd ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef" sa 0 pn 1 on key 00 01234…
551 run_cmd ip macsec show
552 run_cmd ip link del dev "$msname"
568 run_cmd_grep "^Usage: ip macsec" ip macsec help
594 ip link set $dev up
604 run_cmd ip link add link $dev kci_macsec1 type macsec port 4 offload mac
605 …run_cmd ip link add link $dev kci_macsec2 type macsec address "aa:bb:cc:dd:ee:ff" port 5 offload m…
606 run_cmd ip link add link $dev kci_macsec3 type macsec sci abbacdde01020304 offload mac
607 run_cmd_fail ip link add link $dev kci_macsec4 type macsec port 8 offload mac
610 run_cmd ip macsec add "$msname" tx sa 0 pn 1024 on key 01 12345678901234567890123456789012
611 run_cmd ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef"
612 run_cmd ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef" sa 0 pn 1 on \
614 run_cmd_fail ip macsec add "$msname" rx port 1235 address "1c:ed:de:ad:be:ef"
617 ip link del $msdev 2> /dev/null
631 # ip x s add proto esp src 14.0.0.52 dst 14.0.0.70 \
635 # ip x p add dir out src 14.0.0.52/24 dst 14.0.0.70/24 \
640 # ip x s update
641 # ip x s allocspi
642 # ip x s deleteall
643 # ip x p update
644 # ip x p deleteall
645 # ip x p set
655 ip addr add $srcip dev $devdummy
658 run_cmd ip x s flush ; ip x p flush
662 mpid=`(ip x m > $tmpfile & echo $!) 2>/dev/null`
666 run_cmd ip x s add $ipsecid \
671 lines=`ip x s list | grep $srcip | grep $dstip | wc -l`
673 run_cmd_grep "SAD count 1" ip x s count
675 lines=`ip x s get $ipsecid | grep $srcip | grep $dstip | wc -l`
677 run_cmd ip x s delete $ipsecid
679 lines=`ip x s list | wc -l`
683 run_cmd ip x p add $ipsecsel \
688 lines=`ip x p list | grep $srcip | grep $dstip | wc -l`
691 run_cmd_grep "SPD IN 0 OUT 1 FWD 0" ip x p count
693 lines=`ip x p get $ipsecsel | grep $srcip | grep $dstip | wc -l`
696 run_cmd ip x p delete $ipsecsel
698 lines=`ip x p list | wc -l`
708 run_cmd ip x s flush
709 run_cmd ip x p flush
710 ip addr del $srcip/32 dev $devdummy
721 # ip x s add proto esp src 14.0.0.52 dst 14.0.0.70 \
726 # ip x p add dir out src 14.0.0.52/24 dst 14.0.0.70/24 \
761 ip addr add $srcip dev $dev
762 ip link set $dev up
773 ip x s flush ; ip x p flush
776 run_cmd ip x p add dir out src $srcip/24 dst $dstip/24 \
780 run_cmd ip x p add dir in src $dstip/24 dst $srcip/24 \
784 run_cmd ip x s add proto esp src $srcip dst $dstip spi 9 \
788 run_cmd ip x s add proto esp src $dstip dst $srcip spi 9 \
797 # does offload show up in ip output
798 lines=`ip x s list | grep -c "crypto offload parameters: dev $dev dir"`
805 ip neigh add $dstip dev $dev lladdr 00:11:22:33:44:55
825 ip x s flush
826 ip x p flush
855 run_cmd_grep "^Usage:" ip link help gretap
858 ip netns del "$testns"
863 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type gretap seq \
867 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
868 run_cmd ip -netns "$testns" link set dev $DEV_NS up
869 run_cmd ip -netns "$testns" link del "$DEV_NS"
872 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type gretap external
873 run_cmd ip -netns "$testns" link del "$DEV_NS"
877 ip netns del "$testns"
882 ip netns del "$testns"
896 run_cmd_grep "^Usage:" ip link help ip6gretap
899 ip netns del "$testns"
904 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6gretap seq \
908 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" fc00:200::1/96
909 run_cmd ip -netns "$testns" link set dev $DEV_NS up
910 run_cmd ip -netns "$testns" link del "$DEV_NS"
913 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6gretap external
914 run_cmd ip -netns "$testns" link del "$DEV_NS"
918 ip netns del "$testns"
923 ip netns del "$testns"
930 run_cmd_grep "^Usage:" ip link help erspan
942 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan seq \
947 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
948 run_cmd ip -netns "$testns" link set dev $DEV_NS up
949 run_cmd ip -netns "$testns" link del "$DEV_NS"
952 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan seq \
957 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
958 run_cmd ip -netns "$testns" link set dev $DEV_NS up
959 run_cmd ip -netns "$testns" link del "$DEV_NS"
962 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan external
963 run_cmd ip -netns "$testns" link del "$DEV_NS"
967 ip netns del "$testns"
972 ip netns del "$testns"
979 run_cmd_grep "^Usage:" ip link help ip6erspan
991 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6erspan seq \
996 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
997 run_cmd ip -netns "$testns" link set dev $DEV_NS up
998 run_cmd ip -netns "$testns" link del "$DEV_NS"
1001 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6erspan seq \
1006 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
1007 run_cmd ip -netns "$testns" link set dev $DEV_NS up
1008 run_cmd ip -netns "$testns" link del "$DEV_NS"
1011 run_cmd ip -netns "$testns" link add dev "$DEV_NS" \
1014 run_cmd ip -netns "$testns" link del "$DEV_NS"
1018 ip netns del "$testns"
1023 ip netns del "$testns"
1046 IP="ip -netns $testns"
1048 run_cmd $IP link add "$vxlandev" type vxlan id 10 local $localip \
1050 run_cmd $IP link add name "$brdev" type bridge
1051 run_cmd $IP link set dev "$vxlandev" master "$brdev"
1058 ip netns del $testns &>/dev/null
1075 run_cmd_grep 'ip neigh get' ip neigh help
1082 run_cmd ip neigh add $dstip lladdr $dstmac dev "$devdummy"
1083 run_cmd_grep "$dstmac" ip neigh get $dstip dev "$devdummy"
1084 run_cmd ip neigh del $dstip lladdr $dstmac dev "$devdummy"
1087 run_cmd ip neigh add proxy $dstip dev "$devdummy"
1088 run_cmd_grep "$dstip" ip neigh get proxy $dstip dev "$devdummy"
1089 run_cmd ip neigh del proxy $dstip dev "$devdummy"
1092 run_cmd ip neigh add $dstip6 lladdr $dstmac dev "$devdummy"
1093 run_cmd_grep "$dstmac" ip neigh get $dstip6 dev "$devdummy"
1094 run_cmd ip neigh del $dstip6 lladdr $dstmac dev "$devdummy"
1097 run_cmd ip neigh add proxy $dstip6 dev "$devdummy"
1098 run_cmd_grep "$dstip6" ip neigh get proxy $dstip6 dev "$devdummy"
1099 run_cmd ip neigh del proxy $dstip6 dev "$devdummy"
1131 run_cmd ip link add name test-bond0 type bond mode 802.3ad
1132 run_cmd ip link set dev $dev10 master test-bond0
1133 run_cmd ip link set dev $dev20 master test-bond0
1134 run_cmd ip link add name test-br0 type bridge
1135 run_cmd ip link set dev test-bond0 master test-br0
1138 ip link del dev test-br0
1139 ip link del dev test-bond0
1155 ip -N -j address show dev "$devdummy" |
1162 ip -N -j address show dev "$devdummy" "$@" |
1177 ip address add dev "$devdummy" "$addr3"
1183 ip address add dev "$devdummy" "$addr2" proto 0x99
1189 ip address add dev "$devdummy" "$addr" proto 0xab
1195 ip address replace dev "$devdummy" "$addr" proto 0x11
1221 ip address del dev "$devdummy" "$addr"
1222 ip address del dev "$devdummy" "$addr2"
1223 ip address del dev "$devdummy" "$addr3"
1256 run_cmd ip -netns $testns link add dev $bond type bond mode balance-rr
1257 run_cmd ip -netns $testns link add dev $devdummy type dummy
1258 run_cmd ip -netns $testns link set dev $devdummy up
1259 run_cmd ip -netns $testns link set dev $devdummy master $bond down
1262 ip netns del "$testns"
1267 ip netns del "$testns"
1309 for x in ip tc;do