1、5G接口类型

       5G设备所使用的5G接口  标识  均为Cellular接口,SIC-5G-NR形成的5G接口类型为Cellular x/0(其中x为该模块所在的槽位号)

2、接口下常见命令解释:

1)配置apn号,

Ruijie(config-if-Cellular0/0)#profile create master apn   apn-string 

    //  非必配项,其中apn-string 为运营商分配的apn字符串,其中拨入公网无需配置APN,设备自动生成,

2)配置用户名和密码

Ruijie(config-if-Cellular0/0)#  profile create master username uname password 0 pw  

    //非必配项,配置拨号的用户名和密码为uname和pw

3)5G 网络接入模式选择

Ruijie(config-if-Cellular0/0)#   plmn mode    { auto | manual }   { nr-sa| lte | wcdma | gsm}

 //配置接入运营商制式模式,auto为自动接入此时5G为优先拨入,5G拨不上拨4G,4G拨不上拨3G,

    manual为强制接入某种制式,若配置为nr-sa 代表只会拨5G网,若此时没有5G信号,则设备无法拨上号

Ruijie(config-if-Cellular 1)# show cellular info network//查看当前网络接入模式。


4)配置认证方式切换  

profile authtype pap_protocol | chap_protocol | papchap_protocol   

5)配置通信链路检测

Ruijie(config)#ip rns 1

Ruijie(config-ip-rns)#icmp-echo 10.1.1.1 out-interface cellular 0/0

Ruijie(config-ip-rns-icmp-echo)#timeout 1000

Ruijie(config-ip-rns-icmp-echo)#frequency 1000

Ruijie(config)#track 1 rns 1

Ruijie(config-track)#delay down 2

Ruijie(config-track)#delay up 2

Ruijie(config)# interface cellular 0/0

Ruijie(config-if-Cellular0/0)#  profile create master track   track_id  

    // 推荐配置,配置track能够实时探测链路的通信状态,并在发生通信中断时重新发起拨号,使链路通信尽快恢复。

有关track 配置消耗流量解释:

注意:配置TRACK联动链路探测,会产生额外的流量费用,具体计算方法如下:

1个icmp request/reply报文大小=100(icmp头+负载)+20(ip头)=120bytes

1个探测周期流量=120(icmp request)+120(icmp reply)=240bytes

探测周期为10秒情况下,探测1天所产生的流量=240*6*60*24=2073600bytes=2.07MB

探测周期为10秒情况下,探测1个月所产生的流量=2.07*30=62.1MB

6)配置感兴趣流触发拨号

Ruijie(config)# access-list 100    permit ip any host 7.7.7.7  

Ruijie(config)#interface cellular 0/0  

Ruijie(config-if-Cellular 0/0)# apply detect dial-list 100  

Ruijie(config-if-Cellular 0/0)# apply dial-on-demand  

 //配置兴趣流触发拨号功能,根据 ACL ID 为 100 的 ACL 规则作为触发 5G 拨号的条件,即源地址为任意、目的地址为 7.7.7.7 的 IP 报文会触发 5G 拨号

7)配置5G接口做有线链路备份

Ruijie(config)#interface Cellular 2/0       // cell接口编号和 show slot 槽位号相同  

Ruijie(config-if-Cellular 1)# apply detect interface vlan 10 track 10  

Ruijie(config-if-Cellular 1)# apply dial-on-demand  

 //在5G接口启用灾备探测,当track 10反馈的结果为down的时候,5G接口自动执行拨号。当TRACK 10返回结果为up的时候,5G停止拨号

8)HSIC-5G-NR线卡配置5g接入优先  

interface Cellular 2/0       // cell接口编号和 show slot 槽位号相同  

plmn mode auto   //配置执行自动选择当前的接入模式,若支持NSA模式,则会优先自动接入NSA 5G网络