Lines Matching full:vlan

171 	ip -n $ns link add link eth0 name eth0.10 up type vlan id 10
172 ip -n $ns link add link eth0 name eth0.20 up type vlan id 20
219 ip -n $ns link add link br0 name br0.10 up type vlan id 10
220 bridge -n $ns vlan add vid 10 dev br0 self
222 ip -n $ns link add link br0 name br0.20 up type vlan id 20
223 bridge -n $ns vlan add vid 20 dev br0 self
226 bridge -n $ns vlan add vid 10 dev swp1
227 bridge -n $ns vlan add vid 20 dev swp1
237 bridge -n $ns vlan add vid 10 dev vx0
238 bridge -n $ns vlan add vid 10 dev vx0 tunnel_info id 10010
240 bridge -n $ns vlan add vid 20 dev vx0
241 bridge -n $ns vlan add vid 20 dev vx0 tunnel_info id 10020
297 echo "Per-port ARP suppression - VLAN $vid"
324 run_cmd "bridge -n $sw1 fdb replace $h2_mac dev vx0 master static vlan $vid"
400 echo "Per-port NS suppression - VLAN $vid"
427 run_cmd "bridge -n $sw1 fdb replace $h2_mac dev vx0 master static vlan $vid"
509 echo "Per-{Port, VLAN} ARP suppression"
518 run_cmd "bridge -n $sw1 fdb replace $h2_mac1 dev vx0 master static vlan $vid1"
519 run_cmd "bridge -n $sw1 fdb replace $h2_mac2 dev vx0 master static vlan $vid2"
523 # Enable per-{Port, VLAN} neighbor suppression and check that ARP
530 log_test $? 0 "arping (VLAN $vid1)"
532 log_test $? 0 "arping (VLAN $vid2)"
535 log_test $? 0 "ARP suppression (VLAN $vid1)"
537 log_test $? 0 "ARP suppression (VLAN $vid2)"
539 # Enable neighbor suppression on VLAN 10 and check that only on this
540 # VLAN ARP requests are suppressed.
541 run_cmd "bridge -n $sw1 vlan set vid $vid1 dev vx0 neigh_suppress on"
542 run_cmd "bridge -n $sw1 -d vlan show dev vx0 vid $vid1 | grep \"neigh_suppress on\""
543 log_test $? 0 "\"neigh_suppress\" is on (VLAN $vid1)"
544 run_cmd "bridge -n $sw1 -d vlan show dev vx0 vid $vid2 | grep \"neigh_suppress off\""
545 log_test $? 0 "\"neigh_suppress\" is off (VLAN $vid2)"
548 log_test $? 0 "arping (VLAN $vid1)"
550 log_test $? 0 "arping (VLAN $vid2)"
553 log_test $? 0 "ARP suppression (VLAN $vid1)"
555 log_test $? 0 "ARP suppression (VLAN $vid2)"
564 log_test $? 0 "arping (VLAN $vid1)"
566 log_test $? 0 "arping (VLAN $vid2)"
569 log_test $? 0 "ARP suppression (VLAN $vid1)"
571 log_test $? 0 "ARP suppression (VLAN $vid2)"
580 log_test $? 0 "arping (VLAN $vid1)"
582 log_test $? 0 "arping (VLAN $vid2)"
585 log_test $? 0 "ARP suppression (VLAN $vid1)"
587 log_test $? 0 "ARP suppression (VLAN $vid2)"
589 # Disable neighbor suppression on VLAN 10 and check that ARP requests
590 # are no longer suppressed on this VLAN.
591 run_cmd "bridge -n $sw1 vlan set vid $vid1 dev vx0 neigh_suppress off"
592 run_cmd "bridge -n $sw1 -d vlan show dev vx0 vid $vid1 | grep \"neigh_suppress off\""
593 log_test $? 0 "\"neigh_suppress\" is off (VLAN $vid1)"
596 log_test $? 0 "arping (VLAN $vid1)"
598 log_test $? 0 "arping (VLAN $vid2)"
601 log_test $? 0 "ARP suppression (VLAN $vid1)"
603 log_test $? 0 "ARP suppression (VLAN $vid2)"
605 # Disable per-{Port, VLAN} neighbor suppression, enable neighbor
617 log_test $? 0 "arping (VLAN $vid1)"
619 log_test $? 0 "arping (VLAN $vid2)"
622 log_test $? 0 "ARP suppression (VLAN $vid1)"
624 log_test $? 0 "ARP suppression (VLAN $vid2)"
640 echo "Per-{Port, VLAN} NS suppression"
649 run_cmd "bridge -n $sw1 fdb replace $h2_mac1 dev vx0 master static vlan $vid1"
650 run_cmd "bridge -n $sw1 fdb replace $h2_mac2 dev vx0 master static vlan $vid2"
654 # Enable per-{Port, VLAN} neighbor suppression and check that NS
661 log_test $? 0 "ndisc6 (VLAN $vid1)"
663 log_test $? 0 "ndisc6 (VLAN $vid2)"
666 log_test $? 0 "NS suppression (VLAN $vid1)"
668 log_test $? 0 "NS suppression (VLAN $vid2)"
670 # Enable neighbor suppression on VLAN 10 and check that only on this
671 # VLAN NS messages are suppressed.
672 run_cmd "bridge -n $sw1 vlan set vid $vid1 dev vx0 neigh_suppress on"
673 run_cmd "bridge -n $sw1 -d vlan show dev vx0 vid $vid1 | grep \"neigh_suppress on\""
674 log_test $? 0 "\"neigh_suppress\" is on (VLAN $vid1)"
675 run_cmd "bridge -n $sw1 -d vlan show dev vx0 vid $vid2 | grep \"neigh_suppress off\""
676 log_test $? 0 "\"neigh_suppress\" is off (VLAN $vid2)"
679 log_test $? 0 "ndisc6 (VLAN $vid1)"
681 log_test $? 0 "ndisc6 (VLAN $vid2)"
684 log_test $? 0 "NS suppression (VLAN $vid1)"
686 log_test $? 0 "NS suppression (VLAN $vid2)"
695 log_test $? 0 "ndisc6 (VLAN $vid1)"
697 log_test $? 0 "ndisc6 (VLAN $vid2)"
700 log_test $? 0 "NS suppression (VLAN $vid1)"
702 log_test $? 0 "NS suppression (VLAN $vid2)"
711 log_test $? 0 "ndisc6 (VLAN $vid1)"
713 log_test $? 0 "ndisc6 (VLAN $vid2)"
716 log_test $? 0 "NS suppression (VLAN $vid1)"
718 log_test $? 0 "NS suppression (VLAN $vid2)"
720 # Disable neighbor suppression on VLAN 10 and check that NS messages
721 # are no longer suppressed on this VLAN.
722 run_cmd "bridge -n $sw1 vlan set vid $vid1 dev vx0 neigh_suppress off"
723 run_cmd "bridge -n $sw1 -d vlan show dev vx0 vid $vid1 | grep \"neigh_suppress off\""
724 log_test $? 0 "\"neigh_suppress\" is off (VLAN $vid1)"
727 log_test $? 0 "ndisc6 (VLAN $vid1)"
729 log_test $? 0 "ndisc6 (VLAN $vid2)"
732 log_test $? 0 "NS suppression (VLAN $vid1)"
734 log_test $? 0 "NS suppression (VLAN $vid2)"
736 # Disable per-{Port, VLAN} neighbor suppression, enable neighbor
748 log_test $? 0 "ndisc6 (VLAN $vid1)"
750 log_test $? 0 "ndisc6 (VLAN $vid2)"
753 log_test $? 0 "NS suppression (VLAN $vid1)"
755 log_test $? 0 "NS suppression (VLAN $vid2)"
830 echo "SKIP: iproute2 bridge too old, missing per-VLAN neighbor suppression support"