CCNP(BCMSN)实验:配置VRRP协议

社会主义新天地 提交于 2020-10-14 00:37:18

CCNP(BCMSN)实验:配置VRRP协议
预配置:略

实验过程

第一步:在R1上进行配置
R1#debug vrrp all
VRRP debugging is on
R1#
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int f0/0
R1(config-if)#vrrp 1 ip 192.168.0.100






R1#sh vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr
Fa0/0 1 100 3609 Y Master 192.168.0.1 192.168.0.100

IP packet debugging is on
R1#
*Dec 13 21:14:31.507: IP: s=192.168.0.1 (local), d=224.0.0.18 (FastEthernet0/0), len 40, sending broad/multicast
//1 s一次
第二步:在R2上配置vrrp
R2(config)#int f0/0
R2(config-if)#vrrp 1 ip 192.168.0.100





R2#sh vrrp
FastEthernet0/0 - Group 1
State is Master
Virtual IP address is 192.168.0.100
Virtual MAC address is 0000.5e00.0101
Advertisement interval is 1.000 sec
Preemption enabled
Priority is 100
Master Router is 192.168.0.2 (local), priority is 100
Master Advertisement interval is 1.000 sec
Master Down interval is 3.609 sec
//R2成为 了master
第三步:在R3上做相应配置并ping网关
R3#ping 192.168.0.100












Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.100, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/228/1072 ms


让R3ping,我们在R2上down掉接口,又打开时,出现下面过程。
R3#ping
Protocol [ip]:
Target IP address: 192.168.0.100
Repeat count [5]: 100000
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 100000, 100-byte ICMP Echos to 192.168.0.100, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!..!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//当出现点时,表示进行切换。












标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!