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 controllers cellular wwan0 show device-info at DUT0 and expect this output:
Show output
Module Manufacturer = Quectel Module Model = EM06E Module Firmware = EM06ELAR04A20M4G Hardware Revision = 20000 Modem/App Firmware = EM06ELAR04A20M4G 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 controllers cellular wwan0 encrypted-pin U2FsdGVkX1/BQVO6Y95Vuz4S1fjW4Uf3gSop1S062uE= set controllers cellular wwan0 network mode wcdma set controllers cellular wwan0 pdp 1 profile CELPROFILE set interfaces cellular cell0 address dhcp set interfaces cellular cell0 phy wwan0 pdp 1 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 controllers cellular wwan0 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 = 224698047 Radio Band = wcdma-900 Channel = 3034 WCDMA Primary Scrambling Code (PSC) = 114 WCDMA High-Speed Call Status = hsdpa-hsupa-unsupported WCDMA High-Speed Service Indication = hsdpa-hsupa-unsupported EcIo (dB) = -1.5 RX level (dBm) = -62 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 controllers cellular wwan0 pdp 1 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 = 88.31.89.36 IPv4 mask = 255.255.255.248 IPv4 gateway = 88.31.89.37 IPv4 primary DNS = 80.58.61.248 IPv4 secondary DNS = 80.58.61.249
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 88.31.89.36/29 up up fe80::4c13:cff:fe4c:b428/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=48.0 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 47.965/47.965/47.965/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 controllers cellular wwan0 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 controllers cellular wwan0 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: Band = E-UTRA Band 3 Frequency = 1301 Downlink Bandwidth = 20 MHz Physical Cell ID = 216 Scell State = registered RSRP (dBm) = -81 RSRQ (dB) = -6 RSSI (dBm) = -55 SINR (dB) = 16 Uplink Bandwidth = 20 MHz RX level (dBm) = -55 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 controllers cellular wwan0 pdp 1 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 = 37.13.164.106 IPv4 mask = 255.255.255.252 IPv4 gateway = 37.13.164.105 IPv4 primary DNS = 80.58.61.248 IPv4 secondary DNS = 80.58.61.249
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 37.13.164.106/30 up up fe80::4c13:cff:fe4c:b428/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=30.0 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 29.970/29.970/29.970/0.000 ms
Step 1: Run command controllers cellular wwan0 show device-info at DUT0 and expect this output:
Show output
Module Manufacturer = Quectel Module Model = RM520N-GL Module Firmware = RM520NGLAAR03A01M4G Hardware Revision = 20000 Modem/App Firmware = RM520NGLAAR03A01M4G_A0.300.A0.300 IMEI = 868371055763052 Radio Interfaces = umts, lte, 5gnr Data Service Capability = non-simultaneous-cs-ps Maximum TX/RX rate supported = 250000/3300000 Kbps
Note
With the previous command it is shown that the radio interfaces
supported by the cellular interface cell0 are:
umts, lte, 5gnr. 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 controllers cellular wwan0 sim select socket_1 set controllers cellular wwan0 sim socket socket_1 encrypted-pin U2FsdGVkX1/tGYVubjwS46JQwF2mmjd5HvvBz/6RPHI= set controllers cellular wwan0 sim socket socket_1 network mode wcdma set controllers cellular wwan0 sim socket socket_1 pdp 1 profile CELPROFILE set interfaces cellular cell0 address dhcp set interfaces cellular cell0 phy wwan0 pdp 1 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 controllers cellular wwan0 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 = 224698047 Radio Band = wcdma-900 Channel = 3034 WCDMA Primary Scrambling Code (PSC) = 114 WCDMA High-Speed Call Status = hsdpa-hsupa-unsupported WCDMA High-Speed Service Indication = hsdpa-hsupa-unsupported EcIo (dB) = 6 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 controllers cellular wwan0 pdp 1 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) = 8640000 IPv4 address = 2.143.47.75 IPv4 mask = 255.255.255.248 IPv4 gateway = 2.143.47.76 IPv4 primary DNS = 80.58.61.248 IPv4 secondary DNS = 80.58.61.249
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.47.75/29 up up fe80::8c99:b8ff:fe97:3d4e/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=115 time=180 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 179.671/179.671/179.671/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 controllers cellular wwan0 sim socket socket_1 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 controllers cellular wwan0 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 Bandwidth = 20 Channel = 1301 LTE Tracking Area Code (TAC) = 28673 EN-DC Available = no DCNR Restriction = no LTE Carrier Aggregation Info: Primary Cell Info: Band = E-UTRA Band 3 Frequency = 1301 Downlink Bandwidth = 20 MHz Physical Cell ID = 216 Scell State = registered RSRP (dBm) = -74 RSRQ (dB) = -7 RSSI (dBm) = -46 SINR (dB) = 16 Uplink Bandwidth = 20 MHz RX level (dBm) = -74 Coverage level = 4 (**** )
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 controllers cellular wwan0 pdp 1 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) = 0 Max. RX channel rate (bps) = 0 IPv4 address = 5.205.126.216 IPv4 mask = 255.255.255.240 IPv4 gateway = 5.205.126.217 IPv4 primary DNS = 80.58.61.248 IPv4 secondary DNS = 80.58.61.249
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 5.205.126.216/28 up up fe80::8c99:b8ff:fe97:3d4e/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=117 time=106 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 106.085/106.085/106.085/0.000 ms