Virtual Router Redundancy Protocol (VRRP) is a fault-tolerant protocol. In general, a
default route (for example, 10.100.10.1 as shown in the following internetworking
diagram) will be configured for every host on a network, so that the pa ckets destined to
some other network segment from the host will go through the default route to the Layer
3 Switch, implementing communication between the host and the external network. If
Switch is down, all the hosts on this segment taking Switch as the next-hop on the
default route will be disconnected from the external network.
Network
Switch
10.100.10.1
10.100.10.710.100.10.810.100.10.9
Host 1Host 2Host 3
Ethernet
Figure 1-1 Network diagram for LAN
VRRP, designed for LANs with multicast and broadcast capabilities (such as Ethernet)
settles the above problem. The diagram below is taken as an example to explain the
implementation principal of VRRP. VRRP combine s a group of LAN switche s (including
a Master and several Backups) into a virtual router.
Actual IP address10.100.10.2Actual IP address10.100.10.3
Master
Virtual IP address10.100.10.1
10.100.10.710.100.10.810.100.10.9
Host 1Host 2Host 3
Ethernet
Virtual IP address10.100.10.1
Backup
Figure 1-2 Network diagram for virtual router
This virtual router has its own IP address: 10.100.10.1 (which can be the interface
address of a switch within the virtual router). The switches within the virtual router have
their own IP addresses (such as 10.100.10.2 for the Master switch and 10.10 0.10.3 for
the Backup switch). The host on the LAN only knows the IP address of this virtual router
10.100.10.1 (usually called as virtual IP address of virtual router), b ut not the specific IP
addresses 10.100.10.2 of the Master switch and 10.100.10.3 of the Backup switch.
They configure their own default routes as the IP address of this virtual router:
10.100.10.1. Therefore, hosts within the network will communicate with the external
network through this virtual router. If a Master switch in the virtual group breaks down,
another Backup switch will function as the new Master switch to continue serving the
host with routing to avoid interrupting the communication between the host and the
external networks.
1.2 Configuring VRRP
The following sections describe the VRRP configuration tasks:
z Enabling/Disabling the Function to Ping the Virtual IP Address
z Enabling/Disabling the Check of TTL Value of VRRP Packet
z Setting Correspondence between Virtual IP Address and MAC Address
z Adding/Deleting a Virtual IP Address
z Configuring the Priority of Switches in the Virtual Router
z Configuring Preemption and Delay for a Switch within a Virtual Router
z Configuring Authentication Type and Authentication Key
z Configuring Virtual Router Timer
z Configuring Switch to Track a Specified Interface
1.2.1 Enabling/Disabling the Function to Ping the Virtual IP Address
This operation enables or disables the function to ping the virtual IP address of the
virtual router. The standard protocol of VRRP does not support the ping function, then
the user cannot judge with ping command whether an IP address i s used by the virtual
router. If the user configure the IP address for the host same as the virtual IP address of
the virtual router, then all messages in this segment will be forwarded to the host.
So H3C S9500 Series Routing Switches (hereinafter referred to as S9500 series)
provide the ping function to ping the virtual IP address of the virtual router.
Perform the following configuration in system view.
Table 1-1 Enable/disable the ping function
Operation Command
Enable to ping the virtual IP address
Disable to ping the virtual IP address
By default, the function to ping the virtual IP address is disabled.
Y ou should set the ping function before configuring the virtual router . If a virtual router i s
already established on the switch, it is not allowed to use the vrrp ping-enable
command and the undo vrrp ping-enable command to modify the configuration any
more.
vrrp ping-enable
undo vrrp ping-enable
1.2.2 Enabling/Disabling the Check of TTL Value of VRRP Packet
This operation configures whether to check TTL value of VRRP packet on the Backup
switch. The TTL value must be 225. If the Backup switch find TTL is not 225 when
receiving VRRP packet, the packet will be discarded.
Perform the following configuration in VLAN interface view.
Table 1-2 Enable/disable the check of TTL value of VRRP packet
Operation Command
Disable the check of TTL value of VRRP packet
Enable the check of TTL value of VRRP packet
By default, the switch checks TTL value of VRRP packets.
vrrp un-check ttl
undo vrrp un-check ttl
1.2.3 Setting Correspondence between Virtual IP Address and MAC Address
This operation sets correspondence between the virtual lP address and the MAC
address. In the standard protocol of VRRP, the virtual IP address of the virtual router
corresponds to the virtual MAC address, to ensure correct data forwarding in the
sub-net.
Due to the chips installed, some switches support matching one IP address to multiple
MAC addresses.
S9500 series not only guarantee correct data forwarding in the sub-net, but also
support such function: the user can choose to match the virtual IP address with the real
MAC address or virtual MAC address of the routing interface.
The following commands can be used to set correspondence between the IP address
and the MAC address.
Perform the following configuration in system view.
Table 1-3 Set correspondence between virtual IP address and MAC address
Operation Command
Set correspondence between the virtual IP
address and the MAC address
Set the correspondence to the default value
By default, the virtual IP address of the virtual router corresponds to the virtual MAC
address.
You should set correspondence between the virtual IP address of the virtual router and
the MAC address before configuring the virtual router. Otherwise, you cannot configure
the correspondence.
If you set correspondence between the IP address of the virtual router and the real
MAC address, you can configure only one virtual router on VLAN interface.
1.2.4 Adding/Deleting a Virtual IP Address
The following command is used for assigning a virtual IP address of the local segment
to a virtual router or removing an assigned virtual IP address of a virtual router from the
virtual address list.
Perform the following configuration in VLAN interface view.
The virtual-address can be an unused address in the network segment where the
virtual router resides, or the IP address of an interface in the virtual router. If the IP
address is of the switch in the virtual router , it can also be configured as virtual-address.
In this case, the switch will be called an IP Address Owner. When adding the first IP
address to a virtual router , the system will cr eate a new virtual router accordingly. When
adding a new address to this virtual router thereafter, the system will directly add it into
the virtual IP address list.
After the last virtual IP address is removed from the virtual router, the whole virtual
router will also be removed. That is, there is no more virtual router on the interface any
more and any configuration of it is invalid accordingly.
1.2.5 Configuring the Priority of Switches in the Virtual Router
The status of each switch in the virtual router will be determined by its priority in VRRP.
The switch with the highest priority will become the Master.
Perform the following configuration in VLAN interface view.
Table 1-5 Configure the priority of switches in the virtual router.
Operation Command
Configure the priority of switches in the
virtual router.
Clear the priority of switches in the
virtual router.
vrrp vrid virtual-router-IDpriority
priority
undo vrrp vrid virtual-router-ID priority
The priority ranges from 0 to 255. The greater the number, the higher the priority.
However the value can only be taken from 1 to 254. T he priority 0 is reserved for special
use and 255 is reserved for the IP address owner by the syste m.
By default, the priority is 100.
Note:
The priority for IP address owner is always 255, which cannot be configured otherwise.
1.2.6 Configuring Preemption and Delay for a Switch within a Virtual Router
Once a switch in the virtual router becomes the Master switch, so long as it still
functions properly, other switches, even configured with a higher priority later, cannot
become the Master switch unless they are configured to work in preemption mode. The
switch in preemption mode will become the Master switch, when it finds its own priority
1-5
Loading...
+ 13 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.