Check Connection

This scenario shows how to create a bridge interface and enable offloading to perform the forward processing in the hardware switch.

../../../../_images/topology12.svg

Test Hardware Bridge With Default VLAN

Description

In these scenarios, no VLAN are configured.

Scenario

Example 1

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0
set interfaces ethernet eth0p0 bridge-group bridge br0
set interfaces ethernet eth0p1 bridge-group bridge br0
set interfaces ethernet eth2 bridge-group bridge br0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 192.168.1.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2:

set interfaces ethernet eth2 address 192.168.1.3/24
set interfaces ethernet eth2 vrf LAN_PORT0
set interfaces ethernet eth3 address 192.168.1.4/24
set interfaces ethernet eth3 vrf LAN_PORT1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf LAN_PORT0
set system vrf LAN_PORT1

Step 4: Ping IP address 192.168.1.4 from DUT2:

admin@DUT2$ ping 192.168.1.4 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.4 (192.168.1.4) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=1.68 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.677/1.677/1.677/0.000 ms

Step 5: Ping IP address 192.168.1.3 from DUT1:

admin@DUT1$ ping 192.168.1.3 count 1 size 56 timeout 1
Show output
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=1.40 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.403/1.403/1.403/0.000 ms

Step 6: Ping IP address 192.168.1.4 from DUT1:

admin@DUT1$ ping 192.168.1.4 count 1 size 56 timeout 1
Show output
PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=1.33 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.334/1.334/1.334/0.000 ms

Example 2

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0 hardware-offload eth0
set interfaces ethernet eth0p0 bridge-group bridge br0
set interfaces ethernet eth0p1 bridge-group bridge br0
set interfaces ethernet eth2 bridge-group bridge br0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 192.168.1.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2:

set interfaces ethernet eth2 address 192.168.1.3/24
set interfaces ethernet eth2 vrf LAN_PORT0
set interfaces ethernet eth3 address 192.168.1.4/24
set interfaces ethernet eth3 vrf LAN_PORT1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf LAN_PORT0
set system vrf LAN_PORT1

Step 4: Ping IP address 192.168.1.4 from DUT2:

admin@DUT2$ ping 192.168.1.4 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.4 (192.168.1.4) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=0.779 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.779/0.779/0.779/0.000 ms

Step 5: Ping IP address 192.168.1.3 from DUT1:

admin@DUT1$ ping 192.168.1.3 count 1 size 56 timeout 1
Show output
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=0.754 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.754/0.754/0.754/0.000 ms

Step 6: Ping IP address 192.168.1.4 from DUT1:

admin@DUT1$ ping 192.168.1.4 count 1 size 56 timeout 1
Show output
PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=0.737 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.737/0.737/0.737/0.000 ms

Example 3

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0 address 192.168.1.1/24
set interfaces ethernet eth0p0 bridge-group bridge br0
set interfaces ethernet eth0p1 bridge-group bridge br0
set interfaces ethernet eth2 bridge-group bridge br0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 192.168.1.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2:

set interfaces ethernet eth2 address 192.168.1.3/24
set interfaces ethernet eth2 vrf LAN_PORT0
set interfaces ethernet eth3 address 192.168.1.4/24
set interfaces ethernet eth3 vrf LAN_PORT1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf LAN_PORT0
set system vrf LAN_PORT1

Step 4: Ping IP address 192.168.1.4 from DUT2:

admin@DUT2$ ping 192.168.1.4 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.4 (192.168.1.4) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=1.48 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.483/1.483/1.483/0.000 ms

Step 5: Ping IP address 192.168.1.3 from DUT1:

admin@DUT1$ ping 192.168.1.3 count 1 size 56 timeout 1
Show output
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=1.29 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.292/1.292/1.292/0.000 ms

Step 6: Ping IP address 192.168.1.4 from DUT1:

admin@DUT1$ ping 192.168.1.4 count 1 size 56 timeout 1
Show output
PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=1.43 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.434/1.434/1.434/0.000 ms

Step 7: Ping IP address 192.168.1.1 from DUT2:

admin@DUT2$ ping 192.168.1.1 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.1 (192.168.1.1) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.02 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.022/1.022/1.022/0.000 ms

Step 8: Ping IP address 192.168.1.1 from DUT2:

admin@DUT2$ ping 192.168.1.1 vrf LAN_PORT1 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT1
PING 192.168.1.1 (192.168.1.1) from 192.168.1.4 LAN_PORT1: 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.02 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.019/1.019/1.019/0.000 ms

Step 9: Ping IP address 192.168.1.1 from DUT1:

