Multiple Virtual Routers Example - H3C S9500 Series Operation Manual

Routing switches
Hide thumbs Also See for S9500 Series:
Table of Contents

Advertisement

Operation Manual – Reliability
H3C S9500 Series Routing Switches
# Set the authentication key for the virtual router.
[LSW_A-vlan-interface2] vrrp authentication-mode md5 switch
# Set Master to send VRRP packets every 5 seconds.
[LSW_A-vlan-interface2] vrrp vrid 1 timer advertise 5
# Track an interface.
[LSW_A-vlan-interface2] vrrp vrid 1 track vlan-interface 3 reduced 30
Configure switch B
# Configure VLAN2.
[LSW-B] vlan 2
[LSW-B-vlan2] interface vlan 2
[LSW-B-vlan-interface2] ip address 202.38.160.2 255.255.255.0
[LSW-B-vlan-interface2] quit
# Enable the function to ping the virtual IP address of virtual router.
[LSW-B] vrrp ping-enable
# Create a virtual router.
[LSW-B] interface vlan 2
[LSW_B-vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
# Set the authentication key for the virtual router.
[LSW_B-vlan-interface2] vrrp authentication-mode md5 switch
# Set Master to send VRRP packets every 5 seconds.
[LSW_B-vlan-interface2] vrrp vrid 1 timer advertise 5
Under normal conditions, switch A functions as the gateway, but when the interface
vlan-interface 3 of switch A is down, its priority will be reduced by 30, lower than that of
switch B so that switch B will preempt the Master for gateway services instead.
When vlan-interface3, the interface of switch A, recovers, this switch will resume its
gateway function as the Master.

1.4.3 Multiple Virtual Routers Example

I. Networking requirements
A Switch can function as the backup switch for many virtual routers.
Such a multi-backup configuration can implement load balancing. For example, switch
A as the Master switch of virtual router 1 can share the responsibility of the backup
switch for virtual router 2 and vice versa for switch B. Some hosts employ virtual router
1 as the gateway, while others employ virtual router 2 as the gateway. In this way, both
load balancing and mutual backup are implemented.
1-12
Chapter 1 VRRP Configuration

Advertisement

Table of Contents
loading

This manual is also suitable for:

S9505S9508S9512

Table of Contents