华为/华三/思科交换机直连信息

如果交换机标签老化脱落,不知道接口直连信息可以用以下信息查看交换机直连设备信息

华为/华三交换机用lldb命令快速查看邻居交换机
[CORE]lldp enable  //华为交换机都要手动开启这个服务
Info: Global LLDP is already enabled.
[CORE]display lldp neighbor brief //使用这条命令查看邻居交换机

华三交换机
[HY-CORE-A]display lldp neighbor-information list //服务默认开启的,直接用此条命令

LocalIf //本地接口
 
Nbr port ID //邻居端口ID
 
Nbr system name //邻居主机名

思科cdp协议

show running-config    //查看所有信息
show interfaces   //查看接口
show interfaces status 查看端口的基本状态信息

show ip interfaces brief 查看包括IP信息在内的端口简要状态信息
路由器和交换机都使用相同参数


方案一:将交换机名字全部改了。
R1(config)#hostname 名字    //改名字
Switch#show version
启动cdp  enable   //启动cdp
no cdp enable    //关闭cdp
show cdp   //查看cdp
show cdp neighbor //路由器显示有关直连设备的信息
show cdp neighbor  detail      //交换机显示有关直连设备的信息
show cdp entry *    //同上一样的作用
http://www.360doc.com/content/10/0719/21/2160713_40166984.shtml     //网子

查看光纤端口的状态信息
1. show interfaces transceiver detail

show ip int brief   //路由器接口信息
查看所有光纤口的详细状态信息
恢复端口的链路类型为缺省的Access端口
 undo port link-type
switch#show history //查看历史输入命令
2. show interfaces <int-type int-number> transceiver detail

查看指定光口的详细状态信息

3. show interfaces transceiver

查看所有光纤口的简要状态信息

4. show interfaces <int-type int-number> transceiver

查看指定光纤口的简要状态信息

 

  • 1
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值