admin@DUT1$ ping 192.168.1.1 count 1 size 56 timeout 1
Show output
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.987 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.987/0.987/0.987/0.000 ms

Example 4

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0 address 192.168.1.1/24
set interfaces bridge br0 hardware-offload eth0
set interfaces ethernet eth0p0 bridge-group bridge br0
set interfaces ethernet eth0p1 bridge-group bridge br0
set interfaces ethernet eth2 bridge-group bridge br0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 192.168.1.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2:

set interfaces ethernet eth2 address 192.168.1.3/24
set interfaces ethernet eth2 vrf LAN_PORT0
set interfaces ethernet eth3 address 192.168.1.4/24
set interfaces ethernet eth3 vrf LAN_PORT1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf LAN_PORT0
set system vrf LAN_PORT1

Step 4: Ping IP address 192.168.1.4 from DUT2:

admin@DUT2$ ping 192.168.1.4 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.4 (192.168.1.4) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=0.591 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.591/0.591/0.591/0.000 ms

Step 5: Ping IP address 192.168.1.3 from DUT1:

admin@DUT1$ ping 192.168.1.3 count 1 size 56 timeout 1
Show output
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=0.873 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.873/0.873/0.873/0.000 ms

Step 6: Ping IP address 192.168.1.4 from DUT1:

admin@DUT1$ ping 192.168.1.4 count 1 size 56 timeout 1
Show output
PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=0.813 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.813/0.813/0.813/0.000 ms

Step 7: Ping IP address 192.168.1.1 from DUT2:

admin@DUT2$ ping 192.168.1.1 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.1 (192.168.1.1) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.08 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.080/1.080/1.080/0.000 ms

Step 8: Ping IP address 192.168.1.1 from DUT2:

admin@DUT2$ ping 192.168.1.1 vrf LAN_PORT1 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT1
PING 192.168.1.1 (192.168.1.1) from 192.168.1.4 LAN_PORT1: 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.791 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.791/0.791/0.791/0.000 ms

Step 9: Ping IP address 192.168.1.1 from DUT1:

admin@DUT1$ ping 192.168.1.1 count 1 size 56 timeout 1
Show output
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.983 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.983/0.983/0.983/0.000 ms

Test Hardware Bridge VLAN Aware

Description

In these scenarios, both DUT1 and DUT2 send tagged traffic (a VLAN-aware bridge is needed).

Scenario

Example 1

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0
set interfaces ethernet eth0p0 bridge-group bridge br0
set interfaces ethernet eth0p0 bridge-group vlan 100
set interfaces ethernet eth0p1 bridge-group bridge br0
set interfaces ethernet eth0p1 bridge-group vlan 100
set interfaces ethernet eth2 bridge-group bridge br0
set interfaces ethernet eth2 bridge-group vlan 100
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 vif 100 address 192.168.1.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2:

set interfaces ethernet eth2 vif 100 address 192.168.1.3/24
set interfaces ethernet eth2 vif 100 vrf LAN_PORT0
set interfaces ethernet eth3 vif 100 address 192.168.1.4/24
set interfaces ethernet eth3 vif 100 vrf LAN_PORT1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf LAN_PORT0
set system vrf LAN_PORT1

Step 4: Ping IP address 192.168.1.4 from DUT2:

admin@DUT2$ ping 192.168.1.4 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.4 (192.168.1.4) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=1.62 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.624/1.624/1.624/0.000 ms

Step 5: Ping IP address 192.168.1.3 from DUT1:

admin@DUT1$ ping 192.168.1.3 count 1 size 56 timeout 1
Show output
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=1.75 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.752/1.752/1.752/0.000 ms

Step 6: Ping IP address 192.168.1.4 from DUT1:

admin@DUT1$ ping 192.168.1.4 count 1 size 56 timeout 1
Show output
PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=1.61 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.612/1.612/1.612/0.000 ms

Example 2

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0 hardware-offload eth0
set interfaces ethernet eth0p0 bridge-group bridge br0
set interfaces ethernet eth0p0 bridge-group vlan 100
set interfaces ethernet eth0p1 bridge-group bridge br0
set interfaces ethernet eth0p1 bridge-group vlan 100
set interfaces ethernet eth2 bridge-group bridge br0
set interfaces ethernet eth2 bridge-group vlan 100
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 vif 100 address 192.168.1.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2:

set interfaces ethernet eth2 vif 100 address 192.168.1.3/24
set interfaces ethernet eth2 vif 100 vrf LAN_PORT0
set interfaces ethernet eth3 vif 100 address 192.168.1.4/24
set interfaces ethernet eth3 vif 100 vrf LAN_PORT1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf LAN_PORT0
set system vrf LAN_PORT1

