Check Connection
This scenario shows how to create a bridge interface and enable offloading to perform the forward processing in the hardware switch.
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 eth1 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 1Show 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.03 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.031/1.031/1.031/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 1Show 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.09 ms --- 192.168.1.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.090/1.090/1.090/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 1Show 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.09 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.091/1.091/1.091/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 eth1 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 1Show 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.31 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.312/1.312/1.312/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 1Show 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.98 ms --- 192.168.1.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.976/1.976/1.976/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 1Show 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.31 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.314/1.314/1.314/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 eth1 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 1Show 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.977 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.977/0.977/0.977/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 1Show 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=7.89 ms --- 192.168.1.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 7.893/7.893/7.893/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 1Show 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.07 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.066/1.066/1.066/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 1Show 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.659 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.659/0.659/0.659/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 1Show 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=6.55 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 6.545/6.545/6.545/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 1Show 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.641 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.641/0.641/0.641/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 eth1 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 1Show 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 1Show 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.13 ms --- 192.168.1.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.125/1.125/1.125/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 1Show 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.07 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.068/1.068/1.068/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 1Show 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.571 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.571/0.571/0.571/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 1Show 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.615 ms --- 192.168.1.1 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 9: Ping IP address 192.168.1.1
from DUT1
:
admin@DUT1$ ping 192.168.1.1 count 1 size 56 timeout 1Show 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.560 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.560/0.560/0.560/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 eth1 bridge-group bridge br0 set interfaces ethernet eth1 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 1Show 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.27 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.267/1.267/1.267/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 1Show 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.52 ms --- 192.168.1.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.519/1.519/1.519/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 1Show 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=8.76 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 8.761/8.761/8.761/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 eth1 bridge-group bridge br0 set interfaces ethernet eth1 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 1Show 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=2.33 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 2.326/2.326/2.326/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 1Show 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.11 ms --- 192.168.1.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.108/1.108/1.108/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 1Show 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.131/1.131/1.131/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 eth1 bridge-group bridge br0 set interfaces ethernet eth1 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 1Show 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.988 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.988/0.988/0.988/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 1Show 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.81 ms --- 192.168.1.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.805/1.805/1.805/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 1Show 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.44 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.437/1.437/1.437/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 1Show 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=10.1 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 10.135/10.135/10.135/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 1Show 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=3.12 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 3.117/3.117/3.117/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 1Show 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=7.99 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 7.986/7.986/7.986/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 eth1 bridge-group bridge br0 set interfaces ethernet eth1 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 1Show 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.605 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.605/0.605/0.605/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 1Show 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=7.22 ms --- 192.168.1.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 7.221/7.221/7.221/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 1Show 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.66 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.659/1.659/1.659/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 1Show 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.93 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.931/1.931/1.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 1Show 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.622 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.622/0.622/0.622/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 1Show 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.759 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.759/0.759/0.759/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 eth1 bridge-group bridge br0 set interfaces ethernet eth1 bridge-group vlan 100 pvid set interfaces ethernet eth1 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 1Show 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.28 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.278/1.278/1.278/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 1Show 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.83 ms --- 192.168.1.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.834/1.834/1.834/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 1Show 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=3.56 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 3.555/3.555/3.555/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 eth1 bridge-group bridge br0 set interfaces ethernet eth1 bridge-group vlan 100 pvid set interfaces ethernet eth1 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 1Show 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=5.41 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 5.412/5.412/5.412/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 1Show 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.47 ms --- 192.168.1.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.465/1.465/1.465/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 1Show 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=4.03 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 4.031/4.031/4.031/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 eth1 bridge-group bridge br0 set interfaces ethernet eth1 bridge-group vlan 100 pvid set interfaces ethernet eth1 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 1Show 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=2.03 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 2.026/2.026/2.026/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 1Show 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=2.56 ms --- 192.168.1.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 2.555/2.555/2.555/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 1Show 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=27.9 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 27.907/27.907/27.907/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 1Show 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.743 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.743/0.743/0.743/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 1Show 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.947 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.947/0.947/0.947/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 1Show 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.28 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.283/1.283/1.283/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 eth1 bridge-group bridge br0 set interfaces ethernet eth1 bridge-group vlan 100 pvid set interfaces ethernet eth1 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 1Show 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=3.80 ms --- 192.168.1.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 3.800/3.800/3.800/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 1Show 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.571/1.571/1.571/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 1Show 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.127/1.127/1.127/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 1Show 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.621 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.621/0.621/0.621/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 1Show 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.606 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.606/0.606/0.606/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 1Show 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.49 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.491/1.491/1.491/0.000 ms