关于思科路由器的自动切换备份线路问题

发布时间:2024-05-17 15:58 发布:上海旅游网

问题描述:

我公司有一台思科2621路由器,目前接着电信的一根20M光纤和一根网通的2M的PCM线路,平时主要使用光纤上网,PCM作为备份,但也一直插在路由器S口上,但有一个问题,每次光纤出现故障时要通知ISP进行切换,这样很费时间,请问能不能作一个自动切换?如何配置?
希望熟悉的人能帮我看看能否改为自动切换,该如何配置,是否需要ISP配合在上端修改,谢谢了先.目前配置如下(公网IP分别以10.1.1.X和10.2.1.X代替)
Building configuration...

Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname BaiMai
!
logging buffered 4096 debugging
enable secret 5 $1$u0M0$yFYSYHQTQPV2zgtdxj85y1
!
!
!
!
!
ip subnet-zero
no ip domain-lookup
!
!
!
!
interface FastEthernet0/0
description to-internet
ip address 10.1.1.2 255.255.255.252
no ip directed-broadcast
ip nat outside
duplex auto
speed auto
!
interface Serial0/0
ip address 172.31.64.22 255.255.255.252
no ip directed-broadcast
ip nat outside
!
interface FastEthernet0/1
description inside-lan
ip address 10.2.1.1 255.255.255.248 secondary
ip address 192.168.168.1 255.255.255.0 secondary
ip address 10.1.1.5 255.255.255.248
no ip directed-broadcast
ip nat inside
speed auto
full-duplex
!
ip nat pool 112 10.2.1.5 10.2.1.5 netmask 255.255.255.248
ip nat inside source list 111 pool 112 overload
ip classless
ip route 0.0.0.0 0.0.0.0 10.1.1.1
no ip http server
!
access-list 111 permit ip 192.168.168.0 0.0.0.255 any
!
line con 0
transport input none
line aux 0
line vty 0 4
password 7 04590A0F0220451C5F4B54
login
!
no scheduler allocate
end

问题解答:

使用静态浮动路由
根据你的描述,电信光纤链路的路由优先级要高,网通的其次,所以修改静态路由的管理距离即可
例如
ip route 0.0.0.0 0.0.0.0 电信网关
ip route 0.0.0.0 0.0.0.0 网通网关 60
----
正常情况下,所有数据都走电信光纤;当光纤路由出问题,再走网通路由

...试下做个VRRP 或者HSRP

热点新闻