5G Interface Configuration Guide
The device supports communication via cellular networks after a SIM card is inserted. The module supports 3G/4G/5G networks and dual SIM cards. For Slot 1 (the upper slot), insert the SIM card with the chip facing down and the notch facing inward. For Slot 2 (the lower slot), insert the SIM card with the chip facing up and the notch facing inward.
5G Interface Configuraton
Section titled “5G Interface Configuraton”Create a 5G Interface
Section titled “Create a 5G Interface”| Operation | Command | Description |
|---|---|---|
| Enter the system configuration view | configure | |
| Create a 5G interface | interface cellular 1 | |
| Configure dial-up | dial-up apn string | |
| Enable nat translation | nat-zone 1 |
Create a route
Section titled “Create a route”| Operation | Command | Description |
|---|---|---|
| Enter the system configuration view | configure | |
| Create a route | ip route A.B.C.D/M cellular 1 |
Example of 5G Interface Configuration
Section titled “Example of 5G Interface Configuration”Network requirements
The company requires that the internal network be able to translate private IP addresses to public IP addresses and connect to the wide area network via a cellular network.

Procedure
sonic(config)# vlan 100sonic(config)# dhcp pool testsonic(config-dhcp-pool-test)# network 100.0.0.1 255.255.255.0sonic(config-dhcp-pool-test)# address-pool 100.0.0.100 100.0.0.200sonic(config-dhcp-pool-test)# dns 114.114.114.114sonic(config-dhcp-pool-test)# routers 100.0.0.1sonic(config)# nat enablesonic(config)# interface ethernet 1sonic(config-if-1)# switchport access vlan 100sonic(config)# interface vlan 100sonic(config-vlanif-100)# dhcp select serversonic(config-vlanif-100)# ip address 100.0.0.1/24sonic(config)# interface cellular 1sonic(config-cellular-1)# dial-up apn 3gnetsonic(config-cellular-1)# nat-zone 1sonic(config)# ip route 0.0.0.0/0 cellular 1Example of 5G Interface as a backup port
Section titled “Example of 5G Interface as a backup port”Network requirements
The company requires that the internal network be able to translate private IP addresses to public IP addresses, connect to the wide area network via physical ports, and use the 5G interface as a backup exit.

Procedure
sonic(config)# vlan 100sonic(config)# dhcp pool testsonic(config-dhcp-pool-test)# network 100.0.0.1 255.255.255.0sonic(config-dhcp-pool-test)# address-pool 100.0.0.100 100.0.0.200sonic(config-dhcp-pool-test)# dns 114.114.114.114sonic(config-dhcp-pool-test)# routers 100.0.0.1sonic(config)# interface ethernet 1sonic(config-if-1)# switchport access vlan 100sonic(config)# interface vlan 100sonic(config-vlanif-100)# dhcp select serversonic(config-vlanif-100)# ip address 100.0.0.1/24sonic(config)# nat enablesonic(config)# nat pool test 10.0.0.100sonic(config)# nat binding test testsonic(config)# interface ethernet 2sonic(config-if-2)# ip address 10.0.0.100/24sonic(config-if-2)# nat-zone 1sonic(config)# interface cellular 1sonic(config-cellular-1)# dial-up apn 3gnetsonic(config-cellular-1)# nat-zone 1sonic(config)# sla 1 icmp-echo dst-ip 10.0.0.1sonic(config)# track 1sonic(config-track-1)# route 0.0.0.0/0 10.0.0.1sonic(config-track-1)# sla 1sonic(config)# ip route 0.0.0.0/0 cellular 1 10