3G Modem典型配置

合集下载
相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

3G Modem特性典型配置案例

DHCP配置举例

1.1 组网需求

AR1910通过固定口连接到Internet,通过3G Modem通过3G网络连接到Internet。

图 1 同一子网内动态地址分配组网图

3G Modem的普通DCC拨号应用

1. 配置信息

#

acl number 3000

rule 0 permit ip

#

dns resolve

dns proxy enable

dns server 221.130.33.60

dns server 221.130.33.52

#

interface Cellular0/0

nat outbound 3000

async mode protocol

link-protocol ppp

ppp ipcp dns request

ip address ppp-negotiate

dialer enable-circular

dialer-group 1

dialer timer idle 60

dialer number *99#

#

ip route-static 0.0.0.0 0.0.0.0 Cellular0/0

#

dialer-rule 1 ip permit

#

user-interface tty 1

modem both

#

2. 主要配置步骤

1) 配置感兴趣流量

[H3C]dialer-rule 1 ip permit

2) 配置modem允许呼出

[H3C]user-interface tty 0

[H3C-ui-tty0] modem both

3) 配置cellular接口的拨号功能与NAT功能

[H3C]interface Cellular0/0

[H3C-Cellular0/0]async mode protocol

[H3C-Cellular0/0]ip address ppp-negotiate

[H3C-Cellular0/0]ppp ipcp dns request

[H3C-Cellular0/0]dialer enable-circular

[H3C-Cellular0/0]dialer-group 1

[H3C-Cellular0/0]dialer timer idle 60

[H3C-Cellular0/0]dialer number *99#

4) 配置本地DNS解析与DNS代理功能

[H3C]dns resolve

[H3C]dns proxy enable

[H3C]dns server 221.130.33.60

[H3C]dns server 221.130.33.52

5) 配置ACL,并在Cellular接口上启用NAT

[H3C]acl number 3000

[H3C-acl-adv-3000]rule 0 permit ip

[H3C-acl-adv-3000]interface Cellular0/0

[H3C-Cellular0/0]nat outbound 3000

6) 配置静态路由

[H3C]ip route-static 0.0.0.0 0.0.0.0 Cellular0/0

3. 验证步骤

1) 查看3G Modem的状态信息

dis ce 0/0 all

Modem State:

Hardware Information

====================

Modem Firmware Version = 11.304.17.00.00

Hardware Version = CD96TCPU

International Mobile Subscriber Identity (IMSI) = 460020263407632

International Mobile Equipment Identity (IMEI) = 359298019050464

Factory Serial Number (FSN) = EV5TAB2842800069

Modem Status = Online

Profile Information

====================

Profile 1 = ACTIVE

--------

PDP Type = IPv4, Header Compression = OFF

Data Compression = OFF

Access Point Name (APN) = 100

Packet Session Status = Inactive

* - Default profile

Network Information

===================

Current Service Status = Service available

Current Service = Combined

Packet Service = Attached

Packet Session Status = Inactive

Current Roaming Status = Roaming

Network Selection Mode = Manual

Mobile Country Code (MCC) = 460

Mobile Network Code (MNC) = 00

Location Area Code (LAC) = 4318

Cell ID = 25381

Radio Information

=================

Current Band = ANY

Current RSSI = -51 dBm

Modem Security Information

==========================

Card Holder Verification (CHV1) = Disabled

SIM Status = OK

2) 没有呼叫时的接口状态:

dis int ce

Cellular0/0 current state: DOWN

Line protocol current state: UP (spoofing)

Description: Cellular0/0 Interface

The Maximum Transmit Unit is 1500, Hold timer is 10(sec)

Internet protocol processing : disabled

Link layer protocol is PPP

LCP initial

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

Physical layer is asynchronous, Baudrate is 9600 bps

Last clearing of counters: Never

Last 5 seconds input rate 0.00 bytes/sec, 0 bits/sec, 0.00 packets/sec

Last 5 seconds output rate 0.00 bytes/sec, 0 bits/sec, 0.00 packets/sec

Input: 55 packets, 3961 bytes

0 broadcasts, 0 multicasts

0 errors, 0 runts, 0 giants

0 CRC, 0 align errors, 0 overruns

0 dribbles, 0 aborts, 0 no buffers

0 frame errors

Output:43 packets, 3140 bytes

0 errors, 0 underruns, 0 collisions

0 deferred

DCD=DOWN DTR=DOWN DSR=DOWN RTS=DOWN CTS=DOWN

3) 触发拨号以及建立呼叫后的Modem状态与Cellular接口状态:

ping -c 1

PING (202.108.22.5):

56 data bytes, press CTRL_C to break

%Dec 2 10:26:19:650 2008 H3C IFNET/4/LINK UPDOWN:

Cellular0/0: link status is UP

%Dec 2 10:26:19:655 2008 H3C IFNET/4/UPDOWN:

Line protocol on the interface Cellular0/0 is UP

%Dec 2 10:26:20:229 2008 H3C IFNET/4/UPDOWN:

Protocol PPP IPCP on the interface Cellular0/0 is UP

*Dec 2 10:26:20:230 2008 H3C RM/3/RMDEBUG:

Receive invalid vlink addr(0)

Request time out

--- ping statistics ---

1 packet(s) transmitted

0 packet(s) received

100.00% packet loss

ping -c 1

PING (202.108.22.5):

56 data bytes, press CTRL_C to break

Reply from 202.108.22.5: bytes=56 Sequence=1 ttl=52 time=563 ms

--- ping statistics ---

1 packet(s) transmitted

1 packet(s) received

相关文档
最新文档