Check Connection
This scenario shows how to configure QinQ interfaces.
Test ICMP Connectivity Using 802.1Q
Description
Two VIF-C interfaces are configured in each node.
In DUT0, VLAN 100.200 is configured in
eth0
and VLAN 200.100 in
eth1
. 802.1Q ethertype mode is used
for both interfaces.
The ping
command is used to ensure there’s
link connectivity.
Scenario
Step 1: Set the following configuration in DUT0
:
set interfaces ethernet eth0 vif 100 address 10.100.0.1/24 set interfaces ethernet eth0 vif 100 ethertype 802.1q set interfaces ethernet eth0 vif 100 vif-c 200 address 10.100.200.1/24 set interfaces ethernet eth1 vif 200 address 10.200.0.1/24 set interfaces ethernet eth1 vif 200 ethertype 802.1q set interfaces ethernet eth1 vif 200 vif-c 100 address 10.200.100.1/24 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 10.100.0.2/24 set interfaces ethernet eth0 vif 100 ethertype 802.1q set interfaces ethernet eth0 vif 100 vif-c 200 address 10.100.200.2/24 set interfaces ethernet eth1 vif 200 address 10.200.0.2/24 set interfaces ethernet eth1 vif 200 ethertype 802.1q set interfaces ethernet eth1 vif 200 vif-c 100 address 10.200.100.2/24 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 3: Ping IP address 10.100.0.2
from DUT0
:
admin@DUT0$ ping 10.100.0.2 local-address 10.100.0.1 count 1 size 56 timeout 1Show output
PING 10.100.0.2 (10.100.0.2) from 10.100.0.1 : 56(84) bytes of data. 64 bytes from 10.100.0.2: icmp_seq=1 ttl=64 time=2.62 ms --- 10.100.0.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 2.623/2.623/2.623/0.000 ms
Step 4: Ping IP address 10.100.200.2
from DUT0
:
admin@DUT0$ ping 10.100.200.2 local-address 10.100.200.1 count 1 size 56 timeout 1Show output
PING 10.100.200.2 (10.100.200.2) from 10.100.200.1 : 56(84) bytes of data. 64 bytes from 10.100.200.2: icmp_seq=1 ttl=64 time=0.897 ms --- 10.100.200.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.897/0.897/0.897/0.000 ms
Step 5: Ping IP address 10.200.0.2
from DUT0
:
admin@DUT0$ ping 10.200.0.2 local-address 10.200.0.1 count 1 size 56 timeout 1Show output
PING 10.200.0.2 (10.200.0.2) from 10.200.0.1 : 56(84) bytes of data. 64 bytes from 10.200.0.2: icmp_seq=1 ttl=64 time=1.16 ms --- 10.200.0.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.156/1.156/1.156/0.000 ms
Step 6: Ping IP address 10.200.100.2
from DUT0
:
admin@DUT0$ ping 10.200.100.2 local-address 10.200.100.1 count 1 size 56 timeout 1Show output
PING 10.200.100.2 (10.200.100.2) from 10.200.100.1 : 56(84) bytes of data. 64 bytes from 10.200.100.2: icmp_seq=1 ttl=64 time=0.801 ms --- 10.200.100.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.801/0.801/0.801/0.000 ms
Test ICMP Connectivity Using 802.1AD
Description
Two VIF-C interfaces are configured in each node.
In DUT0, VLAN 100.200 is configured in
eth0
and VLAN 200.100 in
eth1
. 802.1AD ethertype mode is used
for both interfaces.
The ping
command is used to ensure there’s
link connectivity.
Scenario
Step 1: Set the following configuration in DUT0
:
set interfaces ethernet eth0 vif 100 address 10.100.0.1/24 set interfaces ethernet eth0 vif 100 ethertype 802.1ad set interfaces ethernet eth0 vif 100 vif-c 200 address 10.100.200.1/24 set interfaces ethernet eth1 vif 200 address 10.200.0.1/24 set interfaces ethernet eth1 vif 200 ethertype 802.1ad set interfaces ethernet eth1 vif 200 vif-c 100 address 10.200.100.1/24 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 10.100.0.2/24 set interfaces ethernet eth0 vif 100 ethertype 802.1ad set interfaces ethernet eth0 vif 100 vif-c 200 address 10.100.200.2/24 set interfaces ethernet eth1 vif 200 address 10.200.0.2/24 set interfaces ethernet eth1 vif 200 ethertype 802.1ad set interfaces ethernet eth1 vif 200 vif-c 100 address 10.200.100.2/24 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 3: Ping IP address 10.100.0.2
from DUT0
:
admin@DUT0$ ping 10.100.0.2 local-address 10.100.0.1 count 1 size 56 timeout 1Show output
PING 10.100.0.2 (10.100.0.2) from 10.100.0.1 : 56(84) bytes of data. 64 bytes from 10.100.0.2: icmp_seq=1 ttl=64 time=2.25 ms --- 10.100.0.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 2.252/2.252/2.252/0.000 ms
Step 4: Ping IP address 10.100.200.2
from DUT0
:
admin@DUT0$ ping 10.100.200.2 local-address 10.100.200.1 count 1 size 56 timeout 1Show output
PING 10.100.200.2 (10.100.200.2) from 10.100.200.1 : 56(84) bytes of data. 64 bytes from 10.100.200.2: icmp_seq=1 ttl=64 time=9.55 ms --- 10.100.200.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 9.548/9.548/9.548/0.000 ms
Step 5: Ping IP address 10.200.0.2
from DUT0
:
admin@DUT0$ ping 10.200.0.2 local-address 10.200.0.1 count 1 size 56 timeout 1Show output
PING 10.200.0.2 (10.200.0.2) from 10.200.0.1 : 56(84) bytes of data. 64 bytes from 10.200.0.2: icmp_seq=1 ttl=64 time=1.68 ms --- 10.200.0.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.681/1.681/1.681/0.000 ms
Step 6: Ping IP address 10.200.100.2
from DUT0
:
admin@DUT0$ ping 10.200.100.2 local-address 10.200.100.1 count 1 size 56 timeout 1Show output
PING 10.200.100.2 (10.200.100.2) from 10.200.100.1 : 56(84) bytes of data. 64 bytes from 10.200.100.2: icmp_seq=1 ttl=64 time=0.876 ms --- 10.200.100.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.876/0.876/0.876/0.000 ms