< Home

Example for Configuring CDP-Compatible LLDP

Networking Requirements

As shown in Figure 1, SwitchA (a Huawei device) connects to SwitchB (a non-Huawei device) through an unknown network. The NMS and the switches have reachable routes to each other, and SNMP is configured on devices and NMS.

A network administrator wants to obtain Layer 2 information about SwitchA and SwitchB to know details about network topology and configuration conflicts.

Figure 1 Configuring CDP-compatible LLDP

Configuration Roadmap

The configuration roadmap is as follows:
  1. Enable global LLDP on SwitchA.
  2. Enable CDP-compatible LLDP on SwitchA so that SwitchA can discover non-Huawei neighbors.

Procedure

  1. Enable global LLDP on SwitchA.

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchA
    [SwitchA] lldp enable

  2. Enable CDP-compatible LLDP on SwitchA.

    # Enable CDP-compatible LLDP on GE0/0/1

    [SwitchA] interface gigabitethernet 0/0/1
    [SwitchA-GigabitEthernet0/0/1] lldp compliance cdp receive
    [SwitchA-GigabitEthernet0/0/1] quit
    [SwitchA] quit

  3. Verify the configurations.

    # View the configuration of CDP-compatible LLDP, CDP trap function, and the delay in sending CDP trap messages.
    • View local CDP information on SwitchA.

      <SwitchA> display cdp local
      Remote Table Statistics:
      -------------------------------------------------------------------------- 
      Remote Table Last Change Time   :0 days, 23 hours, 21 minutes, 37 seconds
      Remote Neighbors Added             :0
      Remote Neighbors Deleted           :0
      Remote Neighbors Dropped           :0
      Remote Neighbors Aged              :0
      Total Neighbors                    :1
      
      Port information:
      --------------------------------------------------------------------------   
      Interface GigabitEthernet0/0/1:
      CDP Status               :enabled             (default is disabled)             
      Total Neighbors          :1  
        ---- More ----  
    • View neighbor CDP information on SwitchA.

      <SwitchA> display cdp neighbor
      GigabitEthernet0/0/1 has 1 neighbor(s):                                          
                                                                                      
                                                                                      
      Neighbor index :1                                                               
      Device ID                :ME3400                                                          
      Port ID                  :GigabitEthernet0/4                                              
      Version                  :SCCP75.8-3-3SR2S
      Platform                 :cisco ME-3400EG-2CS-A
      MacAddress               :b4a4-e3cf-e984                                                  
      Discovered time          :0 days, 22 hours, 33 minutes, 36 seconds                        
      Expired time             :122                                
      Power drawn              :12000 mw 
      Power request ID         :39308 
      Power management ID      :2 
      Power request levels     :12000 mw 0 mw
        ---- More ----  

Configuration File

SwitchA configuration file

#
sysname SwitchA
#
lldp enable
#
interface GigabitEthernet0/0/1
 lldp compliance cdp receive
#
return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >