本文章适用于H3C MSR2010及以上硬件。
具体支持型号请查看以下文章:
前序:
H3C MSR2010路由器提供了3G上网功能,是通过USB 3G moden 上行。
为此在配置前请确认以下几点:
1.首先要确定3Gmoden的型号,并不是任意一个3Gmoden都能受到路由器的支持。
2.安装好SIM卡插上路由器,确保安装、连接没有错误。
3.配置路由器一定要通过Consel口去配置,别期待web界面,因为路由器在web下是检测不到3G的。
配置步骤:
1.正常连接路由器配置界面;
2.进入系统配置模式, sys (tab补全)
3.打开modem的呼出权限,先查看Cellular0/0对应的TTY接口,因为只有先知道此接口才能进去配置,运行命令 display user-interface
可以看见 usb端口对应的是 12
Idx Type Tx/Rx Modem Privi Auth Int
+ 0 CON 0 9600 - 3 N -
12 TTY 13 9600 inout 0 N Cellular0/0
177 AUX 0 9600 - 0 P -
178 VTY 0 - 1 A -
179 VTY 1 - 1 A -
180 VTY 2 - 1 A -
181 VTY 3 - 1 A -
182 VTY 4 - 1 A -
UI(s) not in async mode -or- with no hardware support:
1-12 14-176
+ : Current UI is active.
F : Current UI is active and work in async mode.
Idx : Absolute index of UIs.
Type : Type and relative index of UIs.
Privi: The privilege of UIs.
Auth : The authentication mode of UIs.
Int : The physical location of UIs.
A : Authentication use AAA.
L : Authentication use local database.
N : Current UI need not authentication.
P : Authentication use current UI's password.
4.对端口下进行配置:
user-interface tty 12 -----进入接口----
modem call-out ------------设置此端口为数据出端口----
5.对接口拨号的设置:
dialer-rule 1 ip permit ----设置入站规则----
interface Cellular0/0 ------进入usb端口----
ppp chap user xxx ------设置拨号验证帐号,不同的网络不一样,联通是card密码card 移动是admin 密码admin 电信为空
ppp chap password simple xxx ---设置密码 前面一定要有simple
ppp ipcp dns request ----自动协商dns
ip address ppp-negotiate -----拨号方式
dialer enable-circular ----开启自动
dialer-group 1 -----入站规则1
dialer timer idle 0 ----延时0
dialer number *99# ---拨号串,TD-SCDMA和WCDMA拨号串是"*99#",CDMA2000拨号串是"#777"
6.配置上网nat
nat outbound ---开启nat
quite ----返回
7.配置路由
ip route-static 0.0.0.0 0.0.0.0 Cellular0/0
8.配置DNS
dns resolve
dns proxy enable
dns server 223.108.33.67 ----此DNS根据不同的接入地点是不一样的--
9.配置内网地址
Interface Ethernet 0/0
Ip address 192.168.1.1 255.255.255.0 ----这个就不用说了----
quite
save ----这是最重要的-----
10.剩下的就是你的电脑配置了,设置IP等的呢,即可上网。。。
以上就是整个配置,具体其他什么valan等等的配置参照其他资料。





