Check Multi Apn Connection

This scenario shows how to configure up to four cellular interfaces on the same cellular module, each associated with a different APN. As a result, more than one data interface can be used to access the network, requiring only one cellular module.

../../../../_images/googlemultiapn.svg

Test ICMP Connectivity

Description

In DUT0, four cellular interfaces are defined, each associated with a different cellular profile and PDP (Packet Data Protocol) context. Once configured, the ‘Ping’ command is used to check the connectivity of all four data interfaces with Google’s public DNS server.

Scenario

Step 1: Set the following configuration in DUT0 :

set cellular profile CELPROFILE1 apn movistar.es
set cellular profile CELPROFILE2 apn telefonica.es
set cellular profile CELPROFILE3 apn internet
set cellular profile CELPROFILE4 apn internet2
set controllers cellular wwan0 encrypted-pin U2FsdGVkX18hmWQf0TTW1w167anrpxE2NK2V8SSaPG8=
set controllers cellular wwan0 pdp 1 profile CELPROFILE1
set controllers cellular wwan0 pdp 2 profile CELPROFILE2
set controllers cellular wwan0 pdp 3 profile CELPROFILE3
set controllers cellular wwan0 pdp 4 profile CELPROFILE4
set interfaces cellular cell0 address dhcp
set interfaces cellular cell0 phy wwan0 pdp 1
set interfaces cellular cell1 address dhcp
set interfaces cellular cell1 phy wwan0 pdp 2
set interfaces cellular cell2 address dhcp
set interfaces cellular cell2 phy wwan0 pdp 3
set interfaces cellular cell3 address dhcp
set interfaces cellular cell3 phy wwan0 pdp 4
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Once the cellular module is configured, with the following operational command it can be checked if the SIM and registration states are correct.

Step 2: Run the command controllers cellular wwan0 show network-status on DUT0 and check whether the output matches the following regular expressions:

SIM status\s* = OK
Registration state\s* = registered
Show output
SIM status = OK
Registration state = registered
Public Land Mobile Network code = 21407
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 = 73254686
Radio Band = eutran-8
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) = -84
RSRQ (dB) = -6
RSSI (dBm) = -57
SINR (dB) = 14
Uplink Bandwidth = 20 MHz
Secondary Cell Info #0:
Band = E-UTRA Band 20
Frequency = 6400
Downlink Bandwidth = 10 MHz
Physical Cell ID = 195
Scell State = inactive
RSRP (dBm) = -88
RSRQ (dB) = -7
RSSI (dBm) = -71
SINR (dB) = 12
RX level (dBm) = -86
Coverage level = 5 (*****)

Note

On the other hand, with the following commands it can be checked if all four contexts have correctly established the connection to the network.

Step 3: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the 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                    = 2.143.46.96
IPv4 mask                       = 255.255.255.192
IPv4 gateway                    = 2.143.46.97
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 4: Run the command controllers cellular wwan0 pdp 2 show network-data-connection on DUT0 and check whether the 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                    = 10.222.107.226
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 10.222.107.225
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 5: Run the command controllers cellular wwan0 pdp 3 show network-data-connection on DUT0 and check whether the 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                    = 10.180.148.237
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 10.180.148.238
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 6: Run the command controllers cellular wwan0 pdp 4 show network-data-connection on DUT0 and check whether the 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                    = 10.212.129.94
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 10.212.129.93
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Note

Additionally, with the previous operational commands, the IP addresses that have been provided by the operator to be used by each cellular interface are displayed. So, with the following commands, it can be checked if all four cellular interfaces have been correctly configured by the DHCP client.

Step 7: Run the command interfaces cellular cell0 show on DUT0 and check whether the 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  2.143.46.96/26                up     up
fe80::98c4:cfff:fe76:2262/64

Step 8: Run the command interfaces cellular cell1 show on DUT0 and check whether the output matches the following regular expressions:

cell1\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell1  10.222.107.226/30             up     up
fe80::98c4:cfff:fe76:2262/64

Step 9: Run the command interfaces cellular cell2 show on DUT0 and check whether the output matches the following regular expressions:

