Check Connection
This scenario shows how to configure a cellular interface, and then check network connectivity by pinging Google’s DNS public server. In addition, some operational commands are executed and the information displayed by them is checked.
Test ICMP Connectivity
Description
In DUT0, a cellular profile whose APN is movistar.es is defined and cellular interface cell0 is configured. The cellular profile created and the PIN code required by the SIM card are assigned to the cellular interface. Additionally, the cellular interface is configured to obtain its IP addressing through DHCP. Once it’s configured, the ‘Ping’ command is used to check connectivity with Google’s DNS public server.
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 U2FsdGVkX1/Nxpu3i6km2kIzLu0ZfIBZETwSMG2yZ2E= set interfaces cellular cell0 profile CELPROFILE set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Note
Once the cellular interface is configured, with the following operational command it can be checked if the SIM and registration states are correct.
Step 2: Run command interfaces cellular cell0 show network-status
at DUT0
and check if output matches the following regular expressions:
SIM status\s* = OK Registration state\s* = registeredShow output
SIM status = OK Registration state = registered Public Land Mobile Network code = HOME[21407] ACT[21422] Public Land Mobile Network name = Movistar Network technology currently in use = lte Current Service Domain registered = cs-ps (capable cs-ps) Current Roaming status = off 3GPP Cell ID = 72016414 Radio Band = eutran-3 Channel = 1301 LTE Tracking Area Code (TAC) = 28673 LTE Carrier Aggregation Info: Primary Cell Info: LTE Band Value = E-UTRA Band 3 Frequency = 1301 Downlink Bandwidth = 20 MHz Physical cell ID = 216 Scell State = Registered RSRP (dBm) = -70 RSRQ (dB) = -7 RSSI (dBm) = -43 SINR (dB) = 16 Secondary Cell Info #0: LTE Band Value = E-UTRA Band 20 Frequency = 6400 Downlink Bandwidth = 10 MHz Physical cell ID = 195 Scell State = Configuration deactivated RSRP (dBm) = -65 RSRQ (dB) = -7 RSSI (dBm) = -50 SINR (dB) = 14 RX level (dBm) = -53 or greater Coverage level = 5 (*****)
Note
On the other hand, with the following command it can be checked if the cellular interface has correctly established the connection to the network.
Step 3: Run command interfaces cellular cell0 show network-data-connection
at DUT0
and check if output matches the following regular expressions:
Connection status\s* = connectedShow output
Connection status = connected Traffic channel status = active Max. TX channel rate (bps) = 50000000 Max. RX channel rate (bps) = 300000000 IPv4 address = 2.143.65.129 IPv4 mask = 255.255.255.252 IPv4 gateway = 2.143.65.130 IPv4 primary DNS = 80.58.61.250 IPv4 secondary DNS = 80.58.61.254
Note
Additionally, with the previous operational command, the IP address that has been provided by the operator to be used by the cellular interface is displayed. So, with the following command, it can be checked if the cellular interface has been correctly configured by the DHCP client.
Step 4: Run command interfaces cellular cell0 show
at DUT0
and check if output matches the following regular expressions:
cell0\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+upShow output
---------------------------------------------------------------- Name IP Address Admin Oper Vrf Description ---------------------------------------------------------------- cell0 2.143.65.129/30 up up fe80::c1d:e4ff:feb8:497/64
Note
Once everything above has been verified, we can be sure that the cellular interface has been configured correctly and there must be connectivity with the network. The latter can be verified, for example, by pinging Google’s DNS public server.
Step 5: Ping IP address 8.8.8.8
from DUT0
:
admin@DUT0$ ping 8.8.8.8 count 1 size 56 timeout 1Show 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=43.2 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 43.237/43.237/43.237/0.000 ms
Note
Finally, more details of the cellular interface can be obtained through the following operational commands.
Step 6: Run command interfaces cellular cell0 show cell-info
at DUT0
and check if output matches the following regular expressions:
GSM\/EDGE info|UMTS info|LTE intrafrequency info|LTE interfrequency info|LTE info - Neighboring GSM|LTE info - Neighboring WCDMA|UMTS Cell ID|UMTS info - Neighboring LTEShow output
LTE intrafrequency info: UE in idle mode = no PLMN ID coded = 21407 Tracking Area Code = 28673 Global cell ID = 72016414 E-UTRA absolute RF channel number = 1301 LTE serving cell ID = 216 Cell #0 Physical cell ID = 216 Current RSRQ (dB) = -8.000000 Current RSRP (dBm) = -70.500000 Current RSSI (dBm) = -40.500000 Cell selection Rx Level = 0 Cell #1 Physical cell ID = 299 Current RSRQ (dB) = -20.000000 Current RSRP (dBm) = -86.000000 Current RSSI (dBm) = -54.100000 Cell selection Rx Level = 0 Cell #2 Physical cell ID = 3 Current RSRQ (dB) = -20.000000 Current RSRP (dBm) = -87.200000 Current RSSI (dBm) = -56.600000 Cell selection Rx Level = 0 Cell #3 Physical cell ID = 194 Current RSRQ (dB) = -20.000000 Current RSRP (dBm) = -96.300000 Current RSSI (dBm) = -54.100000 Cell selection Rx Level = 0 LTE interfrequency info: UE in idle mode = no Frequency #0 E-UTRA absolute RF channel number = 6400 Cell selection Rx Level low threshold = 0 Cell selection Rx Level high threshold = 0 Cell reselection priority = 0 Cell #0 Physical cell ID = 195 Current RSRQ (dB) = -7.900000 Current RSRP (dBm) = -65.800000 Current RSSI (dBm) = -48.600000 Cell selection Rx Level = 0 Cell #1 Physical cell ID = 260 Current RSRQ (dB) = -20.000000 Current RSRP (dBm) = -84.400000 Current RSSI (dBm) = -53.000000 Cell selection Rx Level = 0 Cell #2 Physical cell ID = 276 Current RSRQ (dB) = -20.000000 Current RSRP (dBm) = -83.600000 Current RSSI (dBm) = -53.000000 Cell selection Rx Level = 0 Cell #3 Physical cell ID = 235 Current RSRQ (dB) = -20.000000 Current RSRP (dBm) = -79.700000 Current RSSI (dBm) = -48.600000 Cell selection Rx Level = 0 LTE info - Neighboring GSM: UE in idle mode = no LTE info - Neighboring WCDMA: UE in idle mode = no
Step 7: Run command interfaces cellular cell0 show device-info
at DUT0
and check if output matches the following regular expressions:
Temperature\s* = \d+Show output
Module Manufacturer = Quectel Module Model = EM06E Module Firmware = EM06ELAR04A20M4G Hardware Revision = 20000 IMEI = 866680043220203 IMSI = 214075519082725 Radio Interfaces = umts, lte Data Service Capability = non-simultaneous-cs-ps Maximum TX/RX rate supported = 50000/100000 Kbps Temperature = 39
Step 8: Run command interfaces cellular cell0 show preferred-bands
at DUT0
and check if output matches the following regular expressions:
Bands preference\s* = .*\nLTE bands preference\s* = .*Show output
Bands preference = wcdma-2100, wcdma-dcs-1800, wcdma-850-us, wcdma-900 LTE bands preference = 1, 3, 5, 7, 8, 20, 28, 32, 38, 40, 41 LTE bands preference (extended) = 1, 3, 5, 7, 8, 20, 28, 32, 38, 40, 41
Step 9: Run command interfaces cellular cell0 show signal-quality
at DUT0
and check if output matches the following regular expressions:
(CDMA|EVDO|GSM\/GPRS|WCDMA|LTE):\n\s+RSSI \(dBm\)\s* = -?\d+Show output
LTE: RSSI (dBm) = -41 RSRP (dBm) = -71 RSRQ (dB) = -11 SNR (dB) = 11.800000 Rx Chain #0 Radio tuned = yes Rx Level (dBm) = -47.700000 ECIO (dB) = 7.100000 RSRP (dBm) = 74.800000 Phase (deg) = 0.000000 Rx Chain #1 Radio tuned = yes Rx Level (dBm) = -43.300000 ECIO (dB) = 7.300000 RSRP (dBm) = 70.600000 Phase (deg) = 0.000000
Step 10: Run command interfaces cellular cell0 show supported-bands
at DUT0
and check if output matches the following regular expressions:
Bands\s* = .*\nLTE bands\s* = .*Show output
Bands = wcdma-2100, wcdma-dcs-1800, wcdma-850-us, wcdma-900 LTE bands = 1, 3, 5, 7, 8, 20, 28, 32, 38, 40, 41 LTE bands (extended) = 1, 3, 5, 7, 8, 20, 28, 32, 38, 40, 41