Step 4: Ping IP address 192.168.1.4 from DUT2:

admin@DUT2$ ping 192.168.1.4 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.4 (192.168.1.4) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=0.729 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.729/0.729/0.729/0.000 ms

Step 5: Ping IP address 192.168.1.3 from DUT1:

admin@DUT1$ ping 192.168.1.3 count 1 size 56 timeout 1
Show output
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=0.756 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.756/0.756/0.756/0.000 ms

Step 6: Ping IP address 192.168.1.4 from DUT1:

admin@DUT1$ ping 192.168.1.4 count 1 size 56 timeout 1
Show output
PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=0.586 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.586/0.586/0.586/0.000 ms

Example 3

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0 vif 100 address 192.168.1.1/24
set interfaces bridge br0 vlan 100
set interfaces ethernet eth0p0 bridge-group bridge br0
set interfaces ethernet eth0p0 bridge-group vlan 100
set interfaces ethernet eth0p1 bridge-group bridge br0
set interfaces ethernet eth0p1 bridge-group vlan 100
set interfaces ethernet eth2 bridge-group bridge br0
set interfaces ethernet eth2 bridge-group vlan 100
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 vif 100 address 192.168.1.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2:

set interfaces ethernet eth2 vif 100 address 192.168.1.3/24
set interfaces ethernet eth2 vif 100 vrf LAN_PORT0
set interfaces ethernet eth3 vif 100 address 192.168.1.4/24
set interfaces ethernet eth3 vif 100 vrf LAN_PORT1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf LAN_PORT0
set system vrf LAN_PORT1

Step 4: Ping IP address 192.168.1.4 from DUT2:

admin@DUT2$ ping 192.168.1.4 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.4 (192.168.1.4) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=1.36 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.357/1.357/1.357/0.000 ms

Step 5: Ping IP address 192.168.1.3 from DUT1:

admin@DUT1$ ping 192.168.1.3 count 1 size 56 timeout 1
Show output
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=1.28 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.280/1.280/1.280/0.000 ms

Step 6: Ping IP address 192.168.1.4 from DUT1:

admin@DUT1$ ping 192.168.1.4 count 1 size 56 timeout 1
Show output
PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=1.47 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.472/1.472/1.472/0.000 ms

Step 7: Ping IP address 192.168.1.1 from DUT2:

admin@DUT2$ ping 192.168.1.1 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.1 (192.168.1.1) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.942 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.942/0.942/0.942/0.000 ms

Step 8: Ping IP address 192.168.1.1 from DUT2:

admin@DUT2$ ping 192.168.1.1 vrf LAN_PORT1 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT1
PING 192.168.1.1 (192.168.1.1) from 192.168.1.4 LAN_PORT1: 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.17 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.168/1.168/1.168/0.000 ms

Step 9: Ping IP address 192.168.1.1 from DUT1:

admin@DUT1$ ping 192.168.1.1 count 1 size 56 timeout 1
Show output
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.954 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.954/0.954/0.954/0.000 ms

Example 4

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0 hardware-offload eth0
set interfaces bridge br0 vif 100 address 192.168.1.1/24
set interfaces bridge br0 vlan 100
set interfaces ethernet eth0p0 bridge-group bridge br0
set interfaces ethernet eth0p0 bridge-group vlan 100
set interfaces ethernet eth0p1 bridge-group bridge br0
set interfaces ethernet eth0p1 bridge-group vlan 100
set interfaces ethernet eth2 bridge-group bridge br0
set interfaces ethernet eth2 bridge-group vlan 100
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 vif 100 address 192.168.1.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2:

set interfaces ethernet eth2 vif 100 address 192.168.1.3/24
set interfaces ethernet eth2 vif 100 vrf LAN_PORT0
set interfaces ethernet eth3 vif 100 address 192.168.1.4/24
set interfaces ethernet eth3 vif 100 vrf LAN_PORT1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf LAN_PORT0
set system vrf LAN_PORT1

Step 4: Ping IP address 192.168.1.4 from DUT2:

admin@DUT2$ ping 192.168.1.4 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.4 (192.168.1.4) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=0.835 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.835/0.835/0.835/0.000 ms

Step 5: Ping IP address 192.168.1.3 from DUT1:

admin@DUT1$ ping 192.168.1.3 count 1 size 56 timeout 1
Show output
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=0.891 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.891/0.891/0.891/0.000 ms

Step 6: Ping IP address 192.168.1.4 from DUT1:

admin@DUT1$ ping 192.168.1.4 count 1 size 56 timeout 1
Show output
PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=0.667 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.667/0.667/0.667/0.000 ms

Step 7: Ping IP address 192.168.1.1 from DUT2:

admin@DUT2$ ping 192.168.1.1 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.1 (192.168.1.1) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.08 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.083/1.083/1.083/0.000 ms

Step 8: Ping IP address 192.168.1.1 from DUT2:

admin@DUT2$ ping 192.168.1.1 vrf LAN_PORT1 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT1
PING 192.168.1.1 (192.168.1.1) from 192.168.1.4 LAN_PORT1: 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.24 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.235/1.235/1.235/0.000 ms

Step 9: Ping IP address 192.168.1.1 from DUT1:

admin@DUT1$ ping 192.168.1.1 count 1 size 56 timeout 1
Show output
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.17 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.165/1.165/1.165/0.000 ms

Test Hardware Bridge With PVID And Untagged

Description

In these scenarios, DUT2 sends tagged traffic, but DUT1 does not use VLANs.

Scenario

Example 1

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0
set interfaces ethernet eth0p0 bridge-group bridge br0
set interfaces ethernet eth0p0 bridge-group vlan 100
set interfaces ethernet eth0p1 bridge-group bridge br0
set interfaces ethernet eth0p1 bridge-group vlan 100
set interfaces ethernet eth2 bridge-group bridge br0
set interfaces ethernet eth2 bridge-group vlan 100 pvid
set interfaces ethernet eth2 bridge-group vlan 100 untagged
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 192.168.1.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2:

set interfaces ethernet eth2 vif 100 address 192.168.1.3/24
set interfaces ethernet eth2 vif 100 vrf LAN_PORT0
set interfaces ethernet eth3 vif 100 address 192.168.1.4/24
set interfaces ethernet eth3 vif 100 vrf LAN_PORT1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf LAN_PORT0
set system vrf LAN_PORT1

Step 4: Ping IP address 192.168.1.4 from DUT2:

admin@DUT2$ ping 192.168.1.4 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.4 (192.168.1.4) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=1.14 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.144/1.144/1.144/0.000 ms

Step 5: Ping IP address 192.168.1.3 from DUT1:

admin@DUT1$ ping 192.168.1.3 count 1 size 56 timeout 1
Show output
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=1.53 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.532/1.532/1.532/0.000 ms

Step 6: Ping IP address 192.168.1.4 from DUT1:

admin@DUT1$ ping 192.168.1.4 count 1 size 56 timeout 1
Show output
PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=1.23 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.232/1.232/1.232/0.000 ms

Example 2

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0 hardware-offload eth0
set interfaces ethernet eth0p0 bridge-group bridge br0
set interfaces ethernet eth0p0 bridge-group vlan 100
set interfaces ethernet eth0p1 bridge-group bridge br0
set interfaces ethernet eth0p1 bridge-group vlan 100
set interfaces ethernet eth2 bridge-group bridge br0
set interfaces ethernet eth2 bridge-group vlan 100 pvid
set interfaces ethernet eth2 bridge-group vlan 100 untagged
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 192.168.1.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2:

set interfaces ethernet eth2 vif 100 address 192.168.1.3/24
set interfaces ethernet eth2 vif 100 vrf LAN_PORT0
set interfaces ethernet eth3 vif 100 address 192.168.1.4/24
set interfaces ethernet eth3 vif 100 vrf LAN_PORT1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf LAN_PORT0
set system vrf LAN_PORT1

Step 4: Ping IP address 192.168.1.4 from DUT2:

admin@DUT2$ ping 192.168.1.4 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.4 (192.168.1.4) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=0.724 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.724/0.724/0.724/0.000 ms

Step 5: Ping IP address 192.168.1.3 from DUT1:

admin@DUT1$ ping 192.168.1.3 count 1 size 56 timeout 1
Show output
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=0.686 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.686/0.686/0.686/0.000 ms

Step 6: Ping IP address 192.168.1.4 from DUT1:

admin@DUT1$ ping 192.168.1.4 count 1 size 56 timeout 1
Show output
PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=0.793 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.793/0.793/0.793/0.000 ms

Example 3

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0 vif 100 address 192.168.1.1/24
set interfaces bridge br0 vlan 100
set interfaces ethernet eth0p0 bridge-group bridge br0
set interfaces ethernet eth0p0 bridge-group vlan 100
set interfaces ethernet eth0p1 bridge-group bridge br0
set interfaces ethernet eth0p1 bridge-group vlan 100
set interfaces ethernet eth2 bridge-group bridge br0
set interfaces ethernet eth2 bridge-group vlan 100 pvid
set interfaces ethernet eth2 bridge-group vlan 100 untagged
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 192.168.1.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2:

