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

Configuration Guide - Ethernet Switching

CloudEngine 8800, 7800, 6800, and 5800 V200R003C00

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, MUX VLAN, Voice VLAN, VLAN mapping, QinQ, GVRP, VCMP, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, and Layer 2 protocol transparent transmission.
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 Interface-based VLAN Assignment

Configuring Interface-based VLAN Assignment

Context

VLANs can be assigned based on interfaces. With interface-based VLAN assignment, an interface is added to a VLAN, after which the interface can forward packets from the VLAN. Interface-based VLAN assignment allows hosts in the same VLAN to communicate and prevents hosts in different VLANs from communicating, limiting broadcast packets to within a VLAN.

Before configuring interface-based VLAN assignment, create a VLAN, configure the link type of an interface, and add the interface to the VLAN.

Procedure

  1. Run system-view

    The system view is displayed.

  2. (Optional) Run vlan assign { global | local } { vlan-id1 [ to vlan-id2 ] } &<1-5>

    VLANs are assigned globally.

    NOTE:

    Only the CE8800 series switches, CE7800 series switches, CE6875EI, CE6870EI, CE6860EI, CE6850U-HI, CE6851HI, CE6850HI, CE6856HI, CE6880EI, and CE6855HI support this configuration.

    On a large Layer 2 network, Software Defined Network (SDN) controller is used to facilitate control and deployment. You can directly configure services or protocols on the SDN controller. The SDN controller then delivers information to the forwarder through OpenFlow, implementing uniform maintenance and management. You can also directly configure services or protocols on the forwarder. To prevent VLAN conflicts on the SDN controller and forwarder and reduce maintenance costs, run the vlan assign command to configure VLAN assignment.

    • global: After VLANs are assigned globally, the VLAN created by the vlan vlan-id command must be in the allocated VLAN range.
    • local: After VLANs are assigned locally, the VLANs allowed by all interfaces must be in the allocated VLAN range.

  3. (Optional) Run vlan reserved vlan-id

    A reserved VLAN is configured.

    By default, the reserved VLAN ID ranges from 4064 to 4094. After vlan-id is specified, the VLAN specified by vlan-id to the VLAN specified by vlan-id plus 30 are configured as reserved VLANs.
    NOTE:

    CE6880EI does not support this step.

  4. Run vlan vlan-id

    A VLAN is created and the VLAN view is displayed. If the specified VLAN has been created, this command displays the VLAN view.

    The value ranges from 1 to 4094. It cannot be the reserved VLAN ID. To batch create VLANs, run the vlan batch { vlan-id1 [ to vlan-id2 ] } &<1-10> command to create VLANs. Then run the vlan vlan-id command to enter the VLAN view.

    NOTE:

    When multiple VLANs are created on a switch, you are advised to configure names for the VLANs to facilitate management.

    Run the name vlan-name command in the VLAN view to create a VLAN name. After the VLAN name is configured, you can run the vlan vlan-name vlan-name command in the system view to enter the corresponding VLAN view.

  5. Run quit

    Return to the system view.

  6. Configure attributes for an Ethernet interface.

    1. Run the interface interface-type interface-number command to enter the view of the Ethernet interface that wants to join the VLAN.

    2. Run the port link-type { access | hybrid | trunk | dot1q-tunnel } command to configure the link type of the Ethernet interface.

      By default, the link type of an interface is access.

      • If an Ethernet interface directly connects to a terminal, the link type of the Ethernet interface can be access or hybrid.

      • If an Ethernet interface connects to an interface of another switch, the link type of the Ethernet interface can be trunk or hybrid.

    3. (Optional) Run the port priority priority-value command to configure the priority of the Ethernet interface.

      By default, the priority of an Ethernet interface is 0. The value ranges from 0 to 7. A larger value indicates a higher priority.

  7. Add the Ethernet interface to a VLAN. By default, the VLAN and default VLAN that an interface joins are both VLAN 1.

    Run the following command as required.

    • Access or QinQ interface

      Run the port default vlan vlan-id command to add the interface to the specified VLAN.

      Run the port interface-type { interface-number1 [ to interface-number2 ] } &<1-10> command in the VLAN view to add one interface or a group of interfaces to a VLAN.

    • Trunk interface

      • Run the port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] } &<1-40> | all } command to add the interface to the specified VLAN.

      • (Optional) Run the port trunk pvid vlan vlan-id command to configure the default VLAN of the trunk interface.

    • Hybrid interface

      • Run the following command as required.

        • Run the port hybrid untagged vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all } command to add a hybrid interface to a VLAN in untagged mode.

          In untagged mode, an interface removes tags from outgoing packets. This mode applies to the scenario where an Ethernet interface directly connects to a terminal.

        • Run the port hybrid tagged vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all } command to add a hybrid interface to a VLAN in tagged mode.

          In tagged mode, an interface does not remove tags from outgoing packets. This mode applies to the scenario where an Ethernet interface connects to an interface of another switch.

      • (Optional) Run the port hybrid pvid vlan vlan-id command to configure the default VLAN of the hybrid interface.

  8. Run commit

    The configuration is committed.

Translation
Download
Updated: 2019-05-08

Document ID: EDOC1100004351

Views: 125551

Downloads: 295

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