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


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


Configuration Guide - Ethernet Switching

S1720, S2700, S5700, and S6720 V200R012(C00 and C20)

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, VLAN aggregation, MUX VLAN, VLAN termination, 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 (LNP Dynamically Negotiates the Link Type)

Configuring Interface-based VLAN Assignment (LNP Dynamically Negotiates the Link Type)


The switch supports the following link types on an Ethernet interface: access, hybrid, trunk, and QinQ. The four link types are applicable to different network positions and are manually specified. When the network topology changes, link types of Ethernet interfaces also need to be reconfigured. If this is done manually, configuration is time-consuming and complex. To simplify the configuration, LNP supports auto-negotiation of the link types on Ethernet interfaces and allows Ethernet interfaces to join VLANs after the auto-negotiation. This eliminates the need to manually configure link types of Ethernet interfaces, reducing the workload.

Typically, when LNP is deployed, the VLAN Central Management Protocol (VCMP) also needs to be deployed so that VLANs can be centrally created and deleted and user configurations are simplified. For details about VCMP, see VCMP Configuration.


  1. Run system-view

    The system view is displayed.

  2. Run undo lnp disable

    Global LNP is enabled.

    By default, LNP is enabled on all interfaces.

  3. Run interface interface-type interface-number

    The view of the Ethernet interface that needs to be enabled with LNP is displayed.

  4. Run undo port negotiation disable

    LNP is enabled on the Layer 2 Ethernet interface.

    By default, LNP is enabled on all interfaces of the device.


    When performing this step, ensure that the interface is a Layer 2 interface. If the interface is not a Layer 2 interface, run the portswitch command to configure the interface as a Layer 2 interface.

    When an LNP-capable device is used with an LNP-incapable device, the LNP-capable device continuously sends LNP packets, which wastes bandwidth. You can run the port negotiation disable command in the Layer 2 Ethernet interface view to disable LNP.

    To ensure successful negotiation, ensure that LNP is enabled both globally and in the interface view.

  5. Run port link-type { negotiation-desirable | negotiation-auto }

    An LNP mode is configured.

    By default, the LNP mode of a Layer 2 Ethernet interface on the S1720GF, S1720GFR, S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S2720EI, S2750, S5700LI, S5700S-LI, S5720I-SI, S5720LI, S5720S-LI, S6720LI, S6720S-LI, S5710-X-LI, S5730SI, S5730S-EI, S6720SI, S6720S-SI, S5720SI, and S5720S-SI is negotiation-auto, and the LNP negotiation mode of a Layer 2 Ethernet interface on other models is negotiation-desirable.

    There are limitations on an interface where the LNP mode is set to negotiation-desirable or negotiation-auto:
    • The sub-interface cannot be created.
    • The MUX VLAN cannot be enabled.
    • The voice VLAN in auto mode cannot be configured on the interface.

  6. Configure the VLAN allowed by an interface.

    • When a trunk interface is negotiated, perform the following operations.

      1. Run port trunk allow-pass only-vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | none }

        The VLAN allowed by the trunk interface is configured.

        By default, a trunk interface allows all VLANs.

      2. (Optional) Run port trunk pvid vlan vlan-id

        The default VLAN of the interface is configured.

        When the interface connected to an AP or voice terminal receives untagged and tagged frames, configure the default VLAN for the interface so that interface adds the VLAN tag to untagged frames.

        By default, the default VLAN of a trunk interface is VLAN 1.

    • When an access interface is negotiated, perform the following operation.

      Run port default vlan vlan-id

      The default VLAN is configured for the access interface and the access interface is added to the specified VLAN.

      By default, the default VLAN of an access interface and the VLAN that an access interface joins is VLAN 1.

Verifying the Configuration

  • Run the display lnp { interface interface-type interface-number | summary } command in any view to check LNP negotiation information on a Layer 2 Ethernet interface.
Updated: 2018-12-24

Document ID: EDOC1100038339

Views: 156568

Downloads: 682

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