Lines Matching full:ip

30 	ip link add name "$devdummy" type dummy
32 ip link set "$devdummy" up
38 ip link del dev "$devdummy"
47 ip netconf show dev "$dev" > /dev/null
51 ip -$f netconf show dev "$dev" > /dev/null
56 echo "FAIL: ip netconf show $dev"
69 ip link add name "$devbr" type bridge
72 ip link set dev "$devdummy" master "$devbr"
75 ip link set "$devbr" up
78 ip link add link "$devbr" name "$vlandev" type vlan id 1
80 ip addr add dev "$vlandev" 10.200.7.23/30
82 ip -6 addr add dev "$vlandev" dead:42::1234/64
84 ip -d link > /dev/null
86 ip r s t all > /dev/null
93 ip -6 addr del dev "$vlandev" dead:42::1234/64
96 ip link del dev "$vlandev"
98 ip link del dev "$devbr"
116 ip tunnel add $gredev mode gre remote $rem local $loc ttl 1
118 ip link set $gredev up
120 ip addr add 10.23.7.10 dev $gredev
122 ip route add 10.23.8.0/30 dev $gredev
124 ip addr add dev "$devdummy" 10.23.7.11/24
126 ip link > /dev/null
128 ip addr > /dev/null
133 ip addr del dev "$devdummy" 10.23.7.11/24
136 ip link del $gredev
157 tc filter add dev "$dev" parent 1:0 prio 5 handle ffe: protocol ip u32 divisor 256
159 tc filter add dev "$dev" parent 1:0 prio 5 handle ffd: protocol ip u32 divisor 256
161 tc filter add dev "$dev" parent 1:0 prio 5 handle ffc: protocol ip u32 divisor 256
163 …tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32 ht ffe:2: match ip src 10…
165 …tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:2 u32 ht ffe:2: match ip src 10…
169 tc filter del dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32
187 ip rule add fwmark 1 lookup 100
189 ip route add local 0.0.0.0/0 dev lo table 100
191 ip r s t all > /dev/null
193 ip rule del fwmark 1 lookup 100
195 ip route del local 0.0.0.0/0 dev lo table 100
211 ip route get 127.0.0.1 > /dev/null
213 ip route get 127.0.0.1 dev "$devdummy" > /dev/null
215 ip route get ::1 > /dev/null
217 ip route get fe80::1 dev "$devdummy" > /dev/null
219 ip route get 127.0.0.1 from 127.0.0.1 oif lo tos 0x10 mark 0x1 > /dev/null
221 ip route get ::1 from ::1 iif lo oif lo tos 0x10 mark 0x1 > /dev/null
223 ip addr add dev "$devdummy" 10.23.7.11/24
225 ip route get 10.23.7.11 from 10.23.7.12 iif "$devdummy" > /dev/null
227 ip route add 10.23.8.0/24 \
232 ip route get 10.23.8.11 > /dev/null
235 ip route get 10.23.8.11 > /dev/null
238 ip route del 10.23.8.0/24
240 ip addr del dev "$devdummy" 10.23.7.11/24
255 ip addr add 10.23.11.$i/32 dev "$devdummy" preferred_lft $lft valid_lft $((lft+1))
261 ip addr show dev "$devdummy" | grep "10.23.11."
278 IP="10.23.11.$i"
279 ip -f inet addr add $IP/16 brd + dev "$devdummy"
280 ifconfig "$devdummy" $IP netmask 255.255.0.0
283 ip addr flush dev "$devdummy"
294 ip addrlabel add prefix dead::/64 dev lo label 1
297 ip addrlabel list |grep -q "prefix dead::/64 dev lo label 1"
300 ip addrlabel del prefix dead::/64 dev lo label 1 2> /dev/null
303 ip addrlabel add prefix dead::/64 label 1 2> /dev/null
306 ip addrlabel del prefix dead::/64 label 1 2> /dev/null
311 ip addrlabel add prefix 1c3::/64 label 12345 2>/dev/null
315 ip addrlabel del prefix 1c3::/64 label 12345 2>/dev/null
320 ip addrlabel del prefix 1c3::/64 label 12345 2>/dev/null
336 ip link set dev "$devdummy" alias "$namewant"
344 ip link show "$devdummy" | grep -q "alias $namewant"
356 ip link show "$devdummy" | grep -q "alias $namewant"
362 ip link show "$devdummy" | grep -q "alias $namewant"
372 ip link set dev "$devdummy" alias "$namewant"
389 ip link show type vrf 2>/dev/null
395 ip link add "$vrfname" type vrf table 10
402 ip -br link show type vrf | grep -q "$vrfname"
409 ip link set dev "$vrfname" up
412 ip link set dev "$devdummy" master "$vrfname"
414 ip link del dev "$vrfname"
432 ip -netns "$testns" link add "$vxlan" type vxlan id 42 group 239.1.1.1 \
440 ip -netns "$testns" addr add 10.2.11.49/24 dev "$vxlan"
443 ip -netns "$testns" link set up dev "$vxlan"
446 ip -netns "$testns" link add link "$vxlan" name "$vlan" type vlan id 1
450 ip -netns "$testns" link set dev "$vxlan" type vxlan vni 43 2>/dev/null
453 ip -netns "$testns" link set dev "$vxlan" type vxlan group ffe5::5 dev "$devdummy" 2>/dev/null
456 ip -netns "$testns" link set dev "$vxlan" type vxlan ttl inherit 2>/dev/null
459 ip -netns "$testns" link set dev "$vxlan" type vxlan ttl 64
462 ip -netns "$testns" link set dev "$vxlan" type vxlan nolearning
465 ip -netns "$testns" link set dev "$vxlan" type vxlan proxy 2>/dev/null
468 ip -netns "$testns" link set dev "$vxlan" type vxlan norsc 2>/dev/null
471 ip -netns "$testns" link set dev "$vxlan" type vxlan l2miss 2>/dev/null
474 ip -netns "$testns" link set dev "$vxlan" type vxlan l3miss 2>/dev/null
477 ip -netns "$testns" link set dev "$vxlan" type vxlan external 2>/dev/null
480 ip -netns "$testns" link set dev "$vxlan" type vxlan udpcsum 2>/dev/null
483 ip -netns "$testns" link set dev "$vxlan" type vxlan udp6zerocsumtx 2>/dev/null
486 ip -netns "$testns" link set dev "$vxlan" type vxlan udp6zerocsumrx 2>/dev/null
489 ip -netns "$testns" link set dev "$vxlan" type vxlan remcsumtx 2>/dev/null
492 ip -netns "$testns" link set dev "$vxlan" type vxlan remcsumrx 2>/dev/null
495 ip -netns "$testns" link set dev "$vxlan" type vxlan gbp 2>/dev/null
498 ip -netns "$testns" link set dev "$vxlan" type vxlan gpe 2>/dev/null
501 ip -netns "$testns" link del "$vxlan"
517 ip fou help 2>&1 |grep -q 'Usage: ip fou'
528 ip -netns "$testns" fou add port 7777 ipproto 47 2>/dev/null
534 ip -netns "$testns" fou add port 8888 ipproto 4
537 ip -netns "$testns" fou del port 9999 2>/dev/null
540 ip -netns "$testns" fou del port 7777
557 ip netns add "$testns"
563 ip -netns "$testns" link set lo up
566 ip -netns "$testns" link add name "$devdummy" type dummy
568 ip -netns "$testns" link set "$devdummy" up
576 ip netns del "$testns"
585 ip macsec help 2>&1 | grep -q "^Usage: ip macsec"
591 ip link add link "$devdummy" "$msname" type macsec port 42 encrypt on
598 ip macsec add "$msname" tx sa 0 pn 1024 on key 01 12345678901234567890123456789012
601 ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef"
604ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef" sa 0 pn 1 on key 00 0123456789abc…
607 ip macsec show > /dev/null
610 ip link del dev "$msname"
623 # ip x s add proto esp src 14.0.0.52 dst 14.0.0.70 \
627 # ip x p add dir out src 14.0.0.52/24 dst 14.0.0.70/24 \
632 # ip x s update
633 # ip x s allocspi
634 # ip x s deleteall
635 # ip x p update
636 # ip x p deleteall
637 # ip x p set
647 ip addr add $srcip dev $devdummy
650 ip x s flush ; ip x p flush
655 mpid=`(ip x m > $tmpfile & echo $!) 2>/dev/null`
659 ip x s add $ipsecid \
664 lines=`ip x s list | grep $srcip | grep $dstip | wc -l`
668 ip x s count | grep -q "SAD count 1"
671 lines=`ip x s get $ipsecid | grep $srcip | grep $dstip | wc -l`
675 ip x s delete $ipsecid
678 lines=`ip x s list | wc -l`
683 ip x p add $ipsecsel \
688 lines=`ip x p list | grep $srcip | grep $dstip | wc -l`
692 ip x p count | grep -q "SPD IN 0 OUT 1 FWD 0"
695 lines=`ip x p get $ipsecsel | grep $srcip | grep $dstip | wc -l`
699 ip x p delete $ipsecsel
702 lines=`ip x p list | wc -l`
714 ip x s flush
716 ip x p flush
718 ip addr del $srcip/32 dev $devdummy
729 # ip x s add proto esp src 14.0.0.52 dst 14.0.0.70 \
734 # ip x p add dir out src 14.0.0.52/24 dst 14.0.0.70/24 \
766 ip addr add $srcip dev $dev
767 ip link set $dev up
778 ip x s flush ; ip x p flush
781 ip x p add dir out src $srcip/24 dst $dstip/24 \
785 ip x p add dir in src $dstip/24 dst $srcip/24 \
790 ip x s add proto esp src $srcip dst $dstip spi 9 \
794 ip x s add proto esp src $dstip dst $srcip spi 9 \
803 # does offload show up in ip output
804 lines=`ip x s list | grep -c "crypto offload parameters: dev $dev dir"`
829 ip x s flush
830 ip x p flush
853 ip netns add "$testns"
859 ip link help gretap 2>&1 | grep -q "^Usage:"
862 ip netns del "$testns"
867 ip -netns "$testns" link add dev "$DEV_NS" type gretap seq \
871 ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
874 ip -netns "$testns" link set dev $DEV_NS up
877 ip -netns "$testns" link del "$DEV_NS"
881 ip -netns "$testns" link add dev "$DEV_NS" type gretap external
884 ip -netns "$testns" link del "$DEV_NS"
889 ip netns del "$testns"
894 ip netns del "$testns"
903 ip netns add "$testns"
909 ip link help ip6gretap 2>&1 | grep -q "^Usage:"
912 ip netns del "$testns"
917 ip -netns "$testns" link add dev "$DEV_NS" type ip6gretap seq \
921 ip -netns "$testns" addr add dev "$DEV_NS" fc00:200::1/96
924 ip -netns "$testns" link set dev $DEV_NS up
927 ip -netns "$testns" link del "$DEV_NS"
931 ip -netns "$testns" link add dev "$DEV_NS" type ip6gretap external
934 ip -netns "$testns" link del "$DEV_NS"
939 ip netns del "$testns"
944 ip netns del "$testns"
953 ip link help erspan 2>&1 | grep -q "^Usage:"
959 ip netns add "$testns"
966 ip -netns "$testns" link add dev "$DEV_NS" type erspan seq \
971 ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
974 ip -netns "$testns" link set dev $DEV_NS up
977 ip -netns "$testns" link del "$DEV_NS"
981 ip -netns "$testns" link add dev "$DEV_NS" type erspan seq \
986 ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
989 ip -netns "$testns" link set dev $DEV_NS up
992 ip -netns "$testns" link del "$DEV_NS"
996 ip -netns "$testns" link add dev "$DEV_NS" type erspan external
999 ip -netns "$testns" link del "$DEV_NS"
1004 ip netns del "$testns"
1009 ip netns del "$testns"
1018 ip link help ip6erspan 2>&1 | grep -q "^Usage:"
1024 ip netns add "$testns"
1031 ip -netns "$testns" link add dev "$DEV_NS" type ip6erspan seq \
1036 ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
1039 ip -netns "$testns" link set dev $DEV_NS up
1042 ip -netns "$testns" link del "$DEV_NS"
1046 ip -netns "$testns" link add dev "$DEV_NS" type ip6erspan seq \
1051 ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
1054 ip -netns "$testns" link set dev $DEV_NS up
1057 ip -netns "$testns" link del "$DEV_NS"
1061 ip -netns "$testns" link add dev "$DEV_NS" \
1065 ip -netns "$testns" link del "$DEV_NS"
1070 ip netns del "$testns"
1075 ip netns del "$testns"
1080 IP="ip -netns testns"
1095 ip netns add testns
1101 $IP link add "$vxlandev" type vxlan id 10 local $localip \
1104 $IP link add name "$brdev" type bridge &>/dev/null
1106 $IP link set dev "$vxlandev" master "$brdev" &>/dev/null
1120 ip netns del testns &>/dev/null
1137 ip neigh help 2>&1 |grep -q 'ip neigh get'
1144 ip neigh add $dstip lladdr $dstmac dev "$devdummy" > /dev/null
1146 ip neigh get $dstip dev "$devdummy" 2> /dev/null | grep -q "$dstmac"
1148 ip neigh del $dstip lladdr $dstmac dev "$devdummy" > /dev/null
1152 ip neigh add proxy $dstip dev "$devdummy" > /dev/null
1154 ip neigh get proxy $dstip dev "$devdummy" 2>/dev/null | grep -q "$dstip"
1156 ip neigh del proxy $dstip dev "$devdummy" > /dev/null
1160 ip neigh add $dstip6 lladdr $dstmac dev "$devdummy" > /dev/null
1162 ip neigh get $dstip6 dev "$devdummy" 2> /dev/null | grep -q "$dstmac"
1164 ip neigh del $dstip6 lladdr $dstmac dev "$devdummy" > /dev/null
1168 ip neigh add proxy $dstip6 dev "$devdummy" > /dev/null
1170 ip neigh get proxy $dstip6 dev "$devdummy" 2>/dev/null | grep -q "$dstip6"
1172 ip neigh del proxy $dstip6 dev "$devdummy" > /dev/null
1207 ip link add name test-bond0 type bond mode 802.3ad
1208 ip link set dev $dev10 master test-bond0
1209 ip link set dev $dev20 master test-bond0
1210 ip link add name test-br0 type bridge
1211 ip link set dev test-bond0 master test-br0
1215 ip link del dev test-br0
1216 ip link del dev test-bond0
1290 for x in ip tc;do