Chinaunix首页 | 论坛 | 博客
  • 博客访问: 921466
  • 博文数量: 276
  • 博客积分: 4182
  • 博客等级: 上校
  • 技术积分: 4486
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-17 21:14
文章分类

全部博文(276)

文章存档

2014年(9)

2013年(132)

2012年(135)

分类:

2012-12-21 15:07:40

的热(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就可以了.

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