HSR VLAN Tests Enable HSR offloads on all 3 boards Test ping/iperf between a pair of Nodes (A ↔ B, B ↔C, A ↔ C) on both direct and forwarding path by plugging and unplugging appropriate LAN cables 1) Add multiple VLAN interfaces on Node A and Node C On Node A # ip link add link hsr0 name hsr0.2 type vlan id 2 # ifconfig hsr0.2 192.168.20.10 # ip link add link hsr0 name hsr0.3 type vlan id 3 # ifconfig hsr0.3 192.168.30.10 # ip link add link hsr0 name hsr0.4 type vlan id 4 # ifconfig hsr0.4 192.168.40.10 # ip link add link hsr0 name hsr0.5 type vlan id 5 # ifconfig hsr0.5 192.168.50.10 On Node C # ip link add link hsr0 name hsr0.2 type vlan id 2 # ifconfig hsr0.2 192.168.20.50 # ip link add link hsr0 name hsr0.3 type vlan id 3 # ifconfig hsr0.3 192.168.30.50 # ip link add link hsr0 name hsr0.4 type vlan id 4 # ifconfig hsr0.4 192.168.40.50 # ip link add link hsr0 name hsr0.5 type vlan id 5 # ifconfig hsr0.5 192.168.50.50 2) Now ping on the VLAN and non VLAN interfaces on Node A and Node C; ping 192.168.10.50 or ping 192.168.20.50 or ping 192.168.30.50 or ping 192.168.40.50 or ping 192.168.50.50 While the ping is executing, disconnect LAN cable between Node A and C; Node B would forward packets even if it is not part of VLAN domains Repeat the test with Node C as iperf Server and Node A iperf client for both VLAN and non VLAN interfaces 3) Add few VLAN interfaces on Node B # ip link add link hsr0 name hsr0.2 type vlan id 2 # ifconfig hsr0.2 192.168.20.30 # ip link add link hsr0 name hsr0.4 type vlan id 4 # ifconfig hsr0.4 192.168.40.30 Ping VLAN (VID = 2 and VID = 4)and non VLAN interfaces between Node A and Node B; Ping on both direct and forward path should be functional Now ping VLAN (VID = 3, VID = 5) interfaces between Node A and Node C; Ping on both direct and forward path should be functional. 4) Delete VLAN interface on Node B # ip link delete hsr0.2 Now test VLAN, non VLAN interfaces between Node A and Node B , Node A and Node C; Note: Once VLAN interfaces are added, inorder to re-run the hsr_setup.sh script, all the added VLAN interfaces must be deleted