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.

../../../../../_images/google1.svg

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 U2FsdGVkX19fU0BGdZHNLtye+i0DQXILTzjQx2m5xnI=
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* = umts
Show 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) = -71
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 4: Run command interfaces cellular cell0 show network-data-connection at DUT0 and check if output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 8640000
Max. RX channel rate (bps)      = 8682000
IPv4 address                    = 37.12.55.198
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 37.12.55.197
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+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell0  37.12.55.198/30               up     up
       fe80::7816:30ff:fee3:6c31/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 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=360 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 360.067/360.067/360.067/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* = lte
Show 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 = 72016415
Radio Band = eutran-20
Channel = 6400
LTE Tracking Area Code (TAC) = 28673
LTE Carrier Aggregation Info:
   Primary Cell Info:
      Band = E-UTRA Band 20
      Frequency = 6400
      Downlink Bandwidth = 10 MHz
      Physical Cell ID = 195
      Scell State = registered
      RSRP (dBm) = -73
      RSRQ (dB) = -10
      RSSI (dBm) = -45
      SINR (dB) = 10
      Uplink Bandwidth = 10 MHz
   Secondary Cell Info #0:
      Band = E-UTRA Band 3
      Frequency = 1301
      Downlink Bandwidth = 20 MHz
      Physical Cell ID = 216
      Scell State = inactive
      RSRP (dBm) = -84
      RSRQ (dB) = -8
      RSSI (dBm) = -66
      SINR (dB) = 12
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 interfaces cellular cell0 show network-data-connection at DUT0 and check if output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 50000000
Max. RX channel rate (bps)      = 300000000
IPv4 address                    = 176.82.165.32
IPv4 mask                       = 255.255.255.192
IPv4 gateway                    = 176.82.165.33
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+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell0  176.82.165.32/26              up     up
       fe80::7816:30ff:fee3:6c31/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 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=34.2 ms

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