当前位置:首页 > 双ISP线路出口路由器案例
主要思想是IP-SLA结合EEM来做到无人值守的 管控 给出R4的关键配置 这个题目没什么意义 现实中也不会出现·· ISP一般2家不会选同一家,所以流量不会负载均衡 ··· 如
果是2家 可以结合route-map或者静态路由来做才符合环境
1 ISP1中出现故障就 删除去往ISP1的默认路由 同时 挂载ACL 过滤192.168.2.0的流量 ISP1中故障恢复后放行192.168.2.0的流量 恢复默认路由
2 ISP2中出现故障就删除去往ISP2的默认路由 同时挂载ACL 过滤192.168.2.0的流量 ISP2中故障恢复后放行192.168.2.0的流量 恢复默认路由 全过程无人值守,切换不需要人为干预
R4:
track 1 ip sla 1 reachability !
track 2 ip sla 2 reachability ! ! ! !
! ! ! ! !
interface FastEthernet0/0 ip address 14.1.1.4 255.255.255.0 ip nat inside speed auto duplex auto !
interface FastEthernet0/1 ip address 34.1.1.4 255.255.255.0 ip nat outside speed auto duplex auto !
interface FastEthernet1/0 ip address 24.1.1.4 255.255.255.0 ip nat outside speed auto duplex auto !
interface FastEthernet1/1 no ip address shutdown speed auto duplex auto !
ip nat inside source route-map NAT1 interface FastEthernet0/1 overload ip nat inside source route-map NAT2 interface FastEthernet1/0 overload ip forward-protocol nd ! !
no ip http server no ip http secure-server
ip route 0.0.0.0 0.0.0.0 34.1.1.3 track 1 ip route 0.0.0.0 0.0.0.0 24.1.1.2 track 2 ip route 2.2.2.0 255.255.255.0 24.1.1.2 ip route 3.3.3.0 255.255.255.0 34.1.1.3 ip route 192.168.1.0 255.255.255.0 14.1.1.1 ip route 192.168.2.0 255.255.255.0 14.1.1.1 ! ip sla 1
icmp-echo 3.3.3.3 source-interface FastEthernet0/1 threshold 500 timeout 999 frequency 1
ip sla schedule 1 life forever start-time now ip sla 2
icmp-echo 2.2.2.2 source-interface FastEthernet1/0 threshold 500 timeout 999 frequency 1
ip sla schedule 2 life forever start-time now access-list 1 permit 192.168.1.0 0.0.0.255 access-list 1 permit 192.168.2.0 0.0.0.255 !
route-map NAT2 permit 10 match ip address 1
match interface FastEthernet1/0 !
route-map NAT1 permit 10 match ip address 1
match interface FastEthernet0/1 ! ! !
control-plane ! !
line con 0
exec-timeout 0 0 privilege level 15 logging synchronous stopbits 1 line aux 0 exec-timeout 0 0 privilege level 15 logging synchronous stopbits 1 line vty 0 4 login !
event manager applet TRACK_2_UP event track 2 state up
action 1.0 cli command \action 2.0 cli command \
action 3.0 cli command \action 4.0 cli command \
action 5.0 cli command \action 6.0 cli command \event manager applet TRACK_2_DOWN event track 2 state down action 1.0 cli command \action 2.0 cli command \
action 3.0 cli command \action 3.1 cli command \action 4.0 cli command \action 5.0 cli command \action 6.0 cli command \event manager applet TRACK1_1_DOWN event track 1 state down action 1.0 cli command \action 2.0 cli command \
action 3.0 cli command \action 3.1 cli command \action 4.0 cli command \
共分享92篇相关文档