cell2\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell2  10.180.148.237/30             up     up
fe80::98c4:cfff:fe76:2262/64

Step 10: Run the command interfaces cellular cell3 show on DUT0 and check whether the output matches the following regular expressions:

cell3\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell3  10.212.129.94/30              up     up
fe80::98c4:cfff:fe76:2262/64

Note

Once everything above has been verified, we can be sure that all four cellular interfaces have been configured correctly and that there must be connectivity with the network from each of them. The latter can be verified, for example, by pinging Google's DNS public server.

Step 11: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell0 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 2.143.46.96 cell0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=118 time=22.2 ms

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

Step 12: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell1 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.222.107.226 cell1: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=171 ms

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

Step 13: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell2 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.180.148.237 cell2: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 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.262/106.262/106.262/0.000 ms

Step 14: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell3 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.212.129.94 cell3: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=172 ms

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

Step 1: Set the following configuration in DUT0 :

set cellular profile CELPROFILE1 apn movistar.es
set cellular profile CELPROFILE2 apn telefonica.es
set cellular profile CELPROFILE3 apn internet
set cellular profile CELPROFILE4 apn internet2
set controllers cellular wwan0 sim select socket_1
set controllers cellular wwan0 sim socket socket_1 encrypted-pin U2FsdGVkX19tLkUc8rQ25fq59HRjUL9nyWVOytrBnuc=
set controllers cellular wwan0 sim socket socket_1 pdp 1 profile CELPROFILE1
set controllers cellular wwan0 sim socket socket_1 pdp 2 profile CELPROFILE2
set controllers cellular wwan0 sim socket socket_1 pdp 3 profile CELPROFILE3
set controllers cellular wwan0 sim socket socket_1 pdp 4 profile CELPROFILE4
set interfaces cellular cell0 address dhcp
set interfaces cellular cell0 phy wwan0 pdp 1
set interfaces cellular cell1 address dhcp
set interfaces cellular cell1 phy wwan0 pdp 2
set interfaces cellular cell2 address dhcp
set interfaces cellular cell2 phy wwan0 pdp 3
set interfaces cellular cell3 address dhcp
set interfaces cellular cell3 phy wwan0 pdp 4
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Once the cellular module is configured, with the following operational command it can be checked if the SIM and registration states are correct.

Step 2: Run the command controllers cellular wwan0 show network-status on DUT0 and check whether the output matches the following regular expressions:

SIM status\s* = OK
Registration state\s* = registered
Show output
SIM status = OK
Registration state = registered
Public Land Mobile Network code = 21407
Public Land Mobile Network name = Movistar
Network technology currently in use = lte(+5gnr)
Current Service Domain registered = cs-ps (capable cs-ps)
Current Roaming status = off
3GPP Cell ID = 73254686
Radio Band = eutran-3
Bandwidth = 20
Channel = 1301
LTE Tracking Area Code (TAC) = 28673
EN-DC Available = yes
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) = -81
RSRQ (dB) = -9
RSSI (dBm) = -55
SINR (dB) = 12
Uplink Bandwidth = 20 MHz
Secondary Cell Info #0:
Band = E-UTRA Band 20
Frequency = 6400
Downlink Bandwidth = 10 MHz
Physical Cell ID = 195
Scell State = inactive
RSRP (dBm) = -82
RSRQ (dB) = -11
RSSI (dBm) = -63
SINR (dB) = 6
RX level (dBm) = -78
Coverage level = 5 (*****)

Note

On the other hand, with the following commands it can be checked if all four contexts have correctly established the connection to the network.

Step 3: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 37.12.74.19
IPv4 mask                       = 255.255.255.248
IPv4 gateway                    = 37.12.74.20
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 4: Run the command controllers cellular wwan0 pdp 2 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 10.223.94.73
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 10.223.94.74
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 5: Run the command controllers cellular wwan0 pdp 3 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 10.115.247.241
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 10.115.247.242
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 6: Run the command controllers cellular wwan0 pdp 4 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 10.33.121.98
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 10.33.121.97
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Note

