Lines Matching full:ip
49 ip link set dev $swp1 up
50 ip link set dev $swp2 up
57 ip link set dev $swp2 down
58 ip link set dev $swp1 down
63 # Test that it is possible to set an IP address on a VRF upper despite
67 ip link add name vrf-test type vrf table 10
68 ip link set dev $swp1 master vrf-test
70 ip -4 address add 192.0.2.1/24 dev vrf-test
72 ip -6 address add 2001:db8:1::1/64 dev vrf-test
75 log_test "RIF - setting IP address on VRF"
77 ip link del dev vrf-test
87 ip addr add dev $swp1 192.0.2.1/28
91 ip link add name br1 up type bridge vlan_filtering 0
92 ip link set dev br1 addr $swp2_mac
93 ip link set dev $swp2 master br1
94 ip addr add dev br1 192.0.2.17/28
98 ip link add name d up type dummy
99 ip link set dev d addr 00:11:22:33:44:55
103 ip link set dev d master br1 &>/dev/null
107 ip link set dev $swp2 addr 00:11:22:33:44:55
112 ip link set dev $swp2 addr $swp2_mac
113 ip link del dev d
114 ip link del dev br1
115 ip addr del dev $swp1 192.0.2.1/28
126 ip link add name br0 type bridge vlan_filtering 1
127 ip link set dev $swp1 master br0
129 ip link add link br0 name br0.10 type vlan id 10
130 ip -6 address add 2001:db8:1::1/64 dev br0.10
131 ip link del dev br0.10
134 ip link add link br0 name br0.20 type vlan id 20
135 ip -6 address add 2001:db8:1::1/64 dev br0.20
136 ip link del dev br0.20
140 ip link del dev br0
151 ip link add name br0 type bridge vlan_filtering 1
152 ip link set dev $swp1 master br0
153 ip -6 address add 2001:db8::1/64 dev br0
155 ip link add link br0 name br0.10 type vlan id 10
156 ip -6 address add 2001:db8:1::1/64 dev br0.10
158 ip link add link br0 name br0.20 type vlan id 20
159 ip -6 address add 2001:db8:2::1/64 dev br0.20
161 ip link del dev br0
164 ip -6 address add 2001:db8:1::1/64 dev $swp1
165 ip -6 address del 2001:db8:1::1/64 dev $swp1
178 ip link add name br0 type bridge vlan_filtering 1
179 ip link set dev $swp1 master br0
185 ip link del dev br0
202 ip link add link $swp1 name $swp1.1 type vlan id 1
207 ip link del dev $swp1.1
216 ip link add name br0 type bridge vlan_filtering 1
217 ip link set dev $swp1 master br0
220 ip link add link $swp1 name $swp1.10 type vlan id 10 &> /dev/null
224 ip link add link $swp1 name $swp1.10 type vlan id 10
231 ip link del dev $swp1.10
232 ip link del dev br0
242 ip link add name br0 type bridge vlan_filtering 1
243 ip link set dev $swp1 master br0
245 ip link set dev $swp1 up
246 ip link set dev br0 up
248 ip link add link br0 name br0.10 up type vlan id 10
249 ip -6 address add 2001:db8:1::1/64 dev br0.10
252 ip -6 route get fibmatch 2001:db8:1::2 dev br0.10
257 ip -6 route get fibmatch 2001:db8:1::2 dev br0.10
262 ip -6 route get fibmatch 2001:db8:1::2 dev br0.10
265 ip link set dev $swp1 nomaster
267 ip -6 route get fibmatch 2001:db8:1::2 dev br0.10
272 ip link del dev br0.10
273 ip link set dev $swp1 down
274 ip link del dev br0
285 ip link add name bond1 type bond mode 802.3ad
286 ip link set dev $swp1 down
287 ip link set dev $swp2 down
288 ip link set dev $swp1 master bond1
289 ip link set dev $swp2 master bond1
291 ip link set dev bond1 up
292 ip link add link bond1 name bond1.10 up type vlan id 10
293 ip -6 address add 2001:db8:1::1/64 dev bond1
294 ip -6 address add 2001:db8:2::1/64 dev bond1.10
297 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
300 ip -6 route get fibmatch 2001:db8:2::2 dev bond1.10
303 ip link set dev $swp1 nomaster
305 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
308 ip -6 route get fibmatch 2001:db8:2::2 dev bond1.10
311 ip link set dev $swp2 nomaster
313 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
316 ip -6 route get fibmatch 2001:db8:2::2 dev bond1.10
321 ip link del dev bond1.10
322 ip link del dev bond1
333 ip link add name bond1 type bond mode 802.3ad
334 ip link set dev $swp1 down
335 ip link set dev $swp2 down
336 ip link set dev $swp1 master bond1
337 ip link set dev $swp2 master bond1
339 ip link set dev bond1 up
340 ip -6 address add 2001:db8:1::1/64 dev bond1
343 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
346 ip link set dev $swp1 nomaster
348 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
351 ip link set dev $swp1 master bond1
352 ip link set dev $swp2 nomaster
354 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
357 ip link set dev $swp1 nomaster
359 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
364 ip link del dev bond1
373 ip link add name br10 type bridge
374 ip link add name br20 type bridge
375 ip link add name br30 type bridge
376 ip link add link $swp1 name $swp1.10 type vlan id 10
377 ip link add link $swp1 name $swp1.20 type vlan id 20
378 ip link add link $swp1 name $swp1.30 type vlan id 30
379 ip link set dev $swp1.10 master br10
380 ip link set dev $swp1.20 master br20
381 ip link set dev $swp1.30 master br30
385 ip link set dev $swp1.30 nomaster
386 ip link del dev $swp1.20
392 ip link del dev $swp1.30
393 ip link del dev br30
394 ip link del dev br20
395 ip link del dev br10
400 ip link add name bond1 type bond mode 802.3ad
401 ip link set dev $swp1 down
402 ip link set dev $swp2 down
403 ip link set dev $swp1 master bond1
404 ip link set dev $swp2 master bond1
406 ip link add link bond1 name bond1.10 type vlan id 10
407 ip link add link bond1 name bond1.20 type vlan id 20
409 ip link add name br0 type bridge vlan_filtering 1
410 ip link set dev bond1 master br0
412 ip link add name br10 type bridge
413 ip link set dev bond1.10 master br10
415 ip link add name br20 type bridge
416 ip link set dev bond1.20 master br20
427 ip link set dev $swp1 nomaster
429 ip link set dev $swp2 nomaster
433 ip -6 address add 2001:db8:1::1/64 dev $swp1
434 check_err $? "failed to configure ip address on $swp1"
436 ip link add link $swp1 name $swp1.10 type vlan id 10
437 ip -6 address add 2001:db8:10::1/64 dev $swp1.10
438 check_err $? "failed to configure ip address on $swp1.10"
440 ip link add link $swp1 name $swp1.20 type vlan id 20
441 ip -6 address add 2001:db8:20::1/64 dev $swp1.20
442 check_err $? "failed to configure ip address on $swp1.20"
446 ip link del dev $swp1.20
447 ip link del dev $swp1.10
448 ip address flush dev $swp1
450 ip link del dev br20
451 ip link del dev br10
452 ip link del dev br0
453 ip link del dev bond1
464 ip link del dev bond1
468 ip link del dev br20
469 ip link del dev br10
470 ip link del dev br0
478 ip link add name br0 type bridge vlan_filtering 1
479 ip link set dev $swp1 master br0
481 ip link add link br0 name br0.10 type vlan id 10
483 ip -6 address add 2001:db8:1::1/64 dev br0.10
484 ip link add link br0.10 name macvlan0 type macvlan mode private
487 ip link del dev macvlan0
489 ip link add name vrf-test type vrf table 10
490 ip link set dev br0.10 master vrf-test
492 ip link del dev vrf-test
494 ip link add name br-test type bridge
495 ip link set dev br0.10 master br-test &> /dev/null
497 ip link del dev br-test
501 ip link del dev br0
510 ip link add name br0 type bridge
511 ip link set dev $swp1 master br0
521 ip link del dev br0
529 ip -4 address add 192.0.2.1/24 dev $swp1
530 ip -6 address add 2001:db8:1::1/64 dev $swp1
532 ip -4 neigh add 192.0.2.2 lladdr de:ad:be:ef:13:37 nud perm dev $swp1
533 ip -6 neigh add 2001:db8:1::2 lladdr de:ad:be:ef:13:37 nud perm \
537 ip -4 neigh show dev $swp1 192.0.2.2
540 ip -6 neigh show dev $swp1 2001:db8:1::2
545 ip -6 neigh del 2001:db8:1::2 dev $swp1
546 ip -4 neigh del 192.0.2.2 dev $swp1
547 ip -6 address del 2001:db8:1::1/64 dev $swp1
548 ip -4 address del 192.0.2.1/24 dev $swp1
561 ip -4 route add 198.51.100.0/24 vrf v$swp1 \
563 ip -6 route add 2001:db8:2::/64 vrf v$swp1 \
567 ip -4 route show 198.51.100.0/24 vrf v$swp1
570 ip -6 route show 2001:db8:2::/64 vrf v$swp1
573 ip link set dev $swp2 down
577 ip -4 route show 198.51.100.0/24 vrf v$swp1
580 ip -6 route show 2001:db8:2::/64 vrf v$swp1
583 ip link set dev $swp2 up
587 ip -4 route show 198.51.100.0/24 vrf v$swp1
590 ip -6 route show 2001:db8:2::/64 vrf v$swp1
595 ip -6 route del 2001:db8:2::/64 vrf v$swp1
596 ip -4 route del 198.51.100.0/24 vrf v$swp1
612 ip nexthop add id 1 via 192.0.2.3 fdb
615 ip nexthop add id 1 encap mpls 200/300 via 192.0.2.3 dev $swp1
618 ip nexthop add id 1 dev $swp1
619 ip nexthop add id 2 dev $swp1
620 ip nexthop add id 3 via 192.0.2.3 dev $swp1
621 ip nexthop add id 10 group 1/2
624 ip nexthop add id 10 group 3 type resilient buckets 7
627 ip nexthop add id 10 group 3 type resilient buckets 129
630 ip nexthop add id 10 group 1/2 type resilient buckets 32
633 ip nexthop add id 10 group 3 type resilient buckets 32
635 ip nexthop replace id 3 dev $swp1
640 ip nexthop del id 10
641 ip nexthop del id 3
642 ip nexthop del id 2
643 ip nexthop del id 1
658 ip nexthop add id 1 via 192.0.2.2 dev $swp1
659 ip neigh replace 192.0.2.2 lladdr 00:11:22:33:44:55 nud perm \
663 ip nexthop show id 1
666 ip neigh replace 192.0.2.2 nud failed dev $swp1
668 ip nexthop show id 1
671 ip neigh replace 192.0.2.2 lladdr 00:11:22:33:44:55 nud perm \
674 ip nexthop show id 1
677 ip nexthop replace id 1 via 192.0.2.3 dev $swp1
679 ip nexthop show id 1
682 ip nexthop replace id 1 via 192.0.2.2 dev $swp1
684 ip nexthop show id 1
689 ip neigh del 192.0.2.2 dev $swp1
690 ip nexthop del id 1
705 ip nexthop add id 1 via 192.0.2.2 dev $swp1
706 ip nexthop add id 2 via 2001:db8:1::2 dev $swp1
707 ip nexthop add id 10 group 1/2
708 ip neigh replace 192.0.2.2 lladdr 00:11:22:33:44:55 nud perm \
710 ip neigh replace 192.0.2.3 lladdr 00:11:22:33:44:55 nud perm \
712 ip neigh replace 2001:db8:1::2 lladdr 00:11:22:33:44:55 nud perm \
716 ip nexthop show id 1
719 ip nexthop show id 2
722 ip nexthop show id 10
726 ip neigh replace 192.0.2.2 nud failed dev $swp1
728 ip nexthop show id 10
732 ip neigh replace 2001:db8:1::2 nud failed dev $swp1
734 ip nexthop show id 10
738 ip nexthop replace id 1 via 192.0.2.3 dev $swp1
740 ip nexthop show id 10
745 ip neigh del 2001:db8:1::2 dev $swp1
746 ip neigh del 192.0.2.3 dev $swp1
747 ip neigh del 192.0.2.2 dev $swp1
748 ip nexthop del id 10
749 ip nexthop del id 2
750 ip nexthop del id 1
765 ip nexthop add id 1 via 192.0.2.2 dev $swp1
766 ip nexthop add id 2 via 2001:db8:1::2 dev $swp1
767 ip nexthop add id 10 group 1/2 type resilient buckets 32 idle_timer 0
768 ip neigh replace 192.0.2.2 lladdr 00:11:22:33:44:55 nud perm \
770 ip neigh replace 192.0.2.3 lladdr 00:11:22:33:44:55 nud perm \
772 ip neigh replace 2001:db8:1::2 lladdr 00:11:22:33:44:55 nud perm \
776 ip nexthop bucket show nhid 1
779 ip nexthop bucket show nhid 2
783 ip neigh replace 192.0.2.2 nud failed dev $swp1
785 ip nexthop bucket show nhid 1
789 ip neigh replace 2001:db8:1::2 nud failed dev $swp1
791 ip nexthop bucket show nhid 2
795 ip nexthop replace id 1 via 192.0.2.3 dev $swp1
797 ip nexthop bucket show nhid 1
801 ip neigh replace 2001:db8:1::2 lladdr 00:11:22:33:44:55 nud perm \
804 ip nexthop bucket show nhid 2
809 ip neigh del 2001:db8:1::2 dev $swp1
810 ip neigh del 192.0.2.3 dev $swp1
811 ip neigh del 192.0.2.2 dev $swp1
812 ip nexthop del id 10
813 ip nexthop del id 2
814 ip nexthop del id 1
825 ip nexthop add id 1 blackhole
827 ip nexthop show id 1
830 ip nexthop add id 10 group 1
832 ip nexthop show id 10
837 ip nexthop del id 10
838 ip nexthop del id 1
850 ip nexthop add id 1 via 192.0.2.2 dev $swp1
851 ip neigh replace 192.0.2.2 lladdr 00:11:22:33:44:55 nud perm \
853 ip neigh replace 192.0.2.3 lladdr 00:11:22:33:44:55 nud perm \
856 ip route replace 198.51.100.0/24 nhid 1
858 ip route show 198.51.100.0/24
861 ip nexthop replace id 1 via 192.0.2.3 dev $swp1
863 ip route show 198.51.100.0/24
866 ip nexthop replace id 1 via 192.0.2.4 dev $swp1
868 ip route show 198.51.100.0/24
871 ip nexthop replace id 1 via 192.0.2.2 dev $swp1
873 ip route show 198.51.100.0/24
878 ip route del 198.51.100.0/24
879 ip neigh del 192.0.2.3 dev $swp1
880 ip neigh del 192.0.2.2 dev $swp1
881 ip nexthop del id 1
891 ip link add name br1 up type bridge vlan_filtering 0
893 ip link add link $swp1 name $swp1.10 type vlan id 10
894 ip link set dev $swp1.10 master br1
899 ip link set dev $swp1.10 nomaster
900 ip link set dev $swp1 master br1
905 ip link del dev $swp1.10
908 ip link add link $swp1 name $swp1.10 type vlan id 10
913 ip link del dev $swp1.10 &> /dev/null
914 ip link del dev br1