15.2.11 Changing the Group Configuration
The following procedure describes how to change a primary virtual router to a different virtual router. Failure to follow this procedure may cause the virtual routers on both switches to become the master status.
The following shows the group configuration of the virtual router before and after the change. The Switch A is the master device and the Switch B is the backup device.
|
Role of a virtual router |
Interface on which the virtual router is configured |
Virtual router ID |
Virtual router name |
Name of the primary virtual router to follow |
---|---|---|---|---|
Primary virtual router |
VLAN 10 |
1 |
VRRPNAME |
- |
Follow virtual router 1 |
VLAN 20 |
1 |
- |
VRRPNAME |
Follow virtual router 2 |
VLAN 30 |
1 |
- |
VRRPNAME |
Legend:-: Not applicable
|
Role of a virtual router |
Interface on which the virtual router is configured |
Virtual router ID |
Virtual router name |
Name of the primary virtual router to follow |
---|---|---|---|---|
Follow virtual router 1 |
VLAN 10 |
1 |
VRRPNAME |
NEW_VRRPNAME |
Primary virtual router |
VLAN 20 |
1 |
NEW_VRRPNAME |
- |
Follow virtual router 2 |
VLAN 30 |
1 |
- |
NEW_VRRPNAME |
Legend:-: Not applicable
- <Structure of this section>
(1) Change from a follower virtual router to a primary virtual router
- Points to note
-
Change the follower virtual router to the primary virtual router. You must change the settings from the master device (Switch A).
When a change is made from the backup device (Switch B), the virtual router on the backup device (Switch B) does not receive ADVERTISEMENT packetsBecause it changes to the master status. Because the master switch (Switch A) remains in the master state according to the primary virtual router in the master state, the virtual routers on both switches become the master state.
Command examples
-
(config)# interface vlan 20
Switches to VLAN interface configuration mode for VLAN 20.
-
(config-if)# no vrrp 1 follow
Sets the follower virtual router of VLAN 20, virtual router ID 1 to act as the primary virtual router.
Switch A, Change the settings in the order of Switch B.
-
(config-if)# vrrp 1 name NEW_VRRPNAME
Sets the virtual router name NEW_VRRPNAME for the primary virtual router in VLAN 20, virtual router ID 1.
(2) Changing Follow Virtual Router Settings
- Points to note
-
Changes the primary virtual router that the follower virtual router follows.
Because the follower virtual router follows the status of the primary virtual router without sending or receiving ADVERTISEMENT packetsYou can change the setting from either unit. If you specify a primary virtual router that is not running, the follower virtual router is in the initial state.
Command examples
-
(config)# interface vlan 30
Switches to VLAN interface configuration mode for VLAN 30.
-
(config-if)# vrrp 1 follow NEW_VRRPNAME
Change the primary virtual router that the follower virtual router in VLAN 30, virtual router ID 1 follows to NEW_VRRPNAME.
(3) Change from primary virtual router to follower virtual router
- Points to note
-
Change the primary virtual router to a follower virtual router. You need to change the settings from the backup unit.
When a change is made from the master switch (Switch A), the virtual router on the backup switch (Switch B) does not receive ADVERTISEMENT packetsBecause it changes to the master status. Because the master switch (Switch A) remains in the master state according to the primary virtual router in the master state, the virtual routers on both switches become the master state.
Command examples
-
(config)# interface vlan 10
Switches to the VLAN interface configuration mode for VLAN 10.
-
(config-if)# vrrp 1 follow NEW_VRRPNAME
Sets VLAN 10, virtual router ID 1 virtual router to act as a follower virtual router.
Switch B, Change in the order of Switch A.