Additionally, with the previous operational commands, the IP addresses that have been provided by the operator to be used by each cellular interface are displayed. So, with the following commands, it can be checked if all four cellular interfaces have been correctly configured by the DHCP client.

Step 7: Run the command interfaces cellular cell0 show on DUT0 and check whether the 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.74.19/29                up     up
fe80::e8e1:62ff:fe42:dfc0/64

Step 8: Run the command interfaces cellular cell1 show on DUT0 and check whether the output matches the following regular expressions:

cell1\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell1  10.223.94.73/30               up     up
fe80::e8e1:62ff:fe42:dfc0/64

Step 9: Run the command interfaces cellular cell2 show on DUT0 and check whether the output matches the following regular expressions:

cell2\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell2  10.115.247.241/30             up     up
fe80::e8e1:62ff:fe42:dfc0/64

Step 10: Run the command interfaces cellular cell3 show on DUT0 and check whether the output matches the following regular expressions:

cell3\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell3  10.33.121.98/30               up     up
fe80::e8e1:62ff:fe42:dfc0/64

Note

Once everything above has been verified, we can be sure that all four cellular interfaces have been configured correctly and that there must be connectivity with the network from each of them. The latter can be verified, for example, by pinging Google's DNS public server.

Step 11: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell0 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 37.12.74.19 cell0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=144 ms

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

Step 12: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell1 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.223.94.73 cell1: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=137 ms

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

Step 13: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell2 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.115.247.241 cell2: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=157 ms

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

Step 14: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell3 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.33.121.98 cell3: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=150 ms

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

Step 1: Set the following configuration in DUT0 :

set cellular profile CELPROFILE1 apn movistar.es
set cellular profile CELPROFILE2 apn telefonica.es
set cellular profile CELPROFILE3 apn internet
set cellular profile CELPROFILE4 apn internet2
set controllers cellular wwan0 sim select socket_1
set controllers cellular wwan0 sim socket socket_1 encrypted-pin U2FsdGVkX1/LX7s/iMRezMJA7UsfIR49URCrToNUJkc=
set controllers cellular wwan0 sim socket socket_1 pdp 1 profile CELPROFILE1
set controllers cellular wwan0 sim socket socket_1 pdp 2 profile CELPROFILE2
set controllers cellular wwan0 sim socket socket_1 pdp 3 profile CELPROFILE3
set controllers cellular wwan0 sim socket socket_1 pdp 4 profile CELPROFILE4
set interfaces cellular cell0 address dhcp
set interfaces cellular cell0 phy wwan0 pdp 1
set interfaces cellular cell1 address dhcp
set interfaces cellular cell1 phy wwan0 pdp 2
set interfaces cellular cell2 address dhcp
set interfaces cellular cell2 phy wwan0 pdp 3
set interfaces cellular cell3 address dhcp
set interfaces cellular cell3 phy wwan0 pdp 4
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Once the cellular module is configured, with the following operational command it can be checked if the SIM and registration states are correct.

Step 2: Run the command controllers cellular wwan0 show network-status on DUT0 and check whether the output matches the following regular expressions:

SIM status\s* = OK
Registration state\s* = registered
Show output
SIM status = OK
Registration state = registered
Public Land Mobile Network code = 21407
Public Land Mobile Network name = Movistar
Network technology currently in use = lte(+5gnr)
Current Service Domain registered = cs-ps (capable cs-ps)
Current Roaming status = off
3GPP Cell ID = 72016415
Radio Band = eutran-20
Bandwidth = 10
Channel = 6400
LTE Tracking Area Code (TAC) = 28673
EN-DC Available = yes
DCNR Restriction = no
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) = -66
RSRQ (dB) = -6
RSSI (dBm) = -42
SINR (dB) = 16
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) = -78
RSRQ (dB) = -9
RSSI (dBm) = -62
SINR (dB) = 14
RX level (dBm) = -65
Coverage level = 5 (*****)

Note

On the other hand, with the following commands it can be checked if all four contexts have correctly established the connection to the network.

