Lines Matching refs:IP
148 IP="ip -netns me"
150 $IP li add veth1 type veth peer name veth2
151 $IP li set veth1 up
152 $IP addr add 172.16.1.1/24 dev veth1
153 $IP -6 addr add 2001:db8:91::1/64 dev veth1
155 $IP li add veth3 type veth peer name veth4
156 $IP li set veth3 up
157 $IP addr add 172.16.2.1/24 dev veth3
158 $IP -6 addr add 2001:db8:92::1/64 dev veth3
160 $IP li set veth2 netns peer up
164 $IP li set veth4 netns peer up
229 out=$($IP nexthop ls ${nharg} 2>/dev/null)
240 out=$($IP route ls match ${pfx} 2>/dev/null)
251 out=$($IP -6 route ls match ${pfx} 2>/dev/null)
269 run_cmd "$IP nexthop add id 52 via 2001:db8:91::2 dev veth1"
277 run_cmd "$IP nexthop get id 52"
281 run_cmd "$IP nexthop del id 52"
289 run_cmd "$IP nexthop add id 52 via 2001:db8:92::3"
293 run_cmd "$IP nexthop add id 53 via 2001:db8:3::3 dev veth1"
297 run_cmd "$IP nexthop add id 53 via 2001:db8:3::3 dev veth1 onlink"
302 run_cmd "$IP -6 nexthop add id 55 via 2001:db8:91::3 dev veth1"
303 run_cmd "$IP nexthop add id 56 via 2001:db8:91::4 dev veth1"
304 run_cmd "$IP nexthop add id 57 via 2001:db8:91::5 dev veth1"
305 run_cmd "$IP li set dev veth1 down"
320 run_cmd "$IP nexthop add id 61 via 2001:db8:91::2 dev veth1"
321 run_cmd "$IP nexthop add id 101 group 61"
325 run_cmd "$IP nexthop get id 101"
330 run_cmd "$IP nexthop del id 101"
334 $IP nexthop flush >/dev/null 2>&1
340 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
341 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
342 run_cmd "$IP nexthop add id 64 via 2001:db8:91::4 dev veth1"
343 run_cmd "$IP nexthop add id 65 dev veth1"
344 run_cmd "$IP nexthop add id 102 group 62/63/64/65"
349 run_cmd "$IP nexthop del id 63"
354 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
355 run_cmd "$IP nexthop add id 103 group 62/63,2/64,3/65,4"
360 run_cmd "$IP nexthop del id 63"
365 run_cmd "$IP li set dev veth1 down"
372 run_cmd "$IP li set dev veth1 up"
374 $IP nexthop flush >/dev/null 2>&1
378 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
379 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
380 run_cmd "$IP nexthop add id 64 via 2001:db8:91::4 dev veth1"
381 run_cmd "$IP nexthop add id 65 via 2001:db8:91::5 dev veth1"
383 run_cmd "$IP nexthop add id 72 via 2001:db8:92::2 dev veth3"
384 run_cmd "$IP nexthop add id 73 via 2001:db8:92::3 dev veth3"
385 run_cmd "$IP nexthop add id 74 via 2001:db8:92::4 dev veth3"
386 run_cmd "$IP nexthop add id 75 via 2001:db8:92::5 dev veth3"
390 run_cmd "$IP nexthop add id 104 group 62"
391 run_cmd "$IP nexthop add id 105 group 62"
395 run_cmd "$IP nexthop flush groups"
399 run_cmd "$IP nexthop add id 105 group 62/63/72/73/64"
400 run_cmd "$IP li set veth1 down"
404 run_cmd "$IP nexthop add id 106 group 105/74"
410 run_cmd "$IP -6 nexthop add id 31 blackhole"
411 run_cmd "$IP nexthop add id 107 group 31"
414 run_cmd "$IP nexthop add id 108 group 31/24"
431 run_cmd "$IP nexthop add id 81 via 2001:db8:91::2 dev veth1"
432 run_cmd "$IP ro add 2001:db8:101::1/128 nhid 81"
435 run_cmd "$IP ro delete 2001:db8:101::1/128 nhid 81"
438 run_cmd "$IP ro add 2001:db8:101::1/128 nhid 81"
442 run_cmd "$IP nexthop add id 82 via 2001:db8:92::2 dev veth3"
443 run_cmd "$IP nexthop add id 122 group 81/82"
444 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 122"
451 run_cmd "$IP -6 nexthop add id 83 blackhole"
452 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 83"
456 run_cmd "$IP nexthop replace id 83 via 2001:db8:91::2 dev veth1"
460 run_cmd "$IP -6 nexthop replace id 83 blackhole"
464 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 122"
467 run_cmd "$IP nexthop replace id 122 group 83"
471 run_cmd "$IP nexthop replace id 122 group 81/82"
481 run_cmd "$IP -6 nexthop add id 85 dev veth1"
482 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 85"
486 run_cmd "$IP nexthop add id 123 group 81/85"
487 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 123"
494 run_cmd "$IP ro delete 2001:db8:101::1/128"
495 run_cmd "$IP nexthop add id 84 via 172.16.1.1 dev veth1"
496 run_cmd "$IP ro add 2001:db8:101::1/128 nhid 84"
499 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 81"
500 run_cmd "$IP nexthop replace id 81 via 172.16.1.1 dev veth1"
503 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 122"
504 run_cmd "$IP nexthop replace id 81 via 172.16.1.1 dev veth1"
507 $IP nexthop flush >/dev/null 2>&1
512 run_cmd "$IP nexthop add id 86 via 2001:db8:91::2 dev veth1"
513 run_cmd "$IP ro add 2001:db8:101::1/128 nhid 81"
533 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
541 run_cmd "$IP nexthop get id 12"
545 run_cmd "$IP nexthop del id 12"
553 run_cmd "$IP nexthop add id 12 via 172.16.2.3"
557 run_cmd "$IP nexthop add id 13 via 172.16.3.2 dev veth1"
561 run_cmd "$IP nexthop add id 13 via 172.16.3.2 dev veth1 onlink"
566 run_cmd "$IP nexthop add id 15 via 172.16.1.3 dev veth1"
567 run_cmd "$IP nexthop add id 16 via 172.16.1.4 dev veth1"
568 run_cmd "$IP nexthop add id 17 via 172.16.1.5 dev veth1"
569 run_cmd "$IP li set dev veth1 down"
584 run_cmd "$IP nexthop add id 11 via 172.16.1.2 dev veth1"
585 run_cmd "$IP nexthop add id 101 group 11"
589 run_cmd "$IP nexthop get id 101"
594 run_cmd "$IP nexthop del id 101"
598 $IP nexthop flush >/dev/null 2>&1
602 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
603 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
604 run_cmd "$IP nexthop add id 14 via 172.16.1.4 dev veth1"
605 run_cmd "$IP nexthop add id 15 via 172.16.1.5 dev veth1"
606 run_cmd "$IP nexthop add id 102 group 12/13/14/15"
611 run_cmd "$IP nexthop del id 13"
616 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
617 run_cmd "$IP nexthop add id 103 group 12/13,2/14,3/15,4"
622 run_cmd "$IP nexthop del id 13"
627 run_cmd "$IP li set dev veth1 down"
634 run_cmd "$IP li set dev veth1 up"
636 $IP nexthop flush >/dev/null 2>&1
640 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
641 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
642 run_cmd "$IP nexthop add id 14 via 172.16.1.4 dev veth1"
643 run_cmd "$IP nexthop add id 15 via 172.16.1.5 dev veth1"
645 run_cmd "$IP nexthop add id 22 via 172.16.2.2 dev veth3"
646 run_cmd "$IP nexthop add id 23 via 172.16.2.3 dev veth3"
647 run_cmd "$IP nexthop add id 24 via 172.16.2.4 dev veth3"
648 run_cmd "$IP nexthop add id 25 via 172.16.2.5 dev veth3"
652 run_cmd "$IP nexthop add id 104 group 12"
653 run_cmd "$IP nexthop add id 105 group 12"
657 run_cmd "$IP nexthop flush groups"
661 run_cmd "$IP nexthop add id 105 group 12/13/22/23/14"
662 run_cmd "$IP li set veth1 down"
666 run_cmd "$IP nexthop add id 106 group 105/24"
672 run_cmd "$IP nexthop add id 31 blackhole"
673 run_cmd "$IP nexthop add id 107 group 31"
676 run_cmd "$IP nexthop add id 108 group 31/24"
686 run_cmd "$IP nexthop add id 11 via ${lladdr} dev veth1"
688 run_cmd "$IP ro add 172.16.101.1/32 nhid 11"
693 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
694 run_cmd "$IP nexthop add id 101 group 11/12"
696 run_cmd "$IP ro replace 172.16.101.1/32 nhid 101"
701 run_cmd "$IP ro replace 172.16.101.1/32 via inet6 ${lladdr} dev veth1"
705 run_cmd "$IP ro replace 172.16.101.1/32 via inet6 2001:db8:50::1 dev veth1"
718 run_cmd "$IP nexthop add id 21 via 172.16.1.2 dev veth1"
719 run_cmd "$IP ro add 172.16.101.1/32 nhid 21"
723 run_cmd "$IP ro delete 172.16.101.1/32 nhid 21"
729 run_cmd "$IP nexthop add id 22 via 172.16.1.2 dev veth1"
730 run_cmd "$IP ro add 172.16.101.1/32 nhid 22 scope host"
733 run_cmd "$IP nexthop replace id 22 dev veth3"
734 run_cmd "$IP ro add 172.16.101.1/32 nhid 22 scope host"
735 run_cmd "$IP nexthop replace id 22 via 172.16.2.2 dev veth3"
741 run_cmd "$IP nexthop replace id 21 via 172.16.1.2 dev veth1"
742 run_cmd "$IP ro replace 172.16.101.1/32 nhid 21"
746 run_cmd "$IP nexthop replace id 22 via 172.16.2.2 dev veth3"
747 run_cmd "$IP nexthop add id 122 group 21/22"
748 run_cmd "$IP ro replace 172.16.101.1/32 nhid 122"
755 run_cmd "$IP nexthop add id 23 blackhole"
756 run_cmd "$IP ro replace 172.16.101.1/32 nhid 23"
760 run_cmd "$IP nexthop replace id 23 via 172.16.1.2 dev veth1"
764 run_cmd "$IP nexthop replace id 23 blackhole"
768 run_cmd "$IP ro replace 172.16.101.1/32 nhid 122"
771 run_cmd "$IP nexthop replace id 122 group 23"
775 run_cmd "$IP nexthop replace id 122 group 21/22"
785 run_cmd "$IP nexthop add id 85 dev veth1"
786 run_cmd "$IP ro replace 172.16.101.1/32 nhid 85"
790 run_cmd "$IP nexthop add id 123 group 21/85"
791 run_cmd "$IP ro replace 172.16.101.1/32 nhid 123"
800 run_cmd "$IP nexthop add id 24 via ${lladdr} dev veth1"
802 run_cmd "$IP ro replace 172.16.101.1/32 nhid 24"
806 $IP neigh sh | grep -q "${lladdr} dev veth1"
809 $IP neigh sh | grep 'dev veth1'
812 $IP neigh sh | grep -q "172.16.101.1 dev eth1"
815 $IP neigh sh | grep 'dev veth1'
819 run_cmd "$IP nexthop add id 25 via 172.16.1.2 dev veth1"
820 run_cmd "$IP nexthop add id 101 group 24/25"
822 run_cmd "$IP ro replace 172.16.101.1/32 nhid 101"
830 run_cmd "$IP ro replace 172.16.101.1/32 via inet6 ${lladdr} dev veth1"
834 $IP neigh sh | grep -q "${lladdr} dev veth1"
837 $IP neigh sh | grep 'dev veth1'
840 $IP neigh sh | grep -q "172.16.101.1 dev eth1"
843 $IP neigh sh | grep 'dev veth1'
849 run_cmd "$IP nexthop add id 51 encap mpls 101 via 172.16.1.2 dev veth1"
854 run_cmd "$IP nexthop add id 52 encap mpls 102 via inet6 2001:db8:91::2 dev veth1"
865 run_cmd "$IP nexthop ls"
868 run_cmd "$IP nexthop get id 1"
872 run_cmd "$IP nexthop add id 1"
876 $IP li set veth1 down
877 run_cmd "$IP nexthop add id 1 dev veth1"
881 $IP li set veth1 up
883 run_cmd "$IP nexthop add id 1 dev veth1"
888 run_cmd "$IP nexthop add id 1 dev veth1"
892 run_cmd "$IP nexthop add id 1 dev veth3"
896 run_cmd "$IP nexthop add id 2 blackhole"
900 run_cmd "$IP nexthop replace id 2 blackhole dev veth1"
907 run_cmd "$IP nexthop add id 101 group 1"
910 run_cmd "$IP nexthop add id 102 group 2"
914 run_cmd "$IP nexthop add id 103 group 1/2"
918 run_cmd "$IP nexthop replace id 2 dev veth3"
919 run_cmd "$IP nexthop replace id 102 group 1/2"
920 run_cmd "$IP nexthop replace id 2 blackhole"
924 run_cmd "$IP nexthop add id 103 group 12"
928 run_cmd "$IP nexthop add id 103 group 1/1"
932 run_cmd "$IP nexthop replace id 2 group 1"
936 run_cmd "$IP nexthop replace id 101 dev veth1"
940 run_cmd "$IP nexthop add id 104 group 1 dev veth1"
944 run_cmd "$IP nexthop add id 105 blackhole proto 99"
945 run_cmd "$IP nexthop add id 106 blackhole proto 100"
946 run_cmd "$IP nexthop add id 107 blackhole proto 99"
947 run_cmd "$IP nexthop flush proto 99"
951 run_cmd "$IP nexthop flush proto 100"
954 run_cmd "$IP nexthop flush proto 100"
957 run_cmd "$IP nexthop add id 104 group 1 blackhole"
960 $IP nexthop flush >/dev/null 2>&1
1032 none) IP="ip -netns peer"; setup; exit 0;;