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

AR500, AR510, and AR530 V200R007 CLI-based Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring transparent bridge, MAC table, link aggregation, VLANs, STP/RSTP/MSTP, and so on.The document provides the configuration procedures and configuration examples to illustrate the service configuration methods and application scenario.
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).
Configuring Inter-VLAN Communication

Configuring Inter-VLAN Communication

Context

After VLANs are assigned, users in the same VLAN can communication with each other while users in different VLANs cannot. If some users in different VLANs need to communicate, configure inter-VLAN communication.

A VLANIF interface is a Layer 3 logical interface and can implement inter-VLAN Layer 3 connectivity. It is simple to configure a VLANIF interface, so the VLANIF interface is the most commonly used technology. Each VLAN corresponds to a VLANIF interface. After an IP address is configured for a VLANIF interface, the VLANIF interface is used as the gateway of the VLAN and forwards packets across network segments at Layer 3 based on IP addresses.

If a VLAN goes Down because all interfaces in the VLAN go Down, the system immediately reports the VLAN Down event to the corresponding VLANIF interface, instructing the VLANIF interface to go Down. To avoid network flapping caused by the change of the VLANIF interface status, enable VLAN damping on the VLANIF interface. After the last interface in Up state in a VLAN goes Down, the device enabled with VLAN damping starts a delay timer and informs the corresponding VLANIF interface of the VLAN Down event after the timer expires. If an interface in the VLAN goes Up during the delay, the VLANIF interface remains Up.

The Maximum Transmission Unit (MTU) determines the maximum number of bytes each time a sender can send. If the size of packets exceeds the MTU supported by a receiver or a transit node, the receiver or transit node fragments the packets or even discards them, aggravating the network transmission load. To avoid this problem, set the MTU of the VLANIF interface.

After configuring bandwidth for a VLANIF interface, you can use the NMS to query the bandwidth. This facilitates traffic monitoring.

NOTE:
As shown in Inter-VLAN Communication, in addition to using a VLANIF interface to inter-VLAN communication, you can also use the VLAN aggregation and Dot1q termination sub-interface. This section uses the VLANIF interface to implement inter-VLAN communication.

After a VLANIF interface is configured, the corresponding VLAN cannot be configured as a sub-VLAN.

Pre-configuration Tasks

Before configuring inter-VLAN communication, complete the following tasks:

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface vlanif vlan-id

    The VLANIF interface view is displayed.

    The number of a VLANIF interface must correspond to a created VLAN.

    A VLANIF interface goes Up only when at least one physical interface in the corresponding VLAN is in Up state.

  3. Run:

    ip address ip-address { mask | mask-length } [ sub ]

    An IP address is configured for the VLANIF interface to implement Layer 3 connectivity.

    If IP addresses assigned to VLANIF interfaces belong to different network segments, you need to configure a routing protocol on the device to provide reachable routes.

    Each VLANIF interface can be configured with one primary IP address and multiple secondary IP addresses. A maximum of 31 secondary IP addresses can be configured.

    NOTE:

    An IP address of a VLANIF interface can be statically configured or dynamically obtained using DHCP. For details about DHCP, see DHCP Configuration in Huawei AR Series IOT Gateway Configuration Guide - IP Services.

  4. (Optional) Run:

    damping time delay-time

    The delay of VLAN damping is set.

    The value ranges from 0 to 20, in seconds. By default, the delay is 0 seconds, indicating that VLAN damping is disabled.

  5. (Optional) Run:

    mtu mtu

    The MTU of the VLANIF interface is set.

    By default, the value is 1500 bytes.

  6. (Optional) Run:

    bandwidth bandwidth

    The bandwidth of the VLANIF interface is set.

Checking the Configuration

  • Run the display interface vlanif [ vlan-id ] command to check the status, configuration, and traffic statistics of the VLANIF interface.

    NOTE:

    Only the VLANIF interface in Up state can forward packets at Layer 3. When the VLANIF interface goes Down, rectify the fault according to A VLANIF Interface Goes Down.

Translation
Download
Updated: 2019-05-25

Document ID: EDOC1000097279

Views: 19164

Downloads: 64

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