Check Connection Two Interfaces
This scenario shows how to configure two Ethernet interfaces with an IP address and check ICMP and ARP connectivity.
Test ARP Connectivity
Description
Two Ethernet interfaces are configured in each node and the ‘ARPing’ command is used to check link connectivity (ARP protocol).
Scenario
Step 1: Set the following configuration in DUT0
:
set interfaces ethernet eth0 address 192.168.100.10/24 set interfaces ethernet eth1 address 192.168.200.10/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 address 192.168.100.20/24 set interfaces ethernet eth1 address 192.168.200.20/24 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 3: Send arp ping from DUT0
to IP address 192.168.100.20
:
admin@DUT0$ arping 192.168.100.20 interface eth0 timeout 5 count 1Show output
ARPING 192.168.100.20 from 192.168.100.10 eth0 Unicast reply from 192.168.100.20 [DE:AD:BE:EF:6C:20] 0.985ms Sent 1 probes (1 broadcast(s)) Received 1 response(s)
Step 4: Send arp ping from DUT1
to IP address 192.168.200.10
:
admin@DUT1$ arping 192.168.200.10 interface eth1 timeout 5 count 1Show output
ARPING 192.168.200.10 from 192.168.200.20 eth1 Unicast reply from 192.168.200.10 [DE:AD:BE:EF:6C:11] 0.732ms Sent 1 probes (1 broadcast(s)) Received 1 response(s)
Test ICMP Connectivity
Description
Two Ethernet interfaces are configured in each node and the ‘Ping’ command is used to check network connectivity (ICMP protocol).
Scenario
Step 1: Set the following configuration in DUT0
:
set interfaces ethernet eth0 address 192.168.100.10/24 set interfaces ethernet eth1 address 192.168.200.10/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 address 192.168.100.20/24 set interfaces ethernet eth1 address 192.168.200.20/24 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 3: Ping IP address 192.168.100.20
from DUT0
:
admin@DUT0$ ping 192.168.100.20 local-address 192.168.100.10 count 1 size 56 timeout 1Show output
PING 192.168.100.20 (192.168.100.20) from 192.168.100.10 : 56(84) bytes of data. 64 bytes from 192.168.100.20: icmp_seq=1 ttl=64 time=0.327 ms --- 192.168.100.20 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.327/0.327/0.327/0.000 ms
Step 4: Ping IP address 192.168.200.10
from DUT1
:
admin@DUT1$ ping 192.168.200.10 local-address 192.168.200.20 count 1 size 56 timeout 1Show output
PING 192.168.200.10 (192.168.200.10) from 192.168.200.20 : 56(84) bytes of data. 64 bytes from 192.168.200.10: icmp_seq=1 ttl=64 time=0.525 ms --- 192.168.200.10 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.525/0.525/0.525/0.000 ms