首页 运维 网络学院 查看内容

CCIE考试涉及常用命令(部分)

2005-7-29 11:01 812 0

摘要: HSRP一般用于两台,也可以用于多台。必须在每台起HSRP上的路由器上配置。 When the HSRP is configured on a network segment, it provide...
关键词: standby 150 HSRP address 路由器 router IP 只有 routers active

HSRP一般用于两台,也可以用于多台。必须在每台起HSRP上的路由器上配置。 When the HSRP is configured on a network segment, it provides a virtual Media Access Control (MAC) address and an IP address that is shared among routers in a groupof routers that is running HSRP. One of these devices is selected by the protocol to be the active router. The active router receives and routes packets destined for the group's MAC address. For n routers running HSRP, there are n + 1 IP and MAC addresses assigned. 但是aceive只有一台,standby只有一台,其实其他的都在监听状态。所以zyx说的是处在active和standby的状态的只有两台。 附一个配置实例: version 12.0service timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname r1!enable password cisco!ip subnet-zero!!!!interface Ethernet0ip address 136.147.107.101 255.255.0.0no ip redirectsno ip directed-broadcaststandby 150 timers 5 15   /* 定义150组5秒交换一次hello信息,15秒没收到hello信息就开始切换 */standby 150 priority 110 /* 定义150组的主路由器权值,值越大,为主路由器希望越大 */standby 150 preempt /* enable 150组的hsrp抢占功能 */standby 150 authentication cisco  /* 设置150组的router身份验证串 */standby 150 ip 136.147.107.100 /* 定义150组的浮动地址,也是这台router连接的网络的网关 */standby 150 track Ethernet0 /* 定义监控的端口 */!interface Serial0no ip addressno ip directed-broadcastno ip mroute-cacheshutdownno fair-queue!ip classless!!line con 0transport input noneline 1 16line aux 0line vty 0 4password ciscologin!end
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部