注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

欢迎光临shaying110的博客

RSed-ISPing

 
 
 

日志

 
 

路由器作双线分流和相互备份  

2007-08-03 15:21:00|  分类: CISCO网络 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
在一个路由器作双线分流和相互备份,这是真实的环境,以测试成功,当时是一个7204的路由器,内存太小,思科在NAT 这块不是很理想,后来,这实现以后,就不用了,太耗资源

ip sla monitor 1
type echo protocol ipIcmpEcho 172.168.0.1
ip sla monitor schedule 1 life forever start-time now
ip sla monitor 2
type echo protocol ipIcmpEcho 10.1.2.1
ip sla monitor schedule 2 life forever start-time now

!
track 121 rtr 1 reachability
!
track 122 rtr 2 reachability
!
class-map match-all bittorrent
!
!
!
interface FastEthernet1/0
description connect to dianxin
ip address 172.168.0.2 255.255.255.252
no ip proxy-arp
ip nat outside
ip virtual-reassembly
duplex full
!
interface FastEthernet2/0
description connect to neiwang
ip address 220.231.47.1 255.255.255.0 secondary
ip address 60.194.115.254 255.255.255.0
ip nat inside
ip virtual-reassembly
no ip route-cache cef
no ip route-cache
ip policy route-map NEXTHOP
duplex full
!
interface FastEthernet4/0
description connect to wangtong
ip address 10.1.2.146 255.255.255.0
no ip proxy-arp
ip nat outside
ip virtual-reassembly
duplex full
!
ip classless
ip route 0.0.0.0 0.0.0.0 172.168.0.1
ip route 0.0.0.0 0.0.0.0 10.1.2.1
!
no ip http server
!
ip nat pool dianxin 60.194.115.3 60.194.115.3 prefix-length 24
ip nat pool wangtong 220.231.47.3 220.231.47.3 prefix-length 24
ip nat inside source route-map dianxin pool dianxin
ip nat inside source route-map wangtong pool wangtong

access-list 10 permit 60.194.115.0 0.0.0.255
access-list 11 deny 60.194.115.0 0.0.0.255
access-list 11 permit 220.231.47.0 0.0.0.255
access-list 20 permit 220.231.47.0 0.0.0.255
access-list 21 deny 220.231.47.0 0.0.0.255
access-list 21 permit 60.194.115.0 0.0.0.255
access-list 111 permit ip any host 211.99.141.193
snmp-server community yg RW
no cdp run
!
route-map wangtong permit 10
match ip address 21
match interface FastEthernet4/0
!
route-map NEXTHOP permit 10
match ip address 10
set ip next-hop verify-availability 172.168.0.1 10 track 121
set ip next-hop 10.1.2.1
!
route-map NEXTHOP permit 20
match ip address 20
set ip next-hop verify-availability 10.1.2.1 20 track 122
set ip next-hop 172.168.0.1
!
route-map dianxin permit 10
match ip address 11
match interface FastEthernet1/0
!
!

ygjt#
  评论这张
 
阅读(240)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017