交换机发现邻居操作,查看端口和ip

类似思科CDP的能看见邻居交换机。

  1. 使能SwitchA的全局LLDP功能。
  2. 在SwitchA上配置LLDP兼容CDP协议的功能,使得华为设备能够发现与之相连的其他厂商设备。
    操作步骤
    1、使能SwitchA的全局LLDP功能
[HUAWEI] **sysname SwitchA**
[SwitchA] **lldp enable**```
2、在SwitchA上配置LLDP兼容CDP协议的功能,在接口GigabitEthernet0/0/1上配置LLDP兼容CDP协议的功能。

```[SwitchA] **interface gigabitethernet 0/0/1**
[SwitchA-GigabitEthernet0/0/1] **lldp compliance cdp receive**
[SwitchA-GigabitEthernet0/0/1] **quit**
[SwitchA] **quit**```
3、验证配置结果
查看SwitchA的LLDP是否使能、CDP告警功能是否使能以及CDP告警的延迟时间是否为所配置的值。
>查看SwitchA的本地CDP信息。
```<SwitchA> **display cdp local**
·     System configuration
·     -------------------------------------------------------------------------- 
·     CDP Notification Interval          :5                    (default is 5s)              
·     CDP Notification Enable            :enabled              (default is enabled)      
·    
·     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 ---- ```

>查看SwitchA的邻居设备的CDP信息。

· <SwitchA> display cdp neighbor
· GigabitEthernet0/0/1 has 1 neighbor(s):
·
·
· Neighbor index :1
· Device ID :ME3400
· Port ID :GigabitEthernet0/4
· Version :Cisco IOS Software, ME340x Software (ME340x-METROIPACCESSK9-M),
· Version 12.2(55)SE3, RELEASE SOFTWARE (fc1)
· Technical Support: http://www.cisco.com/techsupport
· Copyright (c) 1986-2011 by Cisco Systems, Inc.
· Compiled Thu 05-May-11 17:37 by prod_rel_team
· Platform :cisco ME-3400EG-2CS-A
· MacAddress :b4a4-e3cf-e984
· Discovered time:0 days, 22 hours, 33 minutes, 36 seconds
· Expired time :122
---- More ---- ```

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,115评论 19 139
  • 0×1.EIGRP特性与基本配置EIGRP(Enhanced Interior Gateway Routing P...
    Zero___阅读 2,290评论 0 2
  • 姐姐是勤俭持家的好手。 姐姐的头发有那么十来根已经白了,姐姐选择染发。可是,发廊染发得一百元左右呢!于是,姐姐自己...
    爱阅沈阳阅读 280评论 0 0
  • 今天下午去学校给宝贝们的教室打扫卫生,说来真是惭愧,人家有的家长都参加好多次了,我还是第一次参加! 我们一...
    孙嘉润妈妈阅读 163评论 0 0
  • 演讲:龚焱转自:颠覆式创新研习社 欢迎投稿到硅谷堂,投稿联系硅谷君:zs981436532 演讲人|龚焱(中欧工商...
    硅谷堂阅读 6,786评论 1 11