Lines Matching +full:5 +full:ns
7 # ARP/NS messages from the first host are suppressed on the VXLAN port when
122 local ns=$1; shift
129 pkts=$(tc -n $ns -j -s filter show $id \
140 local ns=$1; shift
142 ip netns exec $ns sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1
143 ip netns exec $ns sysctl -qw net.ipv6.conf.default.ignore_routes_with_linkdown=1
144 ip netns exec $ns sysctl -qw net.ipv6.conf.all.accept_dad=0
145 ip netns exec $ns sysctl -qw net.ipv6.conf.default.accept_dad=0
150 local ns
153 for ns in $h1 $h2 $sw1 $sw2; do
154 setup_topo_ns $ns
164 local ns=$1; shift
170 ip -n $ns link set dev eth0 up
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
174 ip -n $ns address add $v4addr1 dev eth0.10
175 ip -n $ns address add $v4addr2 dev eth0.20
176 ip -n $ns address add $v6addr1 dev eth0.10
177 ip -n $ns address add $v6addr2 dev eth0.20
182 local ns=$h1
188 setup_host_common $ns $v4addr1 $v4addr2 $v6addr1 $v6addr2
193 local ns=$h2
199 setup_host_common $ns $v4addr1 $v4addr2 $v6addr1 $v6addr2
204 local ns=$1; shift
210 ip -n $ns address add $local_addr/32 dev lo
212 ip -n $ns link set dev veth0 up
213 ip -n $ns address add $veth_addr/28 dev veth0
214 ip -n $ns route add default via $gw_addr
216 ip -n $ns link add name br0 up type bridge vlan_filtering 1 \
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
225 ip -n $ns link set dev swp1 up master br0
226 bridge -n $ns vlan add vid 10 dev swp1
227 bridge -n $ns vlan add vid 20 dev swp1
229 ip -n $ns link add name vx0 up master br0 type vxlan \
231 bridge -n $ns fdb add 00:00:00:00:00:00 dev vx0 self static \
233 bridge -n $ns fdb add 00:00:00:00:00:00 dev vx0 self static \
235 bridge -n $ns link set dev vx0 vlan_tunnel on learning off
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
246 local ns=$sw1
252 setup_sw_common $ns $local_addr $remote_addr $veth_addr $gw_addr
257 local ns=$sw2
263 setup_sw_common $ns $local_addr $remote_addr $veth_addr $gw_addr
276 sleep 5
305 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
316 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
327 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
337 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
347 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
361 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
371 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
373 tc_check_packets $sw1 "dev vx0 egress" 101 5
400 echo "Per-port NS suppression - VLAN $vid"
406 # Initial state - check that NS messages are not suppressed and that ND
411 log_test $? 0 "NS suppression"
422 log_test $? 0 "NS suppression"
433 log_test $? 0 "NS suppression"
435 # Install a neighbor on the matching SVI interface and check that NS
443 log_test $? 0 "NS suppression"
445 # Take the second host down and check that NS messages are suppressed
453 log_test $? 0 "NS suppression"
458 # Disable neighbor suppression and check that NS messages are no longer
467 log_test $? 0 "NS suppression"
469 # Take the second host down and check that NS messages are not
476 tc_check_packets $sw1 "dev vx0 egress" 101 5
477 log_test $? 0 "NS suppression"
529 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip1 -I eth0.$vid1 $tip1"
531 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip2 -I eth0.$vid2 $tip2"
547 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip1 -I eth0.$vid1 $tip1"
549 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip2 -I eth0.$vid2 $tip2"
563 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip1 -I eth0.$vid1 $tip1"
565 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip2 -I eth0.$vid2 $tip2"
579 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip1 -I eth0.$vid1 $tip1"
581 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip2 -I eth0.$vid2 $tip2"
595 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip1 -I eth0.$vid1 $tip1"
597 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip2 -I eth0.$vid2 $tip2"
602 tc_check_packets $sw1 "dev vx0 egress" 102 5
616 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip1 -I eth0.$vid1 $tip1"
618 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip2 -I eth0.$vid2 $tip2"
623 tc_check_packets $sw1 "dev vx0 egress" 102 5
640 echo "Per-{Port, VLAN} NS suppression"
654 # Enable per-{Port, VLAN} neighbor suppression and check that NS
666 log_test $? 0 "NS suppression (VLAN $vid1)"
668 log_test $? 0 "NS suppression (VLAN $vid2)"
671 # VLAN NS messages are suppressed.
684 log_test $? 0 "NS suppression (VLAN $vid1)"
686 log_test $? 0 "NS suppression (VLAN $vid2)"
700 log_test $? 0 "NS suppression (VLAN $vid1)"
702 log_test $? 0 "NS suppression (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
732 log_test $? 0 "NS suppression (VLAN $vid1)"
733 tc_check_packets $sw1 "dev vx0 egress" 102 5
734 log_test $? 0 "NS suppression (VLAN $vid2)"
737 # suppression on the port and check that on both VLANs NS messages are
753 log_test $? 0 "NS suppression (VLAN $vid1)"
754 tc_check_packets $sw1 "dev vx0 egress" 102 5
755 log_test $? 0 "NS suppression (VLAN $vid2)"