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
205 ip link add link $swp1 name $swp1.1 type vlan id 1
210 ip link del dev $swp1.1
220 ip link add name bond1 type bond mode 802.3ad
222 ip link add name br0 type bridge vlan_filtering 1
223 ip link set dev bond1 master br0
225 ip link set dev $swp1 down
226 ip link set dev $swp1 master bond1 &> /dev/null
231 ip -6 address add 2001:db8:1::1/64 dev $swp1
232 ip -6 address del 2001:db8:1::1/64 dev $swp1
236 ip link del dev br0
237 ip link del dev bond1
246 ip link add name br0 type bridge vlan_filtering 1
247 ip link set dev $swp1 master br0
250 ip link add link $swp1 name $swp1.10 type vlan id 10 &> /dev/null
254 ip link add link $swp1 name $swp1.10 type vlan id 10
261 ip link del dev $swp1.10
262 ip link del dev br0
272 ip link add name br0 type bridge vlan_filtering 1
273 ip link set dev $swp1 master br0
275 ip link set dev $swp1 up
276 ip link set dev br0 up
278 ip link add link br0 name br0.10 up type vlan id 10
279 ip -6 address add 2001:db8:1::1/64 dev br0.10
282 ip -6 route get fibmatch 2001:db8:1::2 dev br0.10
287 ip -6 route get fibmatch 2001:db8:1::2 dev br0.10
292 ip -6 route get fibmatch 2001:db8:1::2 dev br0.10
295 ip link set dev $swp1 nomaster
297 ip -6 route get fibmatch 2001:db8:1::2 dev br0.10
302 ip link del dev br0.10
303 ip link set dev $swp1 down
304 ip link del dev br0
315 ip link add name bond1 type bond mode 802.3ad
316 ip link set dev $swp1 down
317 ip link set dev $swp2 down
318 ip link set dev $swp1 master bond1
319 ip link set dev $swp2 master bond1
321 ip link set dev bond1 up
322 ip link add link bond1 name bond1.10 up type vlan id 10
323 ip -6 address add 2001:db8:1::1/64 dev bond1
324 ip -6 address add 2001:db8:2::1/64 dev bond1.10
327 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
330 ip -6 route get fibmatch 2001:db8:2::2 dev bond1.10
333 ip link set dev $swp1 nomaster
335 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
338 ip -6 route get fibmatch 2001:db8:2::2 dev bond1.10
341 ip link set dev $swp2 nomaster
343 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
346 ip -6 route get fibmatch 2001:db8:2::2 dev bond1.10
351 ip link del dev bond1.10
352 ip link del dev bond1
363 ip link add name bond1 type bond mode 802.3ad
364 ip link set dev $swp1 down
365 ip link set dev $swp2 down
366 ip link set dev $swp1 master bond1
367 ip link set dev $swp2 master bond1
369 ip link set dev bond1 up
370 ip -6 address add 2001:db8:1::1/64 dev bond1
373 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
376 ip link set dev $swp1 nomaster
378 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
381 ip link set dev $swp1 master bond1
382 ip link set dev $swp2 nomaster
384 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
387 ip link set dev $swp1 nomaster
389 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
394 ip link del dev bond1
403 ip link add name br10 type bridge
404 ip link add name br20 type bridge
405 ip link add name br30 type bridge
406 ip link add link $swp1 name $swp1.10 type vlan id 10
407 ip link add link $swp1 name $swp1.20 type vlan id 20
408 ip link add link $swp1 name $swp1.30 type vlan id 30
409 ip link set dev $swp1.10 master br10
410 ip link set dev $swp1.20 master br20
411 ip link set dev $swp1.30 master br30
415 ip link set dev $swp1.30 nomaster
416 ip link del dev $swp1.20
422 ip link del dev $swp1.30
423 ip link del dev br30
424 ip link del dev br20
425 ip link del dev br10
430 ip link add name bond1 type bond mode 802.3ad
431 ip link set dev $swp1 down
432 ip link set dev $swp2 down
433 ip link set dev $swp1 master bond1
434 ip link set dev $swp2 master bond1
436 ip link add link bond1 name bond1.10 type vlan id 10
437 ip link add link bond1 name bond1.20 type vlan id 20
439 ip link add name br0 type bridge vlan_filtering 1
440 ip link set dev bond1 master br0
442 ip link add name br10 type bridge
443 ip link set dev bond1.10 master br10
445 ip link add name br20 type bridge
446 ip link set dev bond1.20 master br20
457 ip link set dev $swp1 nomaster
459 ip link set dev $swp2 nomaster
463 ip -6 address add 2001:db8:1::1/64 dev $swp1
464 check_err $? "failed to configure ip address on $swp1"
466 ip link add link $swp1 name $swp1.10 type vlan id 10
467 ip -6 address add 2001:db8:10::1/64 dev $swp1.10
468 check_err $? "failed to configure ip address on $swp1.10"
470 ip link add link $swp1 name $swp1.20 type vlan id 20
471 ip -6 address add 2001:db8:20::1/64 dev $swp1.20
472 check_err $? "failed to configure ip address on $swp1.20"
476 ip link del dev $swp1.20
477 ip link del dev $swp1.10
478 ip address flush dev $swp1
480 ip link del dev br20
481 ip link del dev br10
482 ip link del dev br0
483 ip link del dev bond1
494 ip link del dev bond1
498 ip link del dev br20
499 ip link del dev br10
500 ip link del dev br0
508 ip link add name br0 type bridge vlan_filtering 1
509 ip link set dev $swp1 master br0
511 ip link add link br0 name br0.10 type vlan id 10
512 ip link add link br0.10 name macvlan0 \
516 ip -6 address add 2001:db8:1::1/64 dev br0.10
517 ip link add link br0.10 name macvlan0 type macvlan mode private
520 ip link del dev macvlan0
522 ip link add name vrf-test type vrf table 10
523 ip link set dev br0.10 master vrf-test
525 ip link del dev vrf-test
527 ip link add name br-test type bridge
528 ip link set dev br0.10 master br-test &> /dev/null
530 ip link del dev br-test
534 ip link del dev br0
543 ip link add name br0 type bridge
544 ip link set dev $swp1 master br0
554 ip link del dev br0
562 ip -4 address add 192.0.2.1/24 dev $swp1
563 ip -6 address add 2001:db8:1::1/64 dev $swp1
565 ip -4 neigh add 192.0.2.2 lladdr de:ad:be:ef:13:37 nud perm dev $swp1
566 ip -6 neigh add 2001:db8:1::2 lladdr de:ad:be:ef:13:37 nud perm \
570 ip -4 neigh show dev $swp1 192.0.2.2
573 ip -6 neigh show dev $swp1 2001:db8:1::2
578 ip -6 neigh del 2001:db8:1::2 dev $swp1
579 ip -4 neigh del 192.0.2.2 dev $swp1
580 ip -6 address del 2001:db8:1::1/64 dev $swp1
581 ip -4 address del 192.0.2.1/24 dev $swp1
594 ip -4 route add 198.51.100.0/24 vrf v$swp1 \
596 ip -6 route add 2001:db8:2::/64 vrf v$swp1 \
600 ip -4 route show 198.51.100.0/24 vrf v$swp1
603 ip -6 route show 2001:db8:2::/64 vrf v$swp1
606 ip link set dev $swp2 down
610 ip -4 route show 198.51.100.0/24 vrf v$swp1
613 ip -6 route show 2001:db8:2::/64 vrf v$swp1
616 ip link set dev $swp2 up
620 ip -4 route show 198.51.100.0/24 vrf v$swp1
623 ip -6 route show 2001:db8:2::/64 vrf v$swp1
628 ip -6 route del 2001:db8:2::/64 vrf v$swp1
629 ip -4 route del 198.51.100.0/24 vrf v$swp1
645 ip nexthop add id 1 via 192.0.2.3 fdb
648 ip nexthop add id 1 encap mpls 200/300 via 192.0.2.3 dev $swp1
651 ip nexthop add id 1 dev $swp1
652 ip nexthop add id 2 dev $swp1
653 ip nexthop add id 3 via 192.0.2.3 dev $swp1
654 ip nexthop add id 10 group 1/2
657 ip nexthop add id 10 group 3 type resilient buckets 7
660 ip nexthop add id 10 group 3 type resilient buckets 129
663 ip nexthop add id 10 group 1/2 type resilient buckets 32
666 ip nexthop add id 10 group 3 type resilient buckets 32
668 ip nexthop replace id 3 dev $swp1
673 ip nexthop del id 10
674 ip nexthop del id 3
675 ip nexthop del id 2
676 ip nexthop del id 1
691 ip nexthop add id 1 via 192.0.2.2 dev $swp1
692 ip neigh replace 192.0.2.2 lladdr 00:11:22:33:44:55 nud perm \
696 ip nexthop show id 1
699 ip neigh replace 192.0.2.2 nud failed dev $swp1
701 ip nexthop show id 1
704 ip neigh replace 192.0.2.2 lladdr 00:11:22:33:44:55 nud perm \
707 ip nexthop show id 1
710 ip nexthop replace id 1 via 192.0.2.3 dev $swp1
712 ip nexthop show id 1
715 ip nexthop replace id 1 via 192.0.2.2 dev $swp1
717 ip nexthop show id 1
722 ip neigh del 192.0.2.2 dev $swp1
723 ip nexthop del id 1
738 ip nexthop add id 1 via 192.0.2.2 dev $swp1
739 ip nexthop add id 2 via 2001:db8:1::2 dev $swp1
740 ip nexthop add id 10 group 1/2
741 ip neigh replace 192.0.2.2 lladdr 00:11:22:33:44:55 nud perm \
743 ip neigh replace 192.0.2.3 lladdr 00:11:22:33:44:55 nud perm \
745 ip neigh replace 2001:db8:1::2 lladdr 00:11:22:33:44:55 nud perm \
749 ip nexthop show id 1
752 ip nexthop show id 2
755 ip nexthop show id 10
759 ip neigh replace 192.0.2.2 nud failed dev $swp1
761 ip nexthop show id 10
765 ip neigh replace 2001:db8:1::2 nud failed dev $swp1
767 ip nexthop show id 10
771 ip nexthop replace id 1 via 192.0.2.3 dev $swp1
773 ip nexthop show id 10
778 ip neigh del 2001:db8:1::2 dev $swp1
779 ip neigh del 192.0.2.3 dev $swp1
780 ip neigh del 192.0.2.2 dev $swp1
781 ip nexthop del id 10
782 ip nexthop del id 2
783 ip nexthop del id 1
798 ip nexthop add id 1 via 192.0.2.2 dev $swp1
799 ip nexthop add id 2 via 2001:db8:1::2 dev $swp1
800 ip nexthop add id 10 group 1/2 type resilient buckets 32 idle_timer 0
801 ip neigh replace 192.0.2.2 lladdr 00:11:22:33:44:55 nud perm \
803 ip neigh replace 192.0.2.3 lladdr 00:11:22:33:44:55 nud perm \
805 ip neigh replace 2001:db8:1::2 lladdr 00:11:22:33:44:55 nud perm \
809 ip nexthop bucket show nhid 1
812 ip nexthop bucket show nhid 2
816 ip neigh replace 192.0.2.2 nud failed dev $swp1
818 ip nexthop bucket show nhid 1
822 ip neigh replace 2001:db8:1::2 nud failed dev $swp1
824 ip nexthop bucket show nhid 2
828 ip nexthop replace id 1 via 192.0.2.3 dev $swp1
830 ip nexthop bucket show nhid 1
834 ip neigh replace 2001:db8:1::2 lladdr 00:11:22:33:44:55 nud perm \
837 ip nexthop bucket show nhid 2
842 ip neigh del 2001:db8:1::2 dev $swp1
843 ip neigh del 192.0.2.3 dev $swp1
844 ip neigh del 192.0.2.2 dev $swp1
845 ip nexthop del id 10
846 ip nexthop del id 2
847 ip nexthop del id 1
858 ip nexthop add id 1 blackhole
860 ip nexthop show id 1
863 ip nexthop add id 10 group 1
865 ip nexthop show id 10
870 ip nexthop del id 10
871 ip nexthop del id 1
883 ip nexthop add id 1 via 192.0.2.2 dev $swp1
884 ip neigh replace 192.0.2.2 lladdr 00:11:22:33:44:55 nud perm \
886 ip neigh replace 192.0.2.3 lladdr 00:11:22:33:44:55 nud perm \
889 ip route replace 198.51.100.0/24 nhid 1
891 ip route show 198.51.100.0/24
894 ip nexthop replace id 1 via 192.0.2.3 dev $swp1
896 ip route show 198.51.100.0/24
899 ip nexthop replace id 1 via 192.0.2.4 dev $swp1
901 ip route show 198.51.100.0/24
904 ip nexthop replace id 1 via 192.0.2.2 dev $swp1
906 ip route show 198.51.100.0/24
911 ip route del 198.51.100.0/24
912 ip neigh del 192.0.2.3 dev $swp1
913 ip neigh del 192.0.2.2 dev $swp1
914 ip nexthop del id 1