[BCMSN]试验18 配置VRRP协议



R1配置
r1(config)#int lo0
r1(config-if)#ip ad 1.1.1.1 255.255.255.0
r1(config-if)#int f0/0
r1(config-if)#ip ad 192.168.0.1 255.255.255.0
r1(config-if)#no sh
r1(config-if)#^Z

R2配置
r2(config)#int lo0
r2(config-if)#ip ad 2.2.2.2 255.255.255.0
r2(config-if)#int f0/0
r2(config-if)#ip ad 192.168.0.2 255.255.255.0
r2(config-if)#no sh
r2(config-if)#^Z

R1 R2配置vrrp协议

r1#config t
r1(config)#int f0/0
r1(config-if)#vrrp 1 ip 192.168.0.10
r1(config-if)#^Z
r2#config t
r2(config)#int f0/0
r2(config-if)#vrrp 1 ip 192.168.0.10
r2(config-if)#^Z

R1查看vrrp

r1#sh arp
*Mar 17 15:14:50.859: VRRP: Grp 1 sending Advertisement checksum BA49
*Mar 17 15:14:51.859: VRRP: Grp 1 sending Advertisement checksum BA49
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  192.168.0.10            -   0000.5e00.0101  ARPA   FastEthernet0/0
Internet  192.168.0.1             -   ca91.349c.0000  ARPA   FastEthernet0/0
r1#sh vrrp
FastEthernet0/0 �C Group 1 
  State is Master 
  Virtual IP address is 192.168.0.10
  Virtual MAC address is 0000.5e00.0101
  Advertisement interval is 1.000 sec
  Preemption enabled
  Priority is 100
  Master Router is 192.168.0.1 (local), priority is 100
  Master Advertisement interval is 1.000 sec
  Master Down interval is 3.609 sec
R3配置为PC机
r3(config)#int f0/0
r3(config-if)#ip ad 192.168.0.3 255.255.255.0
r3(config-if)#no sh
r3(config-if)#exi
r3(config)#no ip routing
r3(config)#ip route 0.0.0.0 0.0.0.0 192.168.0.10
r3(config)#ip default-gateway 192.168.0.10
r3(config)#^Z
将R3使用扩展ping虚拟地址
r3#p
Protocol [ip]:
Target IP address: 192.168.0.10
将R1调整优先级
r1#config t
r1(config)#int f0/0
r1(config-if)#vrrp 1 priority 150
R1上关闭接口查看现象
r1#config t
r1(config)#int f0/0
r1(config-if)#sh
在R3上查看刚才ping的现象
Type escape sequence to abort.
Sending 10000, 100-byte ICMP Echos to 192.168.0.10, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!..!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
只间断了一下下

你可能感兴趣的:(配置,职场,协议,休闲,vrrp)