• Home
  • Raw
  • Download

Lines Matching refs:ip

31 	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
83 ip -6 addr add dev "$vlandev" dead:42::1234/64
85 ip -d link > /dev/null
87 ip r s t all > /dev/null
94 ip -6 addr del dev "$vlandev" dead:42::1234/64
97 ip link del dev "$vlandev"
99 ip link del dev "$devbr"
117 ip tunnel add $gredev mode gre remote $rem local $loc ttl 1
119 ip link set $gredev up
121 ip addr add 10.23.7.10 dev $gredev
123 ip route add 10.23.8.0/30 dev $gredev
125 ip addr add dev "$devdummy" 10.23.7.11/24
127 ip link > /dev/null
129 ip addr > /dev/null
134 ip addr del dev "$devdummy" 10.23.7.11/24
137 ip link del $gredev
158 tc filter add dev "$dev" parent 1:0 prio 5 handle ffe: protocol ip u32 divisor 256
160 tc filter add dev "$dev" parent 1:0 prio 5 handle ffd: protocol ip u32 divisor 256
162 tc filter add dev "$dev" parent 1:0 prio 5 handle ffc: protocol ip u32 divisor 256
164 …tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32 ht ffe:2: match ip src 10…
166 …tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:2 u32 ht ffe:2: match ip src 10…
170 tc filter del dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32
188 ip rule add fwmark 1 lookup 100
190 ip route add local 0.0.0.0/0 dev lo table 100
192 ip r s t all > /dev/null
194 ip rule del fwmark 1 lookup 100
196 ip route del local 0.0.0.0/0 dev lo table 100
210 ip route get 127.0.0.1 > /dev/null
212 ip route get 127.0.0.1 dev "$devdummy" > /dev/null
214 ip route get ::1 > /dev/null
216 ip route get fe80::1 dev "$devdummy" > /dev/null
218 ip route get 127.0.0.1 from 127.0.0.1 oif lo tos 0x1 mark 0x1 > /dev/null
220 ip route get ::1 from ::1 iif lo oif lo tos 0x1 mark 0x1 > /dev/null
222 ip addr add dev "$devdummy" 10.23.7.11/24
224 ip route get 10.23.7.11 from 10.23.7.12 iif "$devdummy" > /dev/null
226 ip addr del dev "$devdummy" 10.23.7.11/24
241 ip addrlabel add prefix dead::/64 dev lo label 1
244 ip addrlabel list |grep -q "prefix dead::/64 dev lo label 1"
247 ip addrlabel del prefix dead::/64 dev lo label 1 2> /dev/null
250 ip addrlabel add prefix dead::/64 label 1 2> /dev/null
253 ip addrlabel del prefix dead::/64 label 1 2> /dev/null
258 ip addrlabel add prefix 1c3::/64 label 12345 2>/dev/null
262 ip addrlabel del prefix 1c3::/64 label 12345 2>/dev/null
267 ip addrlabel del prefix 1c3::/64 label 12345 2>/dev/null
283 ip link set dev "$devdummy" alias "$namewant"
291 ip link show "$devdummy" | grep -q "alias $namewant"
303 ip link show "$devdummy" | grep -q "alias $namewant"
309 ip link show "$devdummy" | grep -q "alias $namewant"
319 ip link set dev "$devdummy" alias "$namewant"
336 ip link show type vrf 2>/dev/null
342 ip link add "$vrfname" type vrf table 10
349 ip -br link show type vrf | grep -q "$vrfname"
356 ip link set dev "$vrfname" up
359 ip link set dev "$devdummy" master "$vrfname"
361 ip link del dev "$vrfname"
379 ip netns exec "$testns" ip link add "$vxlan" type vxlan id 42 group 239.1.1.1 \
387 ip netns exec "$testns" ip addr add 10.2.11.49/24 dev "$vxlan"
390 ip netns exec "$testns" ip link set up dev "$vxlan"
393 ip netns exec "$testns" ip link add link "$vxlan" name "$vlan" type vlan id 1
396 ip netns exec "$testns" ip link del "$vxlan"
412 ip fou help 2>&1 |grep -q 'Usage: ip fou'
418 ip netns exec "$testns" ip fou add port 7777 ipproto 47 2>/dev/null
424 ip netns exec "$testns" ip fou add port 8888 ipproto 4
427 ip netns exec "$testns" ip fou del port 9999 2>/dev/null
430 ip netns exec "$testns" ip fou del port 7777
447 ip netns add "$testns"
453 ip netns exec "$testns" ip link set lo up
456 ip netns exec "$testns" ip link add name "$devdummy" type dummy
458 ip netns exec "$testns" ip link set "$devdummy" up
464 ip netns del "$testns"
472 ip macsec help 2>&1 | grep -q "^Usage: ip macsec"
478 ip link add link "$devdummy" "$msname" type macsec port 42 encrypt on
485 ip macsec add "$msname" tx sa 0 pn 1024 on key 01 12345678901234567890123456789012
488 ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef"
491ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef" sa 0 pn 1 on key 00 0123456789abc…
494 ip macsec show > /dev/null
497 ip link del dev "$msname"
534 ip addr add $srcip dev $devdummy
537 ip x s flush ; ip x p flush
542 mpid=`(ip x m > $tmpfile & echo $!) 2>/dev/null`
546 ip x s add $ipsecid \
551 lines=`ip x s list | grep $srcip | grep $dstip | wc -l`
555 ip x s count | grep -q "SAD count 1"
558 lines=`ip x s get $ipsecid | grep $srcip | grep $dstip | wc -l`
562 ip x s delete $ipsecid
565 lines=`ip x s list | wc -l`
570 ip x p add $ipsecsel \
575 lines=`ip x p list | grep $srcip | grep $dstip | wc -l`
579 ip x p count | grep -q "SPD IN 0 OUT 1 FWD 0"
582 lines=`ip x p get $ipsecsel | grep $srcip | grep $dstip | wc -l`
586 ip x p delete $ipsecsel
589 lines=`ip x p list | wc -l`
601 ip x s flush
603 ip x p flush
605 ip addr del $srcip/32 dev $devdummy
644 ip link add $dev type netdevsim
645 ip addr add $srcip dev $dev
646 ip link set $dev up
657 ip x s flush ; ip x p flush
660 ip x p add dir out src $srcip/24 dst $dstip/24 \
664 ip x p add dir out src $dstip/24 dst $srcip/24 \
669 ip x s add proto esp src $srcip dst $dstip spi 9 \
673 ip x s add proto esp src $dstip dst $srcip spi 9 \
683 lines=`ip x s list | grep -c "crypto offload parameters: dev $dev dir"`
708 ip x s flush
709 ip x p flush
717 ip link del $dev
733 ip netns add "$testns"
739 ip link help gretap 2>&1 | grep -q "^Usage:"
742 ip netns del "$testns"
747 ip netns exec "$testns" ip link add dev "$DEV_NS" type gretap seq \
751 ip netns exec "$testns" ip addr add dev "$DEV_NS" 10.1.1.100/24
754 ip netns exec "$testns" ip link set dev $DEV_NS up
757 ip netns exec "$testns" ip link del "$DEV_NS"
761 ip netns exec "$testns" ip link add dev "$DEV_NS" type gretap external
764 ip netns exec "$testns" ip link del "$DEV_NS"
769 ip netns del "$testns"
774 ip netns del "$testns"
783 ip netns add "$testns"
789 ip link help ip6gretap 2>&1 | grep -q "^Usage:"
792 ip netns del "$testns"
797 ip netns exec "$testns" ip link add dev "$DEV_NS" type ip6gretap seq \
801 ip netns exec "$testns" ip addr add dev "$DEV_NS" fc00:200::1/96
804 ip netns exec "$testns" ip link set dev $DEV_NS up
807 ip netns exec "$testns" ip link del "$DEV_NS"
811 ip netns exec "$testns" ip link add dev "$DEV_NS" type ip6gretap external
814 ip netns exec "$testns" ip link del "$DEV_NS"
819 ip netns del "$testns"
824 ip netns del "$testns"
833 ip link help erspan 2>&1 | grep -q "^Usage:"
839 ip netns add "$testns"
846 ip netns exec "$testns" ip link add dev "$DEV_NS" type erspan seq \
851 ip netns exec "$testns" ip addr add dev "$DEV_NS" 10.1.1.100/24
854 ip netns exec "$testns" ip link set dev $DEV_NS up
857 ip netns exec "$testns" ip link del "$DEV_NS"
861 ip netns exec "$testns" ip link add dev "$DEV_NS" type erspan seq \
866 ip netns exec "$testns" ip addr add dev "$DEV_NS" 10.1.1.100/24
869 ip netns exec "$testns" ip link set dev $DEV_NS up
872 ip netns exec "$testns" ip link del "$DEV_NS"
876 ip netns exec "$testns" ip link add dev "$DEV_NS" type erspan external
879 ip netns exec "$testns" ip link del "$DEV_NS"
884 ip netns del "$testns"
889 ip netns del "$testns"
898 ip link help ip6erspan 2>&1 | grep -q "^Usage:"
904 ip netns add "$testns"
911 ip netns exec "$testns" ip link add dev "$DEV_NS" type ip6erspan seq \
916 ip netns exec "$testns" ip addr add dev "$DEV_NS" 10.1.1.100/24
919 ip netns exec "$testns" ip link set dev $DEV_NS up
922 ip netns exec "$testns" ip link del "$DEV_NS"
926 ip netns exec "$testns" ip link add dev "$DEV_NS" type ip6erspan seq \
931 ip netns exec "$testns" ip addr add dev "$DEV_NS" 10.1.1.100/24
934 ip netns exec "$testns" ip link set dev $DEV_NS up
937 ip netns exec "$testns" ip link del "$DEV_NS"
941 ip netns exec "$testns" ip link add dev "$DEV_NS" \
945 ip netns exec "$testns" ip link del "$DEV_NS"
950 ip netns del "$testns"
955 ip netns del "$testns"
992 for x in ip tc;do