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.
<HUAWEI> system-view [HUAWEI] sysname SwitchA [SwitchA] lldp enable
# 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
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 ----