频道栏目
首页 > 资讯 > 交换机 > 正文

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

15-09-25        来源:[db:作者]  
收藏   我要投稿
整理:
公有 LLDP  
sys
lldp enable   //开启
disp lldp nei br   // 查看邻居 
 
解释:
配置LLDP兼容CDP协议的功能示例
组网需求
如图1所示,华为设备SwitchA和其他厂商设备SwitchB之间通过一个未知网络相连。NMS与SwitchA和SwitchB之间路由可达且SNMP配置完成。
网络管理员希望在NMS上可以获取到SwitchA和SwitchB之间的二层配置信息,用于了解网络的详细拓扑信息、判断网络中是否有配置冲突的情况。
图1 LLDP兼容CDP协议配置组网图 
配置思路
采用如下的思路配置LLDP兼容CDP协议:
1.  使能SwitchA的全局LLDP功能。
2.  在SwitchA上配置LLDP兼容CDP协议的功能,使得华为设备能够发现与之相连的其他厂商设备。
操作步骤
1.  使能SwitchA的全局LLDP功能
<HUAWEI> system-view
[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 ---- 
相关TAG标签
上一篇:利用两种不同的NAT配置实现两个接口的双向静态NAT测试
下一篇:模仿微信语音聊天功能(4) 音频播放实现以及项目结束
相关文章
图文推荐

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站