欢迎来到天天文库
浏览记录
ID:30929233
大小:171.04 KB
页数:6页
时间:2019-01-04
《热备份路由选择协议》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、HSRP(两朵云都代表外网,用了三个vian)C2192.168.1.88192.168.2.88192.168.3.88虚报路由器R1:envlandatabasevlan10vlan20vlan30exitconftinterfacerangef0/0-3switchporttrunkencapsulationdotlqswmtintvlan10ipadd192.168.1.1255.255.255.0noshstandby10priority200(vlan10的接口优先级为200,取值范围是0-255,默认值是10
2、0)standby10ip192.168.1.88(虚拟路由器的vlan10的ip地址)standbypreempt(配置了这个命令后,优先级高的端口将变成活跃状态)standby10trackfO/1560(端口跟踪,现在跟踪的是f0/15,如果它的状态变为down,它的优先级别将会减60,其他路由器就接替其成为活跃路由器)exitintvlan20ipadd192.168.2.1255.255.255.0noshstandby20priority150(值越小,优先级越小)standby20ip192.168.2.88
3、standby20preemptexitintvlan30ipadd192.168.3.1255.255.255.0noshstandby30priority200standby30ip192.1683.88standbypreemptstandby30trackfO/1560exitintfO/15noswipadd192.16&4.1255.255.255.0noshendR2:envlandatabasevlan10vlan20vlan30exitconftinterfacerangef0/3-3switchport
4、trunkencapsulationdotlqswmtintvlan10ipadd192.168.1.2255.255.255.0noshstandby10priority150standby10ip192.168.1.88standby10preemptexitintvlan20ipadd192.168.2.2255.255.255.0noshstandby20priority200standby20ip192.168.2.88standby20preemptstandby20trackf0/1560exitintvla
5、n30ipadd192.168.3.2255.255.255.0noshstandby30priority150standby30ip192.168.3.88standby30preemptexitintfO/15noswipadd192.168.4.2255.255.255.0noshendR3:envlandatabasevlan10vlan20vlan30exitconftintrangef0/0-2switchporttrunkencapsulationdotlqswmtEndR4:envlandatabasevl
6、an10vlan20vlan30exitconftintrangef0/0-3switchporttrunkencapsulationdotlqswmtEndR5:envlandatabasevlan10vlan20vlan30exitconftintrangef0/0-2switchporttrunkencapsulationdotlqswmtend元成效果:查看的命令:showstandby(只能在R1和R2上查看)R1:(可以看至!JvlanlO是Active,vlan20是Standby,vlan30是Active
7、)Rl#showstandbyVlanlO一Group10StateisActive2statechanges^laststatechange00:05:16VirtualIPaddressis192♦168♦1^88ActivevirtualMACaddressis0000^0c07^ac0aLocalvirtualMACaddressis0000^0c07^ac0a8、edActiverouislocalStandbyrouteris192♦168♦1^2^priority150(expiresin7^888sec)Priority200(configured200)TrackinterfaceFastEthernetO/15stateUpdecrement60IPr
8、edActiverouislocalStandbyrouteris192♦168♦1^2^priority150(expiresin7^888sec)Priority200(configured200)TrackinterfaceFastEthernetO/15stateUpdecrement60IPr
此文档下载收益归作者所有