Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure VRRP Basic Functions

In the configuration tasks of VRRP, first enable the VRRP protocol and the virtual IP address of the VRRP group needs to be in the same segment as the IP address of the interface so that the configured other functions can take effect.

Configuration Condition

Before configuring the VRRP basic functions, first complete the following task:

  • Configure the IP address of the interface

Enable VRRP Protocol

To enable the VRRP function, you need to create the VRRP group and configure the virtual IP address in the interface.

Table 5–2 Enable the VRRP protocol

Step

Command

Description

Enter the global configuration mode

configure terminal

-

Enter the interface configuration mode

interface interface-name

Mandatory

Configure the VRRP group

vrrp vrid ip ip-address

Mandatory

Enable the VRRP protocol. VRID is the number of the VRRP group; ip-address is the virtual IP address.

Configure VRRP Priority

After configuring VRRP and if not setting priority, the default priority is 100. The device with high priority is elected as the Master for forwarding the packet and the other become Backup. If the priorities of all devices are equal, elect according to the interface IP address of the device. The one with large interface IP address becomes Master. We can set the VRRP priority as desired. The larger the value is, the higher the priority is.

Table 5–3 Configure the VRRP priority

Step

Command

Description

Enter the global configuration mode

configure terminal

-

Enter the interface configuration mode

interface interface-name

Mandatory

Configure the VRRP group priority

vrrp vrid priority priority

Mandatory Configure the VRRP priority; the default priority is 100.

note


  • In the virtual MAC mode, when the interface IP address is the same as the virtual IP address, it immediately becomes the Init state and the priority keeps unchanged. If the user needs to configure the virtual IP address the same as the interface IP address, it is necessary to change the virtual MAC mode to the real MAC mode.

Configure VRRP Preemption Mode

After configuring VRRP, in the preemption mode, once other device in the VRRP group discovers that its priority is higher than that of the current Master, it becomes Master; in non-preemption mode, as long as Master does not fail, even the other device has higher priority, it cannot become Master.

Table 5–4 Configure the VRRP preemption mode

Step

Command

Description

Enter the global configuration mode

configure terminal

-

Enter the interface configuration mode

interface interface-name

Mandatory

Configure the VRRP group as the preemption mode

vrrp vrid preempt

Mandatory

By default, enable the preemption mode

Configure Real MAC Address of VRRP

One virtual device in the VRRP group has one virtual MAC address. According to RFC2338, the format of the virtual MAC address is 00-00-5E-00-01-{vrid}. When the virtual device replies the ARP request, the replied is virtual MAC address, but not the real MAC address of the interface. By default, the used is the virtual MAC address of the interface.

Table 5–5 Configure the real MAC address of VRRP

Step

Command

Description

Enter the global configuration mode

configure terminal

-

Enter the interface configuration mode

interface interface-name

Mandatory

Configure VRRP to use the real MAC address

vrrp vrid use-bia

Mandatory

By default, use the virtual MAC address.

note


  • By default, after configuring VRRP, the used is the virtual MAC address. After configuring the command, use the real MAC. That is, when the host sends the packet, forward by the real MAC address; after deleting the command, use the virtual MAC address. That is, when the host sends the packet, use the virtual MAC address to forward.