Step 3: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 88.31.104.120
IPv4 mask                       = 255.255.255.240
IPv4 gateway                    = 88.31.104.121
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 4: Run the command controllers cellular wwan0 pdp 2 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 10.108.82.107
IPv4 mask                       = 255.255.255.248
IPv4 gateway                    = 10.108.82.108
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 5: Run the command controllers cellular wwan0 pdp 3 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 10.27.135.99
IPv4 mask                       = 255.255.255.248
IPv4 gateway                    = 10.27.135.100
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 6: Run the command controllers cellular wwan0 pdp 4 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 10.220.164.195
IPv4 mask                       = 255.255.255.248
IPv4 gateway                    = 10.220.164.196
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Note

Additionally, with the previous operational commands, the IP addresses that have been provided by the operator to be used by each cellular interface are displayed. So, with the following commands, it can be checked if all four cellular interfaces have been correctly configured by the DHCP client.

Step 7: Run the command interfaces cellular cell0 show on DUT0 and check whether the 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  88.31.104.120/28             up     up
fe80::cc9:eaff:fee0:65e4/64

Step 8: Run the command interfaces cellular cell1 show on DUT0 and check whether the output matches the following regular expressions:

cell1\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
-----------------------------------------------------------------
Name           IP Address           Admin  Oper  Vrf  Description
-----------------------------------------------------------------
cell1  10.108.82.107/29             up     up
fe80::cc9:eaff:fee0:65e4/64

Step 9: Run the command interfaces cellular cell2 show on DUT0 and check whether the output matches the following regular expressions:

cell2\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
-----------------------------------------------------------------
Name           IP Address           Admin  Oper  Vrf  Description
-----------------------------------------------------------------
cell2  10.27.135.99/29              up     up
fe80::cc9:eaff:fee0:65e4/64

Step 10: Run the command interfaces cellular cell3 show on DUT0 and check whether the output matches the following regular expressions:

cell3\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
-----------------------------------------------------------------
Name           IP Address           Admin  Oper  Vrf  Description
-----------------------------------------------------------------
cell3  10.220.164.195/29            up     up
fe80::cc9:eaff:fee0:65e4/64

Note

Once everything above has been verified, we can be sure that all four cellular interfaces have been configured correctly and that there must be connectivity with the network from each of them. The latter can be verified, for example, by pinging Google's DNS public server.

Step 11: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell0 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 88.31.104.120 cell0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=118 time=29.9 ms

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

Step 12: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell1 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.108.82.107 cell1: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=185 ms

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

Step 13: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell2 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.27.135.99 cell2: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=179 ms

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

Step 14: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell3 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.220.164.195 cell3: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=127 ms

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

Step 1: Set the following configuration in DUT0 :

set cellular profile CELPROFILE1 apn movistar.es
set cellular profile CELPROFILE2 apn telefonica.es
set cellular profile CELPROFILE3 apn internet
set cellular profile CELPROFILE4 apn internet2
set controllers cellular wwan0 sim select socket_1
set controllers cellular wwan0 sim socket socket_1 encrypted-pin U2FsdGVkX1935n4zseRu+DTf136/Pq0ZIii+SVit+k8=
set controllers cellular wwan0 sim socket socket_1 pdp 1 profile CELPROFILE1
set controllers cellular wwan0 sim socket socket_1 pdp 2 profile CELPROFILE2
set controllers cellular wwan0 sim socket socket_1 pdp 3 profile CELPROFILE3
set controllers cellular wwan0 sim socket socket_1 pdp 4 profile CELPROFILE4
set interfaces cellular cell0 address dhcp
set interfaces cellular cell0 phy wwan0 pdp 1
set interfaces cellular cell1 address dhcp
set interfaces cellular cell1 phy wwan0 pdp 2
set interfaces cellular cell2 address dhcp
set interfaces cellular cell2 phy wwan0 pdp 3
set interfaces cellular cell3 address dhcp
set interfaces cellular cell3 phy wwan0 pdp 4
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Once the cellular module is configured, with the following operational command it can be checked if the SIM and registration states are correct.

Step 2: Run the command controllers cellular wwan0 show network-status on DUT0 and check whether the output matches the following regular expressions:

