cisco HSRP的配置实例

Cisco的热备份路由协议(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就可以了
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章