首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试配置HWIC-3G-HSPA

尝试配置HWIC-3G-HSPA
EN

Server Fault用户
提问于 2012-03-15 00:56:32
回答 1查看 1.7K关注 0票数 1

我正在尝试配置几条思科1941的线路。这两个路由器都是相同的。分别作为一个HWIC-1T (智能串行接口)和一个HWIC- 3G -HSPA3G接口。这些路由器将被发送到远程站点。我们有到其中一个站点的连接,但是如果远程站点A下降了,我们就失去了与远程站点B的连接。

HWIC-1T是使用帧中继连接两个远程站点的主要广域网接口。

我们希望HWIC-3G-HSPA能够用于从总部到远程站点B的直接连接,并且HWIC-3G-HSPA在帧中继中断时用于远程站点之间的通信(经常发生)。

我最初尝试使用EIGRP进行动态路由,但是在我的实验室设置的笔记本电脑-1941-1941-笔记本电脑,我无法获得端到端的连接。我后来决定了静态路由,并获得了端到端连接,但只有通过帧中继,而不是HWIC-3G-HSPA。

远程站点A的净化运行配置:

代码语言:javascript
复制
version 15.1
service tcp-keepalives-in
service tcp-keepalives-out
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
service udp-small-servers
service tcp-small-servers
!
hostname remoteA
!
boot-start-marker
boot-end-marker
!
!
logging buffered 51200 warnings
enable secret 5 censored
!
no aaa new-model
clock timezone wst 8 0
!
no ipv6 cef
ip source-route
ip cef
!
ip domain name yourdomain.com
multilink bundle-name authenticated
!
chat-script gsm "" "ATDT*98*1#" TIMEOUT 30 "CONNECT"
!
username admin privilege 15 secret 5 censored
!
controller Cellular 0/1
!
interface Embedded-Service-Engine0/0
 no ip address
 shutdown
!
interface GigabitEthernet0/0
 ip address 192.168.2.5 255.255.255.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial0/0/0
 ip address 10.1.1.2 255.255.255.252
 encapsulation frame-relay
 cdp enable
 frame-relay interface-dlci 16
 frame-relay lmi-type ansi
!
interface Cellular0/1/0
 ip address negotiated
 encapsulation ppp
 dialer in-band
 dialer idle-timeout 2147483
 dialer string gsm
 dialer-group 1
 async mode interactive
 ppp chap hostname censored
 ppp chap password 7 censored
 cdp enable
!
interface Cellular0/1/1
 no ip address
 encapsulation ppp
!
interface Dialer0
 no ip address
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 Serial0/0/0 210 permanent
ip route 0.0.0.0 0.0.0.0 Cellular0/1/0 220 permanent
ip route 172.31.2.0 255.255.255.0 Cellular0/1/0 permanent
ip route 192.168.3.0 255.255.255.0 10.1.1.1 permanent
ip route 192.168.3.0 255.255.255.0 Cellular0/1/0 210 permanent
!
access-list 1 permit any
dialer-list 1 protocol ip list 1
!
control-plane
!
line con 0
 logging synchronous
 login local
line aux 0
line 2
 no activation-character
 no exec
 transport preferred none
 transport input all
 transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
 stopbits 1
line 0/1/0
 exec-timeout 0 0
 script dialer gsm
 login
 modem InOut
 no exec
 transport input all
 rxspeed 7200000
 txspeed 5760000
line 0/1/1
 no exec
 rxspeed 7200000
 txspeed 5760000
line vty 0 4
 access-class 23 in
 privilege level 15
 password 7 censored
 login local
 transport input all
line vty 5 15
 access-class 23 in
 privilege level 15
 password 7 censored
 login local
 transport input all
line vty 16 1370
 password 7 censored
 login
 transport input all
!
scheduler allocate 20000 1000
end

远程站点B的经过消毒的运行配置:

代码语言:javascript
复制
version 15.1
service tcp-keepalives-in
service tcp-keepalives-out
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
service udp-small-servers
service tcp-small-servers
!
hostname remoteB
!
boot-start-marker
boot-end-marker
!
logging buffered 51200 warnings
enable secret 5 censored
!
no aaa new-model
clock timezone wst 8 0
!
no ipv6 cef
ip source-route
ip cef
!
no ip domain lookup
ip domain name yourdomain.com
multilink bundle-name authenticated
!
chat-script gsm "" "ATDT*98*1#" TIMEOUT 30 "CONNECT"
username admin privilege 15 secret 5 censored
!
controller Cellular 0/1
!
interface Embedded-Service-Engine0/0
 no ip address
 shutdown
!
interface GigabitEthernet0/0
 ip address 192.168.3.1 255.255.255.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial0/0/0
 ip address 10.1.1.1 255.255.255.252
 encapsulation frame-relay
 clock rate 2000000
 cdp enable
 frame-relay interface-dlci 16
 frame-relay lmi-type ansi
 frame-relay intf-type dce
!
interface Cellular0/1/0
 ip address negotiated
 encapsulation ppp
 dialer in-band
 dialer idle-timeout 2147483
 dialer string gsm
 dialer-group 1
 async mode interactive
 ppp chap hostname censored
 ppp chap password 7 censored
 ppp ipcp dns request
 cdp enable
!
interface Cellular0/1/1
 no ip address
 encapsulation ppp
!
interface Dialer0
 no ip address
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 Serial0/0/0 210 permanent
ip route 0.0.0.0 0.0.0.0 Cellular0/1/0 220 permanent
ip route 172.31.2.0 255.255.255.0 Cellular0/1/0 permanent
ip route 192.168.2.0 255.255.255.0 10.1.1.2 permanent
ip route 192.168.2.0 255.255.255.0 Cellular0/1/0 210 permanent
!
kron occurrence PING in 1 recurring
 policy-list ICMP
!
access-list 1 permit any
dialer-list 1 protocol ip list 1
!
control-plane
!
line con 0
 logging synchronous
 login local
line aux 0
line 2
 no activation-character
 no exec
 transport preferred none
 transport input all
 transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
 stopbits 1
line 0/1/0
 exec-timeout 0 0
 script dialer gsm
 login
 modem InOut
 no exec
 transport input all
 rxspeed 7200000
 txspeed 5760000
line 0/1/1
 no exec
 rxspeed 7200000
 txspeed 5760000
line vty 0 4
 access-class 23 in
 privilege level 15
 password 7 censored
 login
 transport input all
line vty 5 15
 access-class 23 in
 privilege level 15
 password 7 censored
 login
 transport input all
line vty 16 1370
 password 7 censored
 login
 transport input all
!
scheduler allocate 20000 1000
end

我遇到的最后一个问题是,3G接口在几分钟不活动之后就会中断。我尝试过每分钟使用kron来平本地HWIC-3G-HSPA接口(蜂窝0/1/0),但这没有成功。手动将分配给ce0/1/0的IP发送到CE0/1/0确实提高了接口。

有什么想法吗?

谢谢

EN

回答 1

Server Fault用户

发布于 2012-03-25 22:36:26

您可以设置一个假GRE隧道,以便发送数据包以维护接口。

代码语言:javascript
复制
router(config)# int tun0
router(config-if)# ip unnunbered <lan interface>
router(config-if)# tunnel mode gre
router(config-if)# tunnel source <lan interface>
router(config-if)# tunnel dest <default 3G gateway>

隧道也可以是任何IP为您有一条路线通过3G。隧道将保持不动(因为保持活着的消息不会被回复),但是发送的保持生命将迫使3G接口保持不动。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/369870

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档