Configuration Guide Vol. 2


15.2.10 Grouping virtual routers

A maximum of 1023 virtual routers can be used by grouping multiple virtual routers. This section provides examples of setting the following group configurations:

Figure 15-16: Example of configuring a group for a virtual router

[Figure Data]

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

-

Follower virtual router

VLAN 20

1

-

VRRPNAME

Legend:-: Not applicable

<Structure of this section>

(1) Configuring the Primary Virtual Router

Points to note

The state of the primary virtual router determines the state of all virtual routers in the group. After configuring the settings, verify that the primary virtual router is operating properly.

Command examples

  1. (config)# interface vlan 10

    (config-if)# ip address 192.168.10.1 255.255.255.0

    Switches to the VLAN interface configuration mode for VLAN 10. If IP address is not set for VLAN interface, set IP address here.

  2. (config-if)# vrrp 1 ip 192.168.10.100

    Sets 192.168.10.100 as the virtual IP for the virtual router on VLAN 10, virtual router ID 1.

  3. (config-if)# vrrp 1 name VRRPNAME

    Sets the virtual router name VRRPNAME for the virtual router in VLAN 10, virtual router ID 1.

(2) Configuring Follow Virtual Routers

Points to note

Specifies the primary virtual router name from the virtual router. A virtual router that specifies a primary virtual router becomes a follower virtual router and follows the specified primary virtual router status.

We recommend that you configure a follower virtual router with the same virtual router ID as the primary virtual router.

Command examples

  1. (config)# interface vlan 20

    (config-if)# ip address 192.168.20.1 255.255.255.0

    Switches to VLAN interface configuration mode for VLAN 20. If IP address is not set for VLAN interface, set IP address here.

  2. (config-if)# vrrp 1 follow VRRPNAME

    Specifies VRRPNAME for the name of the primary virtual router that the follower virtual router in VLAN 20, virtual router ID 1 follows.

  3. (config-if)# vrrp 1 ip 192.168.20.100

    Sets 192.168.20.100 as the virtual IP for the virtual router on VLAN 20, virtual router ID 1.

Notes
  • When configuring a follower virtual router, initiate the configuration from vrrp follow commandPlease do.

  • If the specified primary virtual router does not exist, the follower virtual router enters the initial state.