Command Line Reference
5G Interface Configuration
10 min
5g interface configuration 5g interface configuration show cellular status 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 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 3gnet acl acl 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 1 nat zone nat 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 1 network mode \[lte] \[nr5g] \[wcdma] \[auto] network 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 nr5g sim slot sim 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 2 network reset \[command] network reset \[purpose] reset the 5g interface module \[view] interface configuration view \[use cases] sonic(config cellular 1)# network reset
