中国移动的gprs网络,使用APN方式连接gprs设备终端,通过APN与服务器通讯,客户买的是cisco 2811路由器,移动公司的光纤拉过来需要用E1口,又花了1000多RMB配了一个E1模块,移动公司的人办事相当差劲,光纤的接头之类的全不提供,又花XXRMB买了一个转换,最终折腾一通以后csico 2881路由配置参数如下:
cisco2811#show run
Building configuration...
Current configuration : 2808 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname cisco2811
!
boot-start-marker
boot-end-marker
!
logging buffered 51200 warnings
enable password 7 111818160018
!
aaa new-model
!
!
aaa authentication login default local
aaa authorization exec default local
!
aaa session-id common
!
resource policy
!
no network-clock-participate wic 0
ip subnet-zero
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.253.1 192.168.253.99
ip dhcp excluded-address 192.168.253.200 192.168.253.255
!
ip dhcp pool DHCP
network 192.168.253.0 255.255.255.0
dns-server xxx.xxx.xx.xx7 xxx.xxx.xx.171
default-router 192.168.253.254
!
!
no ip domain lookup
ip domain name yourdomain.com
!
username admin password 7 044A0A15182B4B5E1B0A1718071F0916
!
!
controller E1 0/0/0
channel-group 0 unframed
!
controller E1 0/0/1
channel-group 0 unframed
!
!
interface FastEthernet0/0
description swj_internal_port
ip address 192.168.253.254 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0:0
description chinamobile_port
ip address xxx.xxx.xxx.206 255.255.255.252
ip nat outside
encapsulation ppp
!
interface Serial0/0/1:0
no ip address
!
ip classless
ip route 0.0.0.0 0.0.0.0 xxx.xxx.xxx.205
!
no ip http server
ip http authentication local
ip http timeout-policy idle 60 life 86400 requests 10000
ip nat pool chinamobilepool xxx.xxx.xxx.206 xxx.xxx.xxx.206 netmask 255.255.255.252
ip nat inside source route-map mobile pool chinamobilepool overload
ip nat inside source static tcp 192.168.253.2 443 xxx.xxx.xxx.206 443 extendable
ip nat inside source static tcp 192.168.253.1 2006 xxx.xxx.xxx.206 2006 extendable
!
access-list 1 permit 192.168.253.0 0.0.0.255
route-map mobile permit 10
match ip address 1
match interface Serial0/0/0:0
!
!
control-plane
!
banner motd ^C^C
!
line con 0
password 7 071E205F5903
line aux 0
line vty 0 4
privilege level 15
password 7 140613181B0E
transport input telnet
line vty 5 15
access-class 23 in
privilege level 15
transport input telnet
!
scheduler allocate 20000 1000
!
end
cisco2811#
当然这里面还缺APN相关的通道配置参数,这都JB半个月了,APN卡还没办下来呢,拿到APN通道配置参数以后再发吧。另外能不用cisco的路由就绝对不会再用cisco了,一点服务意识也没有,想问个E1模块还要什么密码之类的