欢迎来到天天文库
浏览记录
ID:1772165
大小:43.00 KB
页数:4页
时间:2017-11-13
《hsrp监视端口配置》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、BasicHSRPConfigurationWithTrackInterface关键字HSRPVRRP热备份冗余端口追踪拓朴实验说明 某企业为实现用户24小时不间断上网业务,使用两台路由器进行热备(HSRP). 企业PC只需网关设定为HSRP指定的网关(192.168.0.100)即可. 如果R2的连接互联网的接口发生问题,则将HSRPActive切向R1.[HRSP监视端口功能]配置R1的配置!hostnameR1!interfaceFastEthernet0/0ipaddress192.168.0.1255.255.255.0duplexhalfstandby1ip192.16
2、8.0.100//HSRP虚拟网关standby1preempt! R2的配置!hostnameR2!interfaceFastEthernet0/0ipaddress192.168.0.2255.255.255.0duplexhalfstandby1ip192.168.0.100standby1priority120standby1preemptstandby1trackSerial3/030//监视S3/0接口,如果接口down,优先级值减30!调试 在R2上查看HSRP状态R2#showstandbyFastEthernet0/0-Group1StateisActive 4s
3、tatechanges,laststatechange00:00:37 VirtualIPaddressis192.168.0.100 ActivevirtualMACaddressis0000.0c07.ac01LocalvirtualMACaddressis0000.0c07.ac01(default) Hellotime3sec,holdtime10sec Nexthellosentin1.856secs PreemptionenabledActiverouterislocal Standbyrouteris192.168.0.1,priority100(expiresin
4、9.992sec) Priority120(configured120) TrackinterfaceSerial3/0stateUpdecrement30 IPredundancynameis"hsrp-Fa0/0-1"(default)现在我们在R2上关闭S3/0接口,模拟此互联网接口发生故障R2#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.R2(config)#ints3/0R2(config-if)#shR2#*Feb2200:49:37.743:%SYS-5-CONFIG_I:Configuredfr
5、omconsolebyconsole*Feb2200:49:38.551:%LINK-5-CHANGED:InterfaceSerial3/0,changedstatetoadministrativelydown*Feb2200:49:38.575:%HSRP-5-STATECHANGE:FastEthernet0/0Grp1stateActive->Speak*Feb2200:49:39.551:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial3/0,changedstatetodownR2#showstandbyFastEthe
6、rnet0/0-Group1StateisStandby//现在变为Standby状态了 6statechanges,laststatechange00:00:00 VirtualIPaddressis192.168.0.100 ActivevirtualMACaddressis0000.0c07.ac01LocalvirtualMACaddressis0000.0c07.ac01(default) Hellotime3sec,holdtime10sec Nexthellosentin2.348secs PreemptionenabledActiverouteris192.168.
7、0.1,priority100(expiresin8.576sec) Standbyrouterislocal Priority90(configured120) TrackinterfaceSerial3/0stateDowndecrement30 IPredundancynameis"hsrp-Fa0/0-1"(default)再将S3/0接口打开,我们可以观察到R2又得到了Active状态R2#conftEnterconfigurationcommands,on
此文档下载收益归作者所有