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

AR Router Troubleshooting Guide

This Product Documentation provides guidance for maintaining AR Enterprise Router, covering common information collection and fault diagnostic commands, typical fault troubleshooting guide, and troubleshooting.
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).
Example for Configuring VLAN Assignment

Example for Configuring VLAN Assignment

Specifications

This example applies to all versions of AR routers.

Networking Requirements

As shown in Figure 29-17, the device of a company connects to two departments. User_1 and User_2 belong to department 1 and connect to the company network through different devices, and User_3 and User_4 belong to department 2 and connect to the company network through different devices.

To ensure communication security and prevent broadcast packets from being flooded, the company requires that hosts in a department should be allowed to communicate and hosts in different departments should be isolated.

You can configure interface-based VLAN assignment on the device so that the device adds interfaces connected to users in the same department to the same VLAN. Users in the same VLAN can directly communicate with each other, and users in different VLANs cannot communicate at Layer 2.

Figure 29-17  Networking of VLAN assignment

Procedure

  1. Configure Router_1.

    #
     sysname Router_1
    #
    vlan batch 2 to 3          //Create VLAN 2 and VLAN 3.
    #
    interface Ethernet2/0/1    //Configure the interface connected to User_1 as an access interface. The default VLAN is VLAN 2.
     port link-type access
     port default vlan 2
    #
    interface Ethernet2/0/2    //Configure the interface connected to User_3 as an access interface. The default VLAN is VLAN 3.
     port link-type access
     port default vlan 3
    #
    interface Ethernet2/0/3    //Configure the interface connected to Router_1 and Router_2 as a trunk interface and configure the interface to allow VLAN 2 and VLAN 3.
     port link-type trunk
     port trunk allow-pass vlan 2 to 3
    #
    return
    

  2. Configure Router_2.

    #
     sysname Router_2
    #
    vlan batch 2 to 3          //Create VLAN 2 and VLAN 3.
    #
    interface Ethernet2/0/1    //Configure the interface connected to User_2 as an access interface. The default VLAN is VLAN 2.
     port link-type access
     port default vlan 2
    #
    interface Ethernet2/0/2    //Configure the interface connected to User_4 as an access interface. The default VLAN is VLAN 3.
     port link-type access
     port default vlan 3
    #
    interface Ethernet2/0/3    //Configure the interface connected to Router_2 and Router_1 as a trunk interface and configure the interface to allow VLAN 2 and VLAN 3.
     port link-type trunk
     port trunk allow-pass vlan 2 to 3
    #
    return
    

  3. Verify the configuration.

    # Configure User_1 and User_2 on the same network segment, for example, 10.1.100.0/24; configure User_3 and User_4 on the same network segment, for example, 10.1.200.0/24.

    # User_1 and User_2 can ping each other, but cannot ping User_3 or User_4. User_3 and User_4 can ping each other, but cannot ping User_1 or User_2.

Configuration Notes

  • To ensure that packets from VLAN 2 and VLAN 3 are correctly transmitted, create VLAN 2 and VLAN 3 on the device and configure the interface to allow VLAN 2 and VLAN 3.
  • The interfaces connected to users do not need to distinguish VLANs. The interfaces only receive and send untagged frames and add the default VLAN tag to untagged frames, so the interfaces need to be configured as access interfaces.
  • The interconnected interfaces between devices need to allow packets from VLAN 2 and VLAN 3, so the interfaces need to be configured as trunk interfaces.
Translation
Download
Updated: 2019-05-10

Document ID: EDOC1000079719

Views: 452030

Downloads: 4311

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