Check Network Mode Changes
This scenario shows how to configure a cellular interface, selecting the type of technology used to connect to the network from those supported by the cellular module used.
Test ICMP Connectivity
Description
The network modes supported by the cellular module are obtained from DUT0. Next, a cellular interface is created in DUT0, adjusting the different supported network modes and verifying that the interface is indeed using the desired network technology and that there is connectivity with Google’s DNS public server.
Scenario
Step 1: Run command interfaces cellular cell0 show device-info
at DUT0
and expect this output:
Show output
Module Manufacturer = Quectel Module Model = EM06E Module Firmware = EM06ELAR04A20M4G Hardware Revision = 20000 IMEI = 866680043220203 Radio Interfaces = umts, lte Data Service Capability = non-simultaneous-cs-ps Maximum TX/RX rate supported = 50000/100000 Kbps
Note
With the previous command it is shown that the radio interfaces supported by the cellular interface cell0 are: umts, lte. This means that this interface only supports network modes: wcdma, lte
Note
Once this is known, the cellular interface cell0 will be configured to use the different supported network modes. So first, it will be configured with the network mode wcdma.
Step 2: 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+A8KYj8Ux23KqzAAUbgextj1Un8Jt/p7E= set interfaces cellular cell0 network mode wcdma set interfaces cellular cell0 profile CELPROFILE set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Note
Once the changes have been applied, with the following operational command it can be checked if the SIM and registration states are correct, and also if the network technology currently in use is the expected.
Step 3: 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* = registered Network technology currently in use\s* = umtsShow 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 = umts Current Service Domain registered = cs-ps (capable cs-ps) Current Roaming status = off 3GPP Location Area Code = 2867 3GPP Cell ID = 224698041 Radio Band = wcdma-2100 Channel = 10788 WCDMA Primary Scrambling Code (PSC) = 114 WCDMA High-Speed Call Status = hsdpa-hsupa-unsupported WCDMA High-Speed Service Indication = hsdpa-hsupa-unsupported EcIo (dB) = -2.5 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 4: 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) = 8640000 Max. RX channel rate (bps) = 8682000 IPv4 address = 2.143.38.23 IPv4 mask = 255.255.255.240 IPv4 gateway = 2.143.38.24 IPv4 primary DNS = 80.58.61.250 IPv4 secondary DNS = 80.58.61.254
Note
And also, with the following command it can be checked if the cellular interface has been correctly configured by the DHCP client.
Step 5: 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.38.23/28 up up fe80::c1d:e4ff:feb8:497/64
Note
Finally, it can be verified that there is connectivity with Google’s DNS public server.
Step 6: 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=276 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 275.675/275.675/275.675/0.000 ms
Note
Now, the network mode of the cellular interface cell0 will be changed to lte.
Step 7: Modify the following configuration lines in DUT0
:
set interfaces cellular cell0 network mode lte
Note
Once the changes have been applied, with the following operational command it can be checked if the SIM and registration states are correct, and also if the network technology currently in use is the expected.
Step 8: 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* = registered Network technology currently in use\s* = lteShow 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) = -8 RSSI (dBm) = -39 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) = -49 SINR (dB) = 19 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 9: 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 = 176.82.50.95 IPv4 mask = 255.255.255.192 IPv4 gateway = 176.82.50.96 IPv4 primary DNS = 80.58.61.250 IPv4 secondary DNS = 80.58.61.254
Note
And also, with the following command it can be checked if the cellular interface has been correctly configured by the DHCP client.
Step 10: 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 176.82.50.95/26 up up fe80::c1d:e4ff:feb8:497/64
Note
Finally, it can be verified that there is connectivity with Google’s DNS public server.
Step 11: 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.5 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 43.463/43.463/43.463/0.000 ms