H3c MSR 3600 4G拨号上网配置测试文档整理
测试拓扑
说明:PC与路由器G0/1 接口互连,配置同网段IP
[H3C]dis cu int g0/1
#
interface GigabitEthernet0/1
port link-mode route
ip address 192.168.100.100 255.255.255.0
#
Return
PC的IP配置,注意PC需要配置网关地址(即路由器接口地址)
路由器软件版本:0605P10 ,如下详细显示:
[H3C]dis version
H3C Comware Software, Version 7.1.064, Release 0605P10
Copyright (c) 2004-2017 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
H3C MSR3600 uptime is 0 weeks, 0 days, 1 hour, 13 minutes
Last reboot reason : Power on
Boot image: flash:/msr3600-cmw710-boot-r0605p10.bin
Boot image version: 7.1.064P37, Release 0605P10
Compiled Apr 01 2017 16:00:00
System image: flash:/msr3600-cmw710-system-r0605p10.bin
System image version: 7.1.064, Release 0605P10
Compiled Apr 01 2017 16:00:00
CPU ID: 0x1
1G bytes DDR3 SDRAM Memory
2M bytes Flash Memory
PCB Version: 2.0
CPLD Version: 2.0
Basic BootWare Version: 1.60
拨号连接不上Extended BootWare Version: 1.60
[SLOT 0]AUX (Hardware)2.0, (Driver)1.0, (CPLD)2.0
[SLOT 0]GE0/0 (Hardware)2.0, (Driver)1.0, (CPLD)2.0
[SLOT 0]GE0/1 (Hardware)2.0, (Driver)1.0, (CPLD)2.0
[SLOT 0]GE0/2 (Hardware)2.0, (Driver)1.0, (CPLD)2.0
[SLOT 0]24GSW (Hardware)2.0, (Driver)1.0, (CPLD)2.0
[SLOT 0]SFP0/27 (Hardware)2.0, (Driver)1.0, (CPLD)2.0
[SLOT 0]CELLULAR0/0 (Hardware)2.0, (Driver)1.0, (CPLD)2.0
[SLOT 2]SIC-4G-LTE (Hardware)2.0, (Driver)1.1, (CPLD)1.0
测试详细配置及说明
#将Cellular接口通道化出同/异步串口,通道化之后,会在设备里面多出一个Eth-channel接口。
[H3C] controller Cellular2/0 #这个根据4G卡插槽来确定的。
[H3C-Cellular0/0] eth-channel 0
# 配置拨号访问组1以及对应的拨号访问控制条件。
[H3C] dialer-group 1 rule ip permit
# 配置ACL,匹配内网用户地址
[H3C] acl number 3000
[H3C-acl-adv-3000] rule 0 permit ip source 192.168.0.0 0.0.0.255
#配置APN模板
apn-profile Cellular2/0 # 这个名字可以自定义
apn static ctnet # 因为是电信卡,这里填ctnet ,
authentication-mode pap-chap user *****************.sc password cipher wjb1583 #这里用户名和密码由运营商提供
#配置4G拨号接口,开启DNS请求、使能传统DDR、将接口加入拨号访问组1、配置DDR可以进行下一次呼叫的间隔时间为5秒,根据运营商设置拨号串,此处采用联通,设置拨号串为#777,并开启接口nat,匹配内网ACL 3000,调用apn模板。如下:
[H3C-Eth-channel2/0:0] interface Eth-channel2/0:0
[H3C-Eth-channel2/0:0] dialer circular enable #在接口上使能传统DDR
[H3C-Eth-channel2/0:0] dialer-group 1 #将接口加入拨号访问组1
[H3C-Eth-channel2/0:0] dialer timer idle 0
[H3C-Eth-channel2/0:0] dialer timer autodial 5 #下一次呼叫的间隔时间为5秒
[H3C-Eth-channel2/0:0] dialer number #777 autodial #配置接口去往对端的拨号串,电信运营商配置#777
[H3C-Eth-channel2/0:0] ip address cellular-alloc #接口下配置为动态获取IP
[H3C-Eth-channel2/0:0] nat outbound 3000 #内网访问外网做NAT转换,匹配之前定义的ACL列表
[H3C-Eth-channel2/0:0]apn apply Cellular2/0 #这里调用之前定义的apn模板
#
[H3C]ip route-static 0.0.0.0 0 Eth-channel2/0:0 #需要配置静态路由
验证及调试命令
display ip interface brief
一定要看到动态获取IP地址并通过PC能ping通,表明连接成功。此地址每次动态获取不一定是相同的。
Ping
在电脑上ping 路由器通过拨号动态获取的IP地址(这个地址不一定每次获取都相同的,会变化)。
[H3C]
dis interface Eth-channel 2/0:0
[H3C]dis interface Eth-channel 2/0:0
Eth-channel2/0:0
Current state: UP
Line protocol state: UP
Description: Eth-channel2/0:0 Interface
Bandwidth: 3100 kbps
Maximum transmission unit: 1500
Internet address: 11.150.3.115/32 (Cellular-Allocated)
IP packet frame type: Ethernet II, hardware address: 00a0-d5ff-ff02
IPv6 packet frame type: Ethernet II, hardware address: 00a0-d5ff-ff02
Output queue - Urgent queuing: Size/Length/Discards 0/100/0
Output queue - Protocol queuing: Size/Length/Discards 0/500/0
Output queue - FIFO queuing: Size/Length/Discards 0/75/0
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论