SIM status\s* = OK
Registration state\s* = registered
Show output
SIM status = OK
Registration state = registered
Public Land Mobile Network code = 21407
Public Land Mobile Network name = Movistar
Network technology currently in use = lte(+5gnr)
Current Service Domain registered = cs-ps (capable cs-ps)
Current Roaming status = off
3GPP Cell ID = 72016415
Radio Band = eutran-20
Bandwidth = 10
Channel = 6400
LTE Tracking Area Code (TAC) = 28673
EN-DC Available = yes
DCNR Restriction = no
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) = -71
RSRQ (dB) = -6
RSSI (dBm) = -47
SINR (dB) = 16
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) = -85
RSRQ (dB) = -9
RSSI (dBm) = -67
SINR (dB) = 13
RX level (dBm) = -71
Coverage level = 5 (*****)

Note

On the other hand, with the following commands it can be checked if all four contexts have correctly established the connection to the network.

Step 3: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 2.143.41.26
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 2.143.41.25
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 4: Run the command controllers cellular wwan0 pdp 2 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 10.69.215.132
IPv4 mask                       = 255.255.255.248
IPv4 gateway                    = 10.69.215.133
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 5: Run the command controllers cellular wwan0 pdp 3 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 10.112.240.170
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 10.112.240.169
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 6: Run the command controllers cellular wwan0 pdp 4 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 10.214.165.82
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 10.214.165.81
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Note

Additionally, with the previous operational commands, the IP addresses that have been provided by the operator to be used by each cellular interface are displayed. So, with the following commands, it can be checked if all four cellular interfaces have been correctly configured by the DHCP client.

Step 7: Run the command interfaces cellular cell0 show on DUT0 and check whether the 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  2.143.41.26/30           up     up
fe80::50:f4ff:fe00:1/64

Step 8: Run the command interfaces cellular cell1 show on DUT0 and check whether the output matches the following regular expressions:

cell1\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
-------------------------------------------------------------
Name         IP Address         Admin  Oper  Vrf  Description
-------------------------------------------------------------
cell1  10.69.215.132/29         up     up
fe80::50:f4ff:fe00:2/64

Step 9: Run the command interfaces cellular cell2 show on DUT0 and check whether the output matches the following regular expressions:

cell2\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
-------------------------------------------------------------
Name         IP Address         Admin  Oper  Vrf  Description
-------------------------------------------------------------
cell2  10.112.240.170/30        up     up
fe80::50:f4ff:fe00:3/64

Step 10: Run the command interfaces cellular cell3 show on DUT0 and check whether the output matches the following regular expressions:

cell3\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
-------------------------------------------------------------
Name         IP Address         Admin  Oper  Vrf  Description
-------------------------------------------------------------
cell3  10.214.165.82/30         up     up
fe80::50:f4ff:fe00:4/64

Note

Once everything above has been verified, we can be sure that all four cellular interfaces have been configured correctly and that there must be connectivity with the network from each of them. The latter can be verified, for example, by pinging Google's DNS public server.

Step 11: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell0 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 2.143.41.26 cell0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 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.175/34.175/34.175/0.000 ms

Step 12: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell1 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.69.215.132 cell1: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=119 ms

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

Step 13: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell2 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.112.240.170 cell2: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=138 ms

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

Step 14: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell3 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.214.165.82 cell3: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=169 ms

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

Step 1: Set the following configuration in DUT0 :

set cellular profile CELPROFILE1 apn movistar.es
set cellular profile CELPROFILE2 apn telefonica.es
set cellular profile CELPROFILE3 apn internet
set cellular profile CELPROFILE4 apn internet2
set controllers cellular wwan0 sim select socket_1
set controllers cellular wwan0 sim socket socket_1 encrypted-pin U2FsdGVkX1+wAzwwhZ0MtkgOoji7RF/w9qm/uN4c4Iw=
set controllers cellular wwan0 sim socket socket_1 pdp 1 profile CELPROFILE1
set controllers cellular wwan0 sim socket socket_1 pdp 2 profile CELPROFILE2
set controllers cellular wwan0 sim socket socket_1 pdp 3 profile CELPROFILE3
set controllers cellular wwan0 sim socket socket_1 pdp 4 profile CELPROFILE4
set interfaces cellular cell0 address dhcp
set interfaces cellular cell0 phy wwan0 pdp 1
set interfaces cellular cell1 address dhcp
set interfaces cellular cell1 phy wwan0 pdp 2
set interfaces cellular cell2 address dhcp
set interfaces cellular cell2 phy wwan0 pdp 3
set interfaces cellular cell3 address dhcp
set interfaces cellular cell3 phy wwan0 pdp 4
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Once the cellular module is configured, with the following operational command it can be checked if the SIM and registration states are correct.

