Network Requirements
- On Device1 and Device2, create IPv6 VRRP single backup group; Device1 and Device2 share one virtual IPv6 link-local address and virtual global address, realizing the backup of the default gateway of the user host, so as to reduce the network interruption time.
- Device1 monitors the status of the interface VLAN3 via Track. When the uplink port VLAN3 of Device1 is down, VRRPv3 can feel the down event of the monitor interface and reduce its own priority, making Backup become the new Master and continue to forward the data.
Network Topology
Figure 6-4 Networking of IPv6 VRRP linking with Track
Configuration Steps
Step 1: Configure VLAN, and add the port to the corresponding VLAN (omitted).
Step 2: Configure the IPv6 address of the interface, and enable the switch of the RA response and the RA periodical sending.
Device1#configure terminal
Device1(config-if-vlan2)#ipv6 address fe80::1 link-local
Device1(config-if-vlan2)#ipv6 address 2001:1::1/64
Device1(config-if-vlan2)#no ipv6 nd suppress-ra period
Device1(config-if-vlan2)#no ipv6 nd suppress-ra response
Device1(config-if-vlan2)#exit
Device2#configure terminal
Device2(config-if-vlan2)#ipv6 address fe80::2 link-local
Device2(config-if-vlan2)#ipv6 address 2001:1::2/64
Device2(config-if-vlan2)#no ipv6 nd suppress-ra period
Device2(config-if-vlan2)#no ipv6 nd suppress-ra response
Device2(config-if-vlan2)#exit
|
Step 3: Create one IPv6 VRRP group.
#On Device1, configure VRRPv3 group 1, the virtual IP address is 2001:1::3 and fe80::100, and configure the priority as 110.
Device1(config)#interface vlan2
Device1(config-if-vlan2)#ipv6 vrrp 1 ip fe80::100 link-local
Device1(config-if-vlan2)#ipv6 vrrp 1 ip 2001:1::3
Device1(config-if-vlan2)#ipv6 vrrp 1 priority 110
Device1(config-if-vlan2)#exit
|
#On Device2, configure VRRPv3 group 1, and the virtual IP address is 2001:1::3 and fe80::100.
Device2(config)#interface vlan2
Device2(config-if-vlan2)#ipv6 vrrp 1 ip fe80::100 link-local
Device2(config-if-vlan2)#ipv6 vrrp 1 ip 2001:1::3
Device2(config-if-vlan2)#exit
|
#View the IPv6 VRRP status of Device1.
Device1# show ipv6 vrrp
Interface vlan2 (Flags 0x9)
Pri-addr : fe80::1
Vrf : 0
Pri-matchaddr : fe80::1
Virtual router : 1
Mac mode: real mac mode
Virtual IP address : fe80::100
Global address count:1
Global Match address : 2001:1::1
Global Virtual IP address : 2001:1::3
Virtual MAC address : 00-00-5e-00-02-01
State : Master
Normal priority : 110
Currnet priority : 110
Priority reduced : 0
Preempt-mode : YES
Advertise-interval : 100
Authentication Mode : None
#View the IPv6 VRRP status of Device2.
Device2#show ipv6 vrrp
Interface vlan2 (Flags 0x9)
Pri-addr : fe80::2
Vrf : 0
Pri-matchaddr : fe80::2
Virtual router : 1
Mac mode: real mac mode
Virtual IP address : fe80::100
Global address count:1
Global Match address : 2001:1::2
Global Virtual IP address : 2001:1::3
Virtual MAC address : 00-00-5e-00-02-01
State : Backup
Master addr : fe80::1
Normal priority : 100
Currnet priority : 100
Priority reduced : 0
Preempt-mode : YES
Advertise-interval : 100
Authentication Mode : None
Step 4: Configure VRRPv3 to link with Track.
#On Device1, configure VRRPv3 to link with Track, monitor the uplink interface vlan3, and configure the reduced value of the priority as 20.
Device1#configure terminal
Device1(config)#interface vlan2
Device1(config-if-vlan2)#ipv6 vrrp 1 track gigabitethernet 1 20
Device1(config-if-vlan2)#exit
|
#View the IPv6 VRRP status of Device1.
Device1#show ipv6 vrrp
Interface vlan2 (Flags 0x9)
Pri-addr : fe80::1
Vrf : 0
Pri-matchaddr : fe80::1
Virtual router : 1
Mac mode: real mac mode
Virtual IP address : fe80::100
Global address count:1
Global Match address : 2001:1::1
Global Virtual IP address : 2001:1::3
Virtual MAC address : 00-00-5e-00-02-01
State : Master
Normal priority : 110
Currnet priority : 110
Priority reduced : 0
Preempt-mode : YES
Advertise-interval : 100
Authentication Mode : None
Track interface : vlan3
Reduce : 20
Reduce state : NO
Step 5: Check the result.
When the monitor interface vlan3 of Device1 is down, the VRRPv3 priority is reduced by 20. Here, the Device2 priority is high, and preempts as Master, and the status switches.
#View the IPv6 VRRP status of Device1.
Device1#show ipv6 vrrp
Interface vlan2 (Flags 0x9)
Pri-addr : fe80::1
Vrf : 0
Pri-matchaddr : fe80::1
Virtual router : 1
Mac mode: real mac mode
Virtual IP address : fe80::100
Global address count:1
Global Match address : 2001:1::1
Global Virtual IP address : 2001:1::3
Virtual MAC address : 00-00-5e-00-02-01
State : Backup
Master addr : fe80::2
Normal priority : 110
Currnet priority : 90
Priority reduced : 20
Preempt-mode : YES
Advertise-interval : 100
Authentication Mode : None
Track interface : vlan3
Reduce : 20
Reduce state : YES
#View the IPv6 VRRP status of Device2.
Device2#show ipv6 vrrp
Interface vlan2 (Flags 0x9)
Pri-addr : fe80::2
Vrf : 0
Pri-matchaddr : fe80::2
Virtual router : 1
Mac mode: real mac mode
Virtual IP address : fe80::100
Global address count:1
Global Match address : 2001:1::2
Global Virtual IP address : 2001:1::3
Virtual MAC address : 00-00-5e-00-02-01
State : Master
Normal priority : 100
Currnet priority : 100
Priority reduced : 0
Preempt-mode : YES
Advertise-interval : 100
Authentication Mode : None