[在此处键入][在此处键入][在此处键入]H3cMSR36004G拨号上网配置测试文档整理目录测试拓扑...................................................................................................................................2测试详细配置及说明...............................................................................................................3验证及调试命令.......................................................................................................................5displayipinterfacebrief....................................................................................................5Ping....................................................................................................................................5disinterfaceEth-channel2/0:0.........................................................................................5displaycellular...................................................................................................................6重启4GMODEM..............................................................................................................9查看NAT转换................................................................................................................10查看路由表.....................................................................................................................12版本文件.................................................................................................................................13完整配置文件.........................................................................................................................13配置关键点及注意事项.........................................................................................................13常见故障处理:.....................................................................................................................13拨号连接不上.................................................................................................................133G/4GModem状态不正常...........................................................................................15[在此处键入][在此处键入][在此处键入]测试拓扑说明:PC与路由器G0/1接口互连,配置同网段IP[H3C]discuintg0/1#interfaceGigabitEthernet0/1portlink-moderouteipaddress192.168.100.100255.255.255.0#ReturnPC的IP配置,注意PC需要配置网关地址(即路由器接口地址)路由器软件版本:0605P10,如下详细显示:[H3C]disversionH3CComwareSoftware,Version7.1.064,Release0605P10Copyright(c)2004-2017HangzhouH3CTech.Co.,Ltd.Allrightsreserved.[在此处键入][在此处键入][在此处键入]H3CMSR3600uptimeis0weeks,0days,1hour,13minutesLastrebootreason:PoweronBootimage:flash:/msr3600-cmw710-boot-r0605p10.binBootimageversion:7.1.064P37,Release0605P10CompiledApr01201716:00:00Systemimage:flash:/msr3600-cmw710-system-r0605p10.binSystemimageversion:7.1.064,Release0605P10CompiledApr01201716:00:00CPUID:0x11GbytesDDR3SDRAMMemory2MbytesFlashMemoryPCBVersion:2.0CPLDVersion:2.0BasicBootWareVersion:1.60ExtendedBootWareVersion:1.60[SLOT0]AUX(Hardware)2.0,(Driver)1.0,(CPLD)2.0[SLOT0]GE0/0(Hardware)2.0,(Driver)1.0,(CPLD)2.0[SLOT0]GE0/1(Hardware)2.0,(Driver)1.0,(CPLD)2.0[SLOT0]GE0/2(Hardware)2.0,(Driver)1.0,(CPLD)2.0[SLOT0]24GSW(Hardware)2.0,(Driver)1.0,(CPLD)2.0[SLOT0]SFP0/27(Hardware)2.0,(Driver)1.0,(CPLD)2.0[SLOT0]CELLULAR0/0(Hardware)2.0,(Driver)1.0,(CPLD)2.0[SLOT2]SIC-4G-LTE(Hardware)2.0,(Driver)1.1,(CPLD)1.0测试详细配置及说明#将Cellular接口通道化出同/异步串口,通道化之后,会在设备里面多出一个Eth-channel接口。[H3C]controllerCellular2/0#这个根据4G卡插槽来确定的。[H3C-Cellular0/0]eth-channel0[在此处键入][在此处键入][在此处键入]#配置拨号访问组1以及对应的拨号访问控制条件。[H3C]dialer-group1ruleippermit#配置ACL,匹配内网用户地址[H3C]aclnumber3000[H3C-acl-adv-3000]rule0permitipsource192.168.0.00.0.0.255#配置APN模板apn-profileCellular2/0#这个名字可以自定义apnstaticctnet#因为是电信卡,这里填ctnet,authentication-modepap-chapuserydzd@lessyyh.vpdn.scpasswordcipherwjb1583#这里用户名和密码由运营商提供#配置4G拨号接口,开启DNS请求、使能传统DDR、将接口加入拨号访问组1、配置DDR可以进行下一次呼叫的间隔时间为5秒,根据运营商设置拨号串,此处采用联通,设置拨号串为#777,并开启接口nat,匹配内网ACL3000,调用apn模板。如下:[H3C-Eth-channel2/0:0]interfaceEth-channel2/0:0[H3C-Eth-channel2/0:0]dialercircularenable#在接口上使能传统DDR[H3C-Eth-channel2/0:0]dialer-group1#将接口加入拨号访问组1[H3C-Eth-channel2/0:0]dialertimeridle0[H3C-Eth-channel2/0:0]dialertimerautodial5#下一次呼叫的间隔时间为5秒[H3C-Eth-channel2/0:0]dialernumber#777autodial#配置接口去往对端的拨号串,电信运营商配置#777[H3C-Eth-channel2/0:0]ipaddresscellular-alloc#接口下配置为动态获取IP[H3C-Eth-channel2/0:0]natoutbound3000#内网访问外网做NAT转换,匹配之前定义的ACL列表[H3C-Eth-channel2/0:0]apnapplyCellular2/0#这里调用之前定义的apn模板#[H3C]iproute-static0.0.0.00Eth-channel2/0:0#需要配置静态路由[在此处键入][在此处键入][在此处键入]验证及调试命令displayipinterfacebrief一定要看到动态获取IP地址并通过PC能ping通,表明连接成功。此地址每次动态获取不一定是相同的。Ping在电脑上ping路由器通过拨号动态获取的IP地址(这个地址不一定每次获取都相同的,会变化)。[H3C]disinterfaceEth-channel2/0:0[H3C]disinterfaceEth-channel2/0:0Eth-channel2/0:0Currentstate:UPLineprotocolstate:UPDescription:Eth-channel2/0:0InterfaceBandwidth:3100kbpsMaximumtransmissionunit:1500[在此处键入][在此处键入][在此处键入]Internetaddress:11.150.3.115/32(Cellular-Allocated)IPpacketframetype:EthernetII,hardwareaddress:00a0-d5ff-ff02IPv6packetframetype:EthernetII,hardwareaddress:00a0-d5ff-ff02Outputqueue-Urgentqueuing:Size/Length/Discards0/100/0Outputqueue-Protocolqueuing:Size/Length/Discards0/500/0Outputque