set interfaces ethernet eth2 vif 100 address 192.168.1.3/24
set interfaces ethernet eth2 vif 100 vrf LAN_PORT0
set interfaces ethernet eth3 vif 100 address 192.168.1.4/24
set interfaces ethernet eth3 vif 100 vrf LAN_PORT1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf LAN_PORT0
set system vrf LAN_PORT1

Step 4: Ping IP address 192.168.1.4 from DUT2:

admin@DUT2$ ping 192.168.1.4 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.4 (192.168.1.4) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=1.32 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.324/1.324/1.324/0.000 ms

Step 5: Ping IP address 192.168.1.3 from DUT1:

admin@DUT1$ ping 192.168.1.3 count 1 size 56 timeout 1
Show output
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=1.38 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.384/1.384/1.384/0.000 ms

Step 6: Ping IP address 192.168.1.4 from DUT1:

admin@DUT1$ ping 192.168.1.4 count 1 size 56 timeout 1
Show output
PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=1.24 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.237/1.237/1.237/0.000 ms

Step 7: Ping IP address 192.168.1.1 from DUT2:

admin@DUT2$ ping 192.168.1.1 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.1 (192.168.1.1) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.02 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.019/1.019/1.019/0.000 ms

Step 8: Ping IP address 192.168.1.1 from DUT2:

admin@DUT2$ ping 192.168.1.1 vrf LAN_PORT1 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT1
PING 192.168.1.1 (192.168.1.1) from 192.168.1.4 LAN_PORT1: 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.992 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.992/0.992/0.992/0.000 ms

Step 9: Ping IP address 192.168.1.1 from DUT1:

admin@DUT1$ ping 192.168.1.1 count 1 size 56 timeout 1
Show output
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.916 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.916/0.916/0.916/0.000 ms

Example 4

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0 hardware-offload eth0
set interfaces bridge br0 vif 100 address 192.168.1.1/24
set interfaces bridge br0 vlan 100
set interfaces ethernet eth0p0 bridge-group bridge br0
set interfaces ethernet eth0p0 bridge-group vlan 100
set interfaces ethernet eth0p1 bridge-group bridge br0
set interfaces ethernet eth0p1 bridge-group vlan 100
set interfaces ethernet eth2 bridge-group bridge br0
set interfaces ethernet eth2 bridge-group vlan 100 pvid
set interfaces ethernet eth2 bridge-group vlan 100 untagged
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 192.168.1.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2:

set interfaces ethernet eth2 vif 100 address 192.168.1.3/24
set interfaces ethernet eth2 vif 100 vrf LAN_PORT0
set interfaces ethernet eth3 vif 100 address 192.168.1.4/24
set interfaces ethernet eth3 vif 100 vrf LAN_PORT1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf LAN_PORT0
set system vrf LAN_PORT1

Step 4: Ping IP address 192.168.1.4 from DUT2:

admin@DUT2$ ping 192.168.1.4 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.4 (192.168.1.4) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=0.712 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.712/0.712/0.712/0.000 ms

Step 5: Ping IP address 192.168.1.3 from DUT1:

admin@DUT1$ ping 192.168.1.3 count 1 size 56 timeout 1
Show output
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=0.647 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.647/0.647/0.647/0.000 ms

Step 6: Ping IP address 192.168.1.4 from DUT1:

admin@DUT1$ ping 192.168.1.4 count 1 size 56 timeout 1
Show output
PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=0.568 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.568/0.568/0.568/0.000 ms

Step 7: Ping IP address 192.168.1.1 from DUT2:

admin@DUT2$ ping 192.168.1.1 vrf LAN_PORT0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT0
PING 192.168.1.1 (192.168.1.1) from 192.168.1.3 LAN_PORT0: 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.04 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.041/1.041/1.041/0.000 ms

Step 8: Ping IP address 192.168.1.1 from DUT2:

admin@DUT2$ ping 192.168.1.1 vrf LAN_PORT1 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than: LAN_PORT1
PING 192.168.1.1 (192.168.1.1) from 192.168.1.4 LAN_PORT1: 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.995 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.995/0.995/0.995/0.000 ms

Step 9: Ping IP address 192.168.1.1 from DUT1:

admin@DUT1$ ping 192.168.1.1 count 1 size 56 timeout 1
Show output
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.04 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.041/1.041/1.041/0.000 ms