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

S7700 and S9700 V200R012C00

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, HVRP, 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).
Example for Configuring Interface-based VLAN Assignment (LNP Dynamically Negotiates the Link Type)

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

Networking Requirements

Switches and user terminals are deployed on the network shown in Figure 4-25. To implement Layer 2 connectivity, you must configure the link type for each interface and add the interfaces to VLANs. If it is a large network, these configurations are complex. To simplify configurations, switches are connected through the trunk link, and switches and user terminals are connected through access links and are added to VLANs.

Figure 4-25  Networking of interface-based VLAN assignment (LNP dynamically negotiates the link type)

Configuration Roadmap

  1. Enable LNP in the system view and interface view to enable auto-negotiation. Because PCs do not support LNP, switch interfaces connected to terminals are negotiated as access interfaces and interfaces between switches are negotiated as trunk interfaces.
  2. Create VLANs and add interfaces to VLANs to implement Layer 2 connectivity.

Procedure

  1. Enable global LNP.

    By default, global LNP is enabled. If LNP is disabled, run the undo lnp disable command in the system view to enable LNP.

  2. Create VLANs.

    You can create VLANs on each switch, or create VLANs on Switch3 and use the VLAN Central Management Protocol (VCMP) to synchronize the created VLANs to other switches. The following describes how to create VLANs. If VCMP is used, you need to configure Switch3 as the VCMP server and Switch1 and Switch2 as the VCMP clients. For details, see VCMP Configuration.

    # Create VLAN 10 and VLAN 20 on Switch3. The configurations of Switch1 and Switch2 are the same as that of Switch3.

    <HUAWEI> system-view
    [HUAWEI] sysname Switch3
    [Switch3] vlan batch 10 20

  3. Enable LNP on interfaces. Add switch interfaces connected to PCs to VLANs as access interfaces and add interfaces between switches to VLANs as trunk interfaces.

    NOTE:
    • If an interface is not a Layer 2 interface, you need to run the portswitch command to set the interface to work in Layer 2 mode.
    • By default, LNP is enabled. If LNP is disabled, run the undo port negotiation disable command to enable LNP on the interface.

    # Configure Switch1. The configurations of Switch2 are the same as that of Switch1.

    [Switch1] interface GigabitEthernet 1/0/1
    [Switch1-GigabitEthernet1/0/1] port default vlan 10
    [Switch1-GigabitEthernet1/0/1] quit
    [Switch1] interface GigabitEthernet 1/0/2
    [Switch1-GigabitEthernet1/0/2] port trunk allow-pass only-vlan 10 20
    [Switch1-GigabitEthernet1/0/2] quit
    [Switch1] interface GigabitEthernet 1/0/3
    [Switch1-GigabitEthernet1/0/3] port default vlan 20
    [Switch1-GigabitEthernet1/0/3] quit

    # Configure Switch3.

    [Switch3] interface GigabitEthernet 1/0/1
    [Switch3-GigabitEthernet1/0/1] port trunk allow-pass only-vlan 10 20
    [Switch3-GigabitEthernet1/0/1] quit
    [Switch3] interface GigabitEthernet 1/0/2
    [Switch3-GigabitEthernet1/0/2] port trunk allow-pass only-vlan 10 20
    [Switch3-GigabitEthernet1/0/2] quit
    NOTE:
    The port trunk allow-pass only-vlan 10 20 command configures the interface to allow only VLAN 10 and VLAN 20.

  4. Verify the configuration.

    After the preceding configuration is complete, run the display lnp interface interface-type interface-number command to view auto-negotiation information for the specified Layer 2 interface.

    [Switch1] display lnp interface gigabitethernet1/0/2
    LNP information for GigabitEthernet1/0/2:
      Port link type: trunk
      Negotiation mode: desirable
      Hello timer expiration(s): 7
      Negotiation timer expiration(s): 0
      Trunk timer expiration(s): 278
      FSM state: trunk
    
      Packets statistics
      56 packets received
        0 packets dropped
          bad version: 0, bad TLV(s): 0, bad port link type: 0,
          bad negotiation state: 0, other: 0
      58 packets output
        0 packets dropped
          other: 0

    Run the display lnp summary command to view auto-negotiation information for all interfaces on the Layer 2 device.

    [Switch1] display lnp summary
    Global LNP : Negotiation enable
    -------------------------------------------------------------------------------
    C: Configured; N: Negotiated; *: Negotiation disable;
    Port         link-type(C)   link-type(N)   InDropped   OutDropped  FSM         
    -------------------------------------------------------------------------------
    GE1/0/1      desirable      access         0           0           access
    GE1/0/2      desirable      trunk          0           0           trunk
    GE1/0/3      desirable      access         0           0           access

Configuration Files

  • Switch1 configuration file

    #
    sysname Switch1
    #
    vlan batch 10 20
    #
    interface GigabitEthernet1/0/1
     port default vlan 10
    #
    interface GigabitEthernet1/0/2
     port trunk allow-pass only-vlan 10 20
    #
    interface GigabitEthernet1/0/3
     port default vlan 20
    #
    return
  • Switch2 configuration file

    #
    sysname Switch2
    #
    vlan batch 10 20
    #
    interface GigabitEthernet1/0/1
     port default vlan 10
    #
    interface GigabitEthernet1/0/2
     port trunk allow-pass only-vlan 10 20
    #
    interface GigabitEthernet1/0/3
     port default vlan 20
    #
    return
  • Switch3 configuration file

    #
    sysname Switch3
    #
    vlan batch 10 20
    #
    interface GigabitEthernet1/0/1
     port trunk allow-pass only-vlan 10 20
    #
    interface GigabitEthernet1/0/2
     port trunk allow-pass only-vlan 10 20
    #
    return
Translation
Download
Updated: 2019-01-18

Document ID: EDOC1100038843

Views: 94652

Downloads: 67

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