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

S2700, S3700, S5700, S6700, S7700, and S9700 Series Switches Interoperation and Replacement Guide

This document provides typical configuration examples for interoperation between Huawei switches and mainstream IP phones, firewalls, routers, Microsoft NLB servers, multi-NIC servers, Cisco switches, and SolarWinds.
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).
Interoperation and Replacement Solution 1: Replacement Solution on the Entire Network

Interoperation and Replacement Solution 1: Replacement Solution on the Entire Network

Overview

Network-wide replacement indicates that all Cisco DTP switches are replaced by Huawei switches that support LNP. The following describes the configuration of Huawei LNP.

Configuration Notes

  • This example applies to Huawei switches of V200R005 and later versions.
  • On Huawei switches, LNP is used globally and on interfaces by default. The interface that is negotiated as an access interface joins VLAN 1 by default, and the interface that is negotiated as a trunk interface joins all VLANs by default. Generally, you only need to change the VLAN configuration on an interface based on the networking.

Networking Requirements

In Figure 5-1, terminal users are connected to the network through switches. To implement Layer 2 connectivity, configure the link type on each interface and add interfaces to VLANs. If the network scale is large, the configuration is very complex. To simplify configurations, switches are connected through the trunk link, and switches and user terminals are connected through access links and added to VLANs.

Figure 5-1  Networking for configuring LNP to implement auto-negotiation of the link type of an Ethernet interface

Configuration Roadmap

  1. Enable LNP in the system view and interface view to implement auto-negotiation of the link type of an interface. Because PCs do not support LNP, so switch interfaces connected to terminals are used as access interfaces and interfaces between switches are used as trunk interfaces through negotiation.
  2. 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 it.

  2. Create VLANs.

    Huawei switches support two VLAN creation modes:

    • Manually create VLANs on switches.
    • Create VLANs on Switch3 only and configure VCMP to synchronize VLANs on Switch3 to other switches. If VCMP is used to create VLANs, configure Switch3 as the VCMP server and Switch1 and Switch2 as VCMP clients. For details, see "VCMP Configuration."

    The following describes how to manually create VLANs.

    # Create VLAN 10 and VLAN 20 on Switch1, Switch2, and Switch3.

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

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

    By default, LNP on an interface is enabled. If LNP is disabled, run the undo port negotiation disable command in the interface view to enable it.

    # Configure Switch1.

    [Switch1] interface GigabitEthernet 0/0/1
    [Switch1-GigabitEthernet0/0/1] port default vlan 10  //The interface connected to a PC is an access interface. Run this command to configure the VLAN that the interface joins.
    [Switch1-GigabitEthernet0/0/1] quit
    [Switch1] interface GigabitEthernet 0/0/2
    [Switch1-GigabitEthernet0/0/2] port trunk allow-pass only-vlan 10 20  //The interface connected to a switch is negotiated as a trunk interface. Run this command to configure the VLANs that the interface joins. This command configures the interface to allow packets from VLAN 10 and VLAN 20.
    [Switch1-GigabitEthernet0/0/2] quit
    [Switch1] interface GigabitEthernet 0/0/3
    [Switch1-GigabitEthernet0/0/3] port default vlan 20
    [Switch1-GigabitEthernet0/0/3] quit

    # Configure Switch2.

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

    # Configure Switch3.

    [Switch3] interface GigabitEthernet 0/0/1
    [Switch3-GigabitEthernet0/0/1] port trunk allow-pass only-vlan 10 20
    [Switch3-GigabitEthernet0/0/1] quit
    [Switch3] interface GigabitEthernet 0/0/2
    [Switch3-GigabitEthernet0/0/2] port trunk allow-pass only-vlan 10 20
    [Switch3-GigabitEthernet0/0/2] quit

  4. Verify the configuration.

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

    [Switch1] display lnp interface gigabitethernet0/0/2
    LNP information for GigabitEthernet0/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 check auto-negotiation information on all interfaces of 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         
    -------------------------------------------------------------------------------
    GE0/0/1      desirable      access         0           0           access
    GE0/0/2      desirable      trunk          0           0           trunk
    GE0/0/3      desirable      access         0           0           access

Configuration Files

  • Switch1 configuration file

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

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

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

Document ID: EDOC1000114005

Views: 176982

Downloads: 8150

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