发新帖

浮动静态路由配置步骤

[复制链接]
725 4 打印 上一主题 下一主题

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?注册

x
  浮动静态路由配置步骤:
  
  1、正确配置主干线路,保证其能正常通信
  
  2、配置主干线路的动态路由
  
  3、正确配置备份线路,保证其能正常通信
  
  4、配置通过备份线路的浮动静态路由
  
  ip route 目地子网地址 子网掩码 相邻路由器相邻端口地址 权值
  
  其中,权值数值越高其路由优先权越低权值范围在1-255之间
  
   
  
   
  
  实例:
  
  
  
  CISCO 2501-above的配置
  
  Current confignration:!version 11.2no service udp-small-servers
  
  no service tcp-small-servers
  
  !
  
  hostname above
  
  !
  
  enable secret 5 $1$O1aq$KxgpIA0Eulqug8SbCm6rd1
  
  enable password cisco
  
  !
  
  username down password 7 095C5E19
  
  chat-scrip lab ABORT ERROR ABORT BUSY ABORT "NO ANSWER" "" "AT H" OK "ATDT \T" TIMEOUT 60 CONNECT \c
  
  !
  
  interface Ethernet0
  
  ip address 192.192.193.1 255.255.255.0
  
  !interface Serial0
  
  iu address 192.192.192.1 255.255.255.0
  
  bandwidth 64
  
  clockrate 64000
  
  !
  
  interface Serial1
  
  no ip address
  
  shutdown
  
  interface Asyncl
  
  ip address 166.71.70.1 255.255.255.0
  
  encapsulation pppasync dynamic address
  
  async dynamic routing
  
  async mode dedicated
  
  dialer in-banddialer ip 166.71.70.2 name down modem-script lab broadcast 3631
  
  dialer-group 1
  
  no cdp enableppp authentication chap
  
  !router rip
  
  network 192.192.192.0
  
  network 192.192.193.0
  
  !
  
  no ip classless
  
  ip route 0.0.0.0 0.0.0.0 166.71.70.2 150
  
  ip route 192.192.191.0 255.255.255.0 166.71.70.2 150 ["4、配置通过备份线路的浮动静态路由 ip route 目地子网地址 子网掩码 相邻
  
  路由器相邻端口地址 权值 其中,权值数值越高其路由优先权越低权值范围在1-255之间 "]
  
  dialer-list 1 protocol ip permit
  
  !line con 0
  
  line aux 0
  
  modem InOutmodem autoconfigure discoverystopbits 1rxspeed 38400txspeed 38400flowcontrol hardware
  
  line vty 0 4
  
  no login
  
  !
  
  end
  
   
  
   
  
  Cisco 2501-down 的配置Current configuration:
  
  !
  
  version 11.2no service udp-small-serversno service tep-small-servers!hostname down!enable secret 5 $1$m8S4
  
  $InrkhnJDtCVtSvTpXO8v/0enable password cisco
  
  !
  
  username above password 7 095C5E19
  
  chat-script lab ABORT ERROR ABORT BUSY ABORT "NO ANSWER" "" "AT H" OK "ATDT \T" TIMEOUT 60 CONNECT \c
  
  !
  
  interface Ethernet0
  
  ip address 192.192.191.1 255.255.255.0
  
  !
  
  interface Serial0
  
  ip address 192.192.192.3 255.255.255.0
  
   
  
  !
  
  interface Serial1
  
  no ip address
  
  shutdown
  
  !
  
  interface Asyncl
  
  ip address 166.71.70.2 255.255.255.0encapsulation pppasync dynamic addressasync dynamic routingasync mode dedicateddialer in
  
  -banddialer map ip 166.71.70.1 name above modem-script lab broadcast 3621
  
  dialer-group 1
  
  no cdp enable
  
  ppp authentication chap
  
  !
  
  router rip network 192.192.192.0
  
  network 192.192.191.0
  
  !
  
  no ip classless
  
  ip route 0.0.0.0 0.0.0.0 166.71.70.1 150
  
  ip route 192.192.193.0 255.255.255.0 166.71.70.1 150
  
  dialer-list 1 protocol ip permit
  
  !
  
  line con 0
  
  line aux 0
  
  modem InOutmodem autoconfigure discovery
  
  stopbits 1
  
  rxspeed 38400
  
  txspeed 38400
  
  flowcontrol hardware
  
  line vty 0 4
  
  no login
  
  !
  

精彩评论4

沙发
荷叶玫瑰  新手上路  发表于 2012-2-12 08:19:35 | 只看该作者
楼主,继续努力啊~              
3
内存皇  新手上路  发表于 2012-2-12 09:16:03 | 只看该作者
楼主,你是否可学雷峰啊  ???????、
4
染小小  新手上路  发表于 2012-2-12 14:05:48 | 只看该作者
楼主 删了吧 都结冰了——长时间无人回复帖子都结冰了
5
zju  乞丐  发表于 2013-10-22 22:13:12 | 只看该作者
过来看看的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表