Step 2: Run the command controllers cellular wwan0 show network-status on DUT0 and check whether the output matches the following regular expressions:

SIM status\s* = OK
Registration state\s* = registered
Show output
SIM status = OK
Registration state = registered
Public Land Mobile Network code = 21407
Public Land Mobile Network name = Movistar
Network technology currently in use = lte(+5gnr)
Current Service Domain registered = cs-ps (capable cs-ps)
Current Roaming status = off
3GPP Cell ID = 73254686
Radio Band = eutran-3
Bandwidth = 20
Channel = 1301
LTE Tracking Area Code (TAC) = 28673
EN-DC Available = yes
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) = -84
RSRQ (dB) = -7
RSSI (dBm) = -57
SINR (dB) = 8
Uplink Bandwidth = 20 MHz
Secondary Cell Info #0:
Band = E-UTRA Band 20
Frequency = 6400
Downlink Bandwidth = 10 MHz
Physical Cell ID = 195
Scell State = inactive
RSRP (dBm) = -91
RSRQ (dB) = -10
RSSI (dBm) = -70
SINR (dB) = 8
RX level (dBm) = -78
Coverage level = 3 (***  )

Note

On the other hand, with the following commands it can be checked if all four contexts have correctly established the connection to the network.

Step 3: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 5.205.182.24
IPv4 mask                       = 255.255.255.240
IPv4 gateway                    = 5.205.182.25
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 4: Run the command controllers cellular wwan0 pdp 2 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 10.221.0.191
IPv4 mask                       = 255.255.255.128
IPv4 gateway                    = 10.221.0.192
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 5: Run the command controllers cellular wwan0 pdp 3 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 10.109.218.183
IPv4 mask                       = 255.255.255.240
IPv4 gateway                    = 10.109.218.184
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 6: Run the command controllers cellular wwan0 pdp 4 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 10.71.164.82
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 10.71.164.81
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Note

Additionally, with the previous operational commands, the IP addresses that have been provided by the operator to be used by each cellular interface are displayed. So, with the following commands, it can be checked if all four cellular interfaces have been correctly configured by the DHCP client.

Step 7: Run the command interfaces cellular cell0 show on DUT0 and check whether the 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  5.205.182.24/28               up     up
fe80::30b9:d1ff:fe0d:836c/64

Step 8: Run the command interfaces cellular cell1 show on DUT0 and check whether the output matches the following regular expressions:

cell1\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell1  10.221.0.191/25               up     up
fe80::30b9:d1ff:fe0d:836c/64

Step 9: Run the command interfaces cellular cell2 show on DUT0 and check whether the output matches the following regular expressions:

cell2\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell2  10.109.218.183/28             up     up
fe80::30b9:d1ff:fe0d:836c/64

Step 10: Run the command interfaces cellular cell3 show on DUT0 and check whether the output matches the following regular expressions:

cell3\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell3  10.71.164.82/30               up     up
fe80::30b9:d1ff:fe0d:836c/64

Note

Once everything above has been verified, we can be sure that all four cellular interfaces have been configured correctly and that there must be connectivity with the network from each of them. The latter can be verified, for example, by pinging Google's DNS public server.

Step 11: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell0 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 5.205.182.24 cell0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=118 time=38.4 ms

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

Step 12: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell1 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.221.0.191 cell1: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=128 ms

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

Step 13: Ping the IP address 8.8.8.8 from DUT0:

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

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

Step 14: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell3 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.71.164.82 cell3: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=144 ms

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