Professional Documents
Culture Documents
ncy Protocol
VRRP
R1
10.0.0.1/16
Default GW = 10.0.0.1/16
ZTE University univ.zte.com.cn
TheinformationcontainedinthefileissolelypropertyofZTEcorporation.Anykindofdisclosingwithoutpermissionisprohibited.
The Solution - VRRP
R1 VIP: R2
10.0.0.1/16
10.0.0.1/16 10.0.0.2/16
Default GW = 10.0.0.1/16
ZTE University univ.zte.com.cn
TheinformationcontainedinthefileissolelypropertyofZTEcorporation.Anykindofdisclosingwithoutpermissionisprohibited.
VRRP Introduction
4 bytes
IP Address (1)
IP Address (n)
Field Description
Source Address The primary IP address of the interface the packet
is being sent from.
Destination The IP multicast address as assigned by the IANA
Address for VRRP is 224.0.0.18
TTL The TTL must be set to 255.
Protocol The IP protoco is 112 (decimal).
Version The VRRP protocol version of this packet.
Type The type field specifies the type of this VRRP
packet. The only packet type defined in this
version of the protocol is: 1 ADVERTISEMENT
Virtual Router ID The Virtual Router Identifier (VRID) field identifies the
(VRID) virtual router this packet is reporting status for.
Field Description
Priority The priority field specifies the sending VRRP
router's priority for the virtual router. Higher
values equal higher priority.
Count IP Address The number of IP addresses contained in this
VRRP advertisement.
Authentication Type The authentication type field identifies the
authentication method being utilized: 0 = No
Authentication, 1 = Simple Text Password, 2 = IP
Authentication Header
No Authentication The use of this authentication type means that
VRRP protocol exchanges are not authenticated.
IP Authentication The use of this authentication type means the VRRP
Header protocol exchanges are authenticated using the
mechanisms defined by the IP Authentication Header.
Field Description
Advertisement The Advertisement interval indicates the time
Interval (Adver Int) interval (in seconds) between ADVERTISEMENTS.
Default = 1 sec.
Checksum The checksum field is used to detect data
corruption in the VRRP message.
IP Address(es) One or more IP addresses that are associated with
the virtual router.
Authentication Data The authentication string is currently only utilized
for simple text authentication. There is no default
value for this field.
Format
ip-redundancy create vrrp <vrid> interface
<interface>
Format
ip-redundancy associate vrrp <vrid>
interface <interface> address <ipaddr/mask>
Format
ip-redundancy set vrrp <vrid> interface <interface>
priority <number>|adv-interval <number> |preempt-
mode (default)|disabled|auth-type none|text auth-key
<key>
To specify 200 as the priority used by virtual router 1 on
interface test1
zte(config)# ip-redundancy set vrrp 1 interface test1 priority 200
Format
ip-redundancy start vrrp <vrid> interface
<interface>
Format
ip-redundancy show vrrp interface
<interface> [id <vrid>] [verbose]
Format
ip-redundancy trace vrrp events|state-transit
ions|packet-errors|all enabled|disabled
To display a message whenever a VRRP packet
error is encountered
Format
ip-redundancy clear vrrp-stats interface <int
erface> [id <vrid>]
R1 VRID = 1 R2
R1 VRID = 1 R2
R1 VRID = 1 R2
Master for VRID= 1, Backup for VRID=2 Master for VRID= 2, Backup for VRID=1
R1 VRID = 1 VRID = 2 R2
Master for VRID=1 Backup for VRID=2 Master for VRID=2 Backup for VRID=1
Interface Addr. = 10.0.0.1/16 Interface Addr. = 10.0.0.2/16
VRID=1; Addr. = 10.0.0.1/16 VRID=1; Addr. = 10.0.0.1/16
VRID=2; Addr. = 10.0.0.2/16 VRID=2; Addr. = 10.0.0.2/16
R1 VRID = 1 VRID = 2 R2
Master for VRID=1 Backup for VRID=2 Master for VRID=2 Backup for VRID=1
Interface Addr. = 10.0.0.1/16 Interface Addr. = 10.0.0.2/16
VRID=1; Addr. = 10.0.0.1/16 VRID=1; Addr. = 10.0.0.1/16
VRID=2; Addr. = 10.0.0.2/16 VRID=2; Addr. = 10.0.0.2/16
R1 VRID = 1 VRID = 2 R2