Check Connection

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

../../../../_images/topology2.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.24 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.238/1.238/1.238/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.36 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.355/1.355/1.355/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.22 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.219/1.219/1.219/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=4.86 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 4.859/4.859/4.859/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.679 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.679/0.679/0.679/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.746 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.746/0.746/0.746/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.482/1.482/1.482/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=12.7 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 12.749/12.749/12.749/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.15 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.150/1.150/1.150/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.931 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.931/0.931/0.931/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=2.41 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.413/2.413/2.413/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.41 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.406/1.406/1.406/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=1.54 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.541/1.541/1.541/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.846 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.846/0.846/0.846/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.713 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.713/0.713/0.713/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.996 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.996/0.996/0.996/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=2.72 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.721/2.721/2.721/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.886 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.886/0.886/0.886/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.16 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.155/1.155/1.155/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.56 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.563/1.563/1.563/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=2.38 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.378/2.378/2.378/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.611 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.611/0.611/0.611/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.615 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.615/0.615/0.615/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.942 ms

--- 192.168.1.4 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

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.35 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.354/1.354/1.354/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.26 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.260/1.260/1.260/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.16 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.164/1.164/1.164/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.964 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.964/0.964/0.964/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.997 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.997/0.997/0.997/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.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

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.665 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.665/0.665/0.665/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.57 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.567/1.567/1.567/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.22 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.216/1.216/1.216/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.01 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.006/1.006/1.006/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.04 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.044/1.044/1.044/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.891 ms

--- 192.168.1.1 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

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.16 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.158/1.158/1.158/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.27 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.266/1.266/1.266/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.13 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.133/1.133/1.133/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.613 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.613/0.613/0.613/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.676 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.676/0.676/0.676/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.790 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.790/0.790/0.790/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.29 ms

--- 192.168.1.4 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 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.24 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.239/1.239/1.239/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.88 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.878/1.878/1.878/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=2.63 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.626/2.626/2.626/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.01 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.012/1.012/1.012/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.05 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.046/1.046/1.046/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.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.815 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.815/0.815/0.815/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.681 ms

--- 192.168.1.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.681/0.681/0.681/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.958 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.958/0.958/0.958/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.04 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.044/1.044/1.044/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.904 ms

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