Vrrp Interface Tracking Configuration Example - H3C S9500 Series Operation Manual

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

Advertisement

Operation Manual – VRRP
H3C S9500 Series Routing Switches
[LSW_A-vlan-interface2] vrrp vrid 1 priority 110
[LSW-A-vlan-interface2] vrrp vrid 1 preempt-mode
2)
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
# Configure VRRP.
[LSW-B] vrrp ping-enable
[LSW-B] interface vlan 2
[LSW-B-vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
[LSW-B-vlan-interface2] vrrp vrid 1 preempt-mode
The virtual router can be used soon after configuration. Host A can be configured with
the default gateway 202.38.160.111.
Under normal conditions, switch A functions as the gateway. Once switch A breaks
down, switch B will function as the gateway instead.
Configure the preemption mode for switch A, so that it can become the master again
after recovery.

1.4.2 VRRP Interface Tracking Configuration Example

I. Network requirements
See
Figure
should function as the gateway. This can be implemented by tracking the
corresponding interface.
The virtual router ID is 1. In addition, the MD5 authentication and VRRP packet sending
interval are configured.
II. Network diagram
See
Figure
III. Configuration procedure
1)
Configure switch A
# Configure VLAN2.
[LSW-A] vlan 2
[LSW-A-vlan2] interface vlan 2
[LSW-A-vlan-interface2] ip address 202.38.160.1 255.255.255.0
[LSW-A-vlan-interface2] quit
# Enable the function to ping the virtual IP address of the virtual router.
1-4. If the interface of switch A connected to the Internet is down, switch B
1-4.
1-13
Chapter 1 VRRP Configuration

Advertisement

Table of Contents
loading

Table of Contents