No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
vrrp vrid virtual-ip

vrrp vrid virtual-ip

Function

The vrrp vrid virtual-ip command creates a VRRP group and assigns a virtual IP address to the group.

The undo vrrp vrid virtual-ip command deletes the virtual IP address of a VRRP group.

By default, no VRRP group is created.

Format

vrrp vrid virtual-router-id virtual-ip virtual-address

undo vrrp vrid virtual-router-id [ virtual-ip virtual-address ]

Parameters

Parameter Description Value
vrid virtual-router-id Specifies the VRID of a VRRP group.
NOTE:
  • VRRP4 virtual MAC address: 0000-5e00-01+(VRID). For example, if a VRID is 20, the VRRP4 virtual MAC address is 0000-5e00-0114.
  • VRRP6 virtual MAC address: 0000-5e00-02+(VRID). For example, if a VRID is 20, the VRRP6 virtual MAC address is 0000-5e00-0214.
The value is an integer that ranges from 1 to 255.
virtual-ip virtual-address

Specifies the virtual IP address of a VRRP group.

The value is in dotted decimal notation.

Views

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In practice, hosts use the default gateway to communicate with external networks. As value-added services such as IPTV or video conference services are widely deployed, hosts may fail to communicate with external networks if the default gateway is faulty. Configuring dynamic routing protocols such as RIP, OSPF, or ICMP can improve system reliability. However, dynamic routing protocols are difficult to configure and may not be supported by some hosts. VRRP virtualizes multiple routing devices into a virtual router without changing the networking. The virtual router IP address is configured as the default gateway address.

If users on a network have the same reliability requirements, configure multiple virtual IP addresses for a VRRP group. By doing this, one virtual IP address serves one separate user group, and the default gateway address does not vary according to location changes of VRRP devices. A VRRP group can be assigned a maximum of 16 virtual IP addresses.

Precautions

If all the virtual IP addresses in a VRRP group are deleted, the VRRP group is deleted automatically.

After the vrrp vrid virtual-ip command is run on an interface, when the ARP entries learned by the interface are aged, the device sends ARP aging probe packets with the source IP address being the interface's IP address. The virtual IP address of the interface is not used as the source IP address.

When VRRP and static ARP are configured simultaneously, note the following points:
  • When VRRP is configured on a VLANIF interface, the IP address corresponding to theVLANIF interface in a static ARP entry cannot be set to the virtual IP address of a VRRP group. Otherwise, services cannot be forwarded between devices. For example, when a static ARP entry contains IP address 10.1.1.1, the IP address 10.1.1.1 cannot be used as the virtual IP address.

  • When VRRP is configured on aVLANIF interface, the virtual IP address of a VRRP group cannot be used as the IP address corresponding to theVLANIF interface in a static ARP entry. Otherwise, services cannot be forwarded between devices. For example, the VRRP group uses virtual IP address 10.1.1.1. The IP address 10.1.1.1 cannot be used in a static ARP entry.

  • VRRP groups must use different virtual IP addresses.

  • Two devices in a VRRP group must be configured with the same VRID.

  • When multiple VRRP groups exist on the network, ensure that VRIDs on different devices are unique. Otherwise, virtual MAC address conflicts may occur.

  • A virtual IP address must be different from the IP address of a user host. If the user host IP address is the same as the virtual IP address, all packets on the local network segment are sent to the user host. As a result, data of this network segment cannot be forwarded correctly.

Example

# Create a VRRP group on VLANIF100 with ID 1 and virtual IP address 10.10.10.10.

<Huawei> system-view
[Huawei] interface vlanif 100
[Huawei-Vlanif100] vrrp vrid 1 virtual-ip 10.10.10.10
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 212619

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next