Check Connection

This scenario shows how to configure two different kinds of interfaces: Cellular and Ethernet. Another device, DUT1, which is connected through the Ethernet cable, pings Google’s DNS public server using DUT0 as a gateway.

../../../../../_images/google4.svg

Test ICMP Connectivity

Description

DUT0 is connected to the LAN side through the ethernet eth0 interface, and to the WAN side through the cellular cell0 interface. cell0 masquerades outgoing traffic.

Scenario

Step 1: Set the following configuration in DUT0:

set cellular profile CELPROFILE apn movistar.es
set interfaces cellular cell0 address dhcp
set interfaces cellular cell0 encrypted-pin U2FsdGVkX19qpbHwJYn48M1X6mIR073nrPT11FBn4SE=
set interfaces cellular cell0 profile CELPROFILE
set interfaces cellular cell0 traffic nat source rule 1 address masquerade
set interfaces ethernet eth0 address 192.168.100.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 protocols static route 0.0.0.0/0 next-hop 192.168.100.10
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Ping IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=50.2 ms

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

Step 4: Ping IP address 8.8.8.8 from DUT1:

admin@DUT1$ ping 8.8.8.8 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=46.9 ms

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