07-无线4G命令
本章节下载: 07-无线4G命令 (164.59 KB)
H3C SecPath F1000-ServerBlade 服务器安全智能模块不支持此功能。
access-type命令用来选择4G的接入方式。
【命令】
access-type { apn | vpdn }
【缺省情况】
4G的接入方式为apn方式。
【视图】
cell4G0视图
【参数】
apn:接入点方式。
vpdn:虚拟专线方式。
【使用指导】
通常普通的上网使用apn方式;当需要私网时采用vpdn方式。如无特殊需求,建议使用apn方式。
apn方式无需额外配置拨号串、用户名、密码;vpdn需要配置专有的拨号串、用户名、密码。
【举例】
# 配置为apn接入方式。
host# system-view
host(config)# interface cell4G0
host(config-cell4G0)#access-type apn
【相关命令】
· dialer string dial-string
· auth username name
· auth password password
· display running-config interface
auth password命令用来配置vpdn接入方式时认证使用的密码。
【命令】
auth password password
【视图】
cell4G0视图
【参数】
password:使用vpdn接入方式时,4G所使用的认证密码。可输入字母、数字、符号,最多可输入31个字符。
【使用指导】
当4G使用vpdn接入方式时,需要配置该密码。
【举例】
# 配置vpdn接入时的用户名。
host# system-view
host(config)# interface cell4G0
host(config-cell4G0)#access-type vpdn
host(config-cell4G0)#dialer passwordabc123~@#
【相关命令】
· access-type vpdn
· display running-config interface
auth username命令用来配置vpdn接入方式时认证使用的用户名。
【命令】
auth username name
【视图】
cell4G0视图
【参数】
name:使用vpdn接入方式时,4G所使用的认证用户名。为1~31个字符的字符串,且不能包含“%!"#$&`*+,/:;<=>?\^'{}!”。
【使用指导】
当4G使用vpdn接入方式时,需要配置该用户名。
【举例】
# 配置vpdn接入时的用户名。
host# system-view
host(config)# interface cell4G0
host(config-cell4G0)#access-type vpdn
host(config-cell4G0)#dialer usernameabc123
【相关命令】
· access-type vpdn
· display running-config interface
demand idle-disconnect time命令用来配置按需拨号的断线时间间隔。
【命令】
demand idle-disconnect time time
【缺省情况】
按需拨号断开连接的时间间隔为10分钟。
【视图】
cell4G0视图
【参数】
time:按需拨号成功后,在该段时间内没有流量,则自动断开连接。取值范围为5~1800秒,默认为10分钟。
【使用指导】
本命令配合按需在线方式使用。
【举例】
# 配置按需在线的断开时间。
host# system-view
host(config)# interface cell4G0
host(config-cell4G0)#demand idle-disconnect time 300
【相关命令】
· dialer mode demand
· display running-config interface
dialer mode命令用来配置4G上网的在线方式。
【命令】
dialer mode { always-online|demand }
【缺省情况】
4G的在线方式为demand。
【视图】
cell4G0视图
【参数】
always-online:常在线上网方式。
demand:按需拨号上网方式。
【使用指导】
设备通过4G上网需要设备上有4G上网卡。
always-online在线方式是4G卡拨号成功后保持一直在线的状态,不断开连接;demand在线方式是根据设备上是否有流量产生进行拨号上网,当一定时间内没有流量后,4G卡自动断开连接。建议采用demand的在线方式。
【举例】
# 配置为按需拨号的在线方式。
host# system-view
host(config)# interface cell4G0
host(config-cell4G0)#dialer mode demand
【相关命令】
· demand idle-disconnect time time
· display running-config interface
dialer string命令用来配置vpdn接入方式时的拨号串。
【命令】
dialer string dial-string
【视图】
cell4G0视图
【参数】
dial-string:使用vpdn接入方式时,4G所使用的拨号串。可输入字母、数字、符号,最多可输入31个字符。
【使用指导】
当4G使用vpdn接入方式时,需要配置该拨号串。
【举例】
# 配置vpdn接入时的拨号串。
host# system-view
host(config)# interface cell4G0
host(config-cell4G0)#access-type vpdn
host(config-cell4G0)#dialer string ss1!~@
【相关命令】
· access-type vpdn
· display running-config interface
display interface cell4G0命令用来显示4G的信息。
【命令】
display interface cell4G0
【视图】
用户视图
【举例】
# 插上4G卡之后,显示4G信息。
host# display interface cell4G0
----------------------------------------------------------------------
interface cell4G0
description:
Admin UP Link UP
kernel ID: 272
MTU: 1500
modem info:
Modem state : In place
Equipment type : E261
Manufacturers : Huawei
Equipment serial number : 861586005822354
Hardware version : V3.1
Software version : 11.126.16.10.112
Transmission ability : +CGSM,+DS,+ES
uim info:
UIM card status : In place
ISMI information : 460015462747415
network info:
Cellular network state : LINK DOWN
Access network : CHINA_UNICOM
Signal strength : 2
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!