Check Connection
This scenario shows how to configure two VLAN interfaces in different VRFs.
Test ICMP Connectivity
Description
VLAN 101 is made a slave of vrf RED, and VLAN 102 a slave of vrf BLUE. The ‘Ping’ command is used to check network connectivity (ICMP protocol).
Scenario
Step 1: Set the following configuration in DUT0
:
set system vrf RED set system vrf BLUE set interfaces ethernet eth0 vif 101 address 192.168.100.10/24 set interfaces ethernet eth1 vif 102 address 192.168.200.10/24 set interfaces ethernet eth0 vif 101 vrf RED set interfaces ethernet eth1 vif 102 vrf BLUE
Step 2: Set the following configuration in DUT1
:
set interfaces ethernet eth0 vif 101 address 192.168.100.20/24 set interfaces ethernet eth1 vif 102 address 192.168.200.20/24
Step 3: Ping IP address 192.168.100.20
from DUT0
:
admin@DUT0$ ping 192.168.100.20 vrf RED count 1 size 56 timeout 1Show output
ping: Warning: source address might be selected on device other than RED. PING 192.168.100.20 (192.168.100.20) from 192.168.100.10 RED: 56(84) bytes of data. 64 bytes from 192.168.100.20: icmp_seq=1 ttl=64 time=0.516 ms --- 192.168.100.20 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.516/0.516/0.516/0.000 ms
Step 4: Ping IP address 192.168.200.20
from DUT0
:
admin@DUT0$ ping 192.168.200.20 vrf BLUE count 1 size 56 timeout 1Show output
ping: Warning: source address might be selected on device other than BLUE. PING 192.168.200.20 (192.168.200.20) from 192.168.200.10 BLUE: 56(84) bytes of data. 64 bytes from 192.168.200.20: icmp_seq=1 ttl=64 time=0.595 ms --- 192.168.200.20 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.595/0.595/0.595/0.000 ms