5G Interface Configuration
5G Interface Configuration
show cellular status 1
[Command]
show cellular status 1
[Purpose]
Display SIM card information
[View]
System view
[Use Cases]
sonic# show cellular status
5G Serving Cell Info
----------------------------------------
state : NOCONN
rat : NR5G-SA
duplex : TDD
mcc : 460
mnc : 00
cellid : A0117F001
pcid : 286
tac : 1000D7
arfcn : 504990
band : 41
bandwidth : 12
rsrp : -84
sinr : -10
rsrq : 10
----------------------------------------dial-up apn string [user username] [password password] [auth auth] [ipv4] [ipv6] [ipv4v6] [pincode pincode]
[Command]
dial-up apn string [user username] [password password] [auth auth] [ipv4] [ipv6] [ipv4v6] [pincode pincode]
[Purpose]
Dial-up Configuration
[Parameter]
Parameter | Description |
|---|---|
apn | Access Point Name |
user | dial-up username |
password | dial-up password |
auth | Authentication Type |
ipv4 | Request an IPv4 address |
ipv6 | Request an IPv6 address |
ipv4v6 | Request both IPv4 and IPv6 addresses |
pincode | SIM card PIN |
[View]
Interface configuration view
[Use Cases]
sonic(config)# interface cellular 1
sonic(config-cellular-1)# dial-up apn 3gnetacl table_name priority 1-65535
[Command]
acl table_name priority 1-65535
[Purpose]
Configure an ACL on the 5G interface
[Parameter]
Parameter | Description |
|---|---|
acl | Access-list table name |
priority | ACL Priority Configuration |
[View]
Interface configuration view
[Use Cases]
sonic(config-cellular-1)# acl test priority 1nat-zone 0-3
[Command]
nat-zone 0-3
[Purpose]
Enable NAT for the 5G interface
[View]
Interface configuration view
[Notes]
The default value is 0, which disables NAT. When set to 1–3, NAT is enabled.
[Use Cases]
sonic(config-cellular-1)# nat-zone 1network-mode [LTE] [NR5G] [WCDMA] [AUTO]
[Command]
network-mode [LTE] [NR5G] [WCDMA] [AUTO]
[Purpose]
Network mode, supports 3G/4G/5G
[Parameter]
Parameter | Description |
|---|---|
LTE | 4G network |
NR5G | 5G network |
WCDMA | 3G network |
AUTO | Automatically select the best network |
[View]
Interface configuration view
[Use Cases]
sonic(config-cellular-1)# network-mode NR5Gsim-slot 1-2
[Command]
sim-slot 1-2
[Purpose]
Switch SIM card slots
[View]
Interface configuration view
[Use Cases]
sonic(config-cellular-1)# sim-slot 2network-reset
[Command]
network-reset
[Purpose]
Reset the 5G interface module
[View]
Interface configuration view
[Use Cases]
sonic(config-cellular-1)# network-reset