Cisco路由器双光纤线路冗余,负载均衡

       好久没有cisco了, 有些知识点都忘记了, 利用Cisco路由器做双光纤线路冗余,负载均衡,是很早以前做过的,那个时候是热点 ,现在不知怎样了 , 不管怎样 , 希望对关注这块的朋友,有些许的帮助。

      以下为简单的网络图:
     


       以下为路由器配置:
######################################################
Router#show run
Building configuration...
Current configuration : 1664 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
no aaa new-model
memory-size iomem 5
ip cef
!

no ip domain lookup
!
multilink bundle-name authenticated
!
!
!
track 111 rtr 1 reachability
!
track 222 rtr 2 reachability
!
!
!
interface FastEthernet0/0
ip address 59.x.x.195 255.255.255.248
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 61.x.x..2 255.255.255.252
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
!
ip route 0.0.0.0 0.0.0.0 59.x.x.193 track 111
ip route 0.0.0.0 0.0.0.0 61.x.x.1 track 222
!
!
ip http server
no ip http secure-server
ip nat inside source route-map 163 interface FastEthernet0/1 overload
ip nat inside source route-map cn2 interface FastEthernet0/0 overload
!
ip access-list extended allip
permit ip any any
!
ip sla 1
icmp-echo 59.x.x.193
timeout 1200
frequency 3
ip sla schedule 1 life forever start-time now
ip sla 2
icmp-echo 61.x.x.1
timeout 1200
frequency 3
ip sla schedule 2 life forever start-time now
access-list 1 permit 59.x.x.193
access-list 2 permit 61.x.x.1
!
!
route-map 163 permit 10
match ip address allip
match ip next-hop 2
!
route-map cn2 permit 10
match ip address allip
match ip next-hop 1
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end
Router#
#######################################################
可以实现负载均衡,在一条线断掉后,所有流量走另外一根线 ,实现冗余。

你可能感兴趣的:(职场,Cisco,休闲)