Chinaunix首页 | 论坛 | 博客
  • 博客访问: 663676
  • 博文数量: 779
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 5000
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-27 13:28
文章分类

全部博文(779)

文章存档

2011年(1)

2008年(778)

我的朋友

分类:

2008-10-27 13:36:19


   的热备份(HSRP)可以在工作站A的确省网关失效时提供一个备份路由器,HSRP可以创建一个具有虚拟MAC地址和虚拟IP地址的虚拟路由器。
  
   假设有两个路由器Bluestudy A和Bluestudy B,通过两路指向路由器Bluestudy C:
  
   对于Bluestudy A,假设E0/0的IP地址为192.168.1.1/24对应内部网络是192.168.1.0/24 S0/0的IP地址为192.168.2.1/24 对应外部网络是192.168.2.0/24。
  
   对于Bluestudy B,假设E0/0的IP地址为192.169.1.2/24 对应内部网络是192.168.1.0/24 S0/0的IP地址为192.168.3.1/24 对应外部网络是192.168.3.0/24。
  
   虚拟IP地址为192.168.1.3/24
  
   对于Bluestudy C,因与本实验无太大联系,暂时不做说明。
  
   下面给出两只路由器的配置,其中将Bluestudy A作为主路由器,Bluestudy B作为备份路由器。其中给出Bluestudy A的优先级为120,而Bluestudy B采用默认优先级100,这样就可以使Bluestudy A成为主路由器。
  
  Bluestudy A:
  
  Interface ethernet0/0
  
  Ip address 192.168.1.1 255.255.255.0
  
  No ip redirects
  
  Standby 1 priority 120
  
  Standby 1 preempt
  
  Standby 1 ip 192.168.1.3
  
  !
  
  interface serial0/0
  
  ip address 192.168.2.1 255.255.255.0
  
  no shut
  
  !
  
  router igrp 100
  
  network 192.168.1.0
  
  network 192.168.2.0
  
   
  
  Bluestudy B:
  
  Interface ethernet0/0
  
  Ip address 192.168.1.2 255.255.255.0
  
  Standby 1 preempt
  
  Standby 1 ip 192.168.1.3
  
  !
  
  interface serial0/0
  
  ip address 192.168.3.1 255.255.255.0
  
  no shut
  
  !
  
  router igrp 100
  
  network 192.168.1.0
  
  network 192.168.3.0
  
  只要将相应的下连主机的网关设成 192.168.1.3就可以了.
  
  如上是的双机热备份配置,如有疑问可以与站长联系共同探讨。
  
  
【责编:admin】

--------------------next---------------------

阅读(361) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~