zoukankan      html  css  js  c++  java
  • CISCO实验记录三:CDP邻居发现

    一、CDP邻居发现要求

    1、识别二层连接

    2、识别CDP邻居

    二、CDP邻居发现操作

    1、CDP邻居发现

    #interface gigabitEthernet 0/0/0 //启动端口 

    #no shutdown

    #show ip interface brief  //查看路由端口状态(设备二层连接情况)

    GigabitEthernet0/0/0 unassigned YES manual up up

    GigabitEthernet0/0/1 unassigned YES unset administratively down down

    Vlan1 unassigned YES unset administratively down down

    (其中,G0/0/0末尾处两个up表明本端和对端的端口都是up的)

    #show cdp //查看cdp设置

    #show cdp neighbors //查看CDP邻居

    2、CDP邻居发现总结

    CDP是基于二层的协议,所以只需要设备端口通过网线相连,并处于no shutdown状态(无需配置IP)即可通过CDP协议发现相邻设备,且能知道设备类型和型号。

    不仅如此,还能通过CDP知道对端设备hostname、本端的端口名、对端的端口名

  • 相关阅读:
    cookie 和 session 和 session id
    getMasterRequest VS getCurrentRequest?
    drupal 7 watchdog 记录debug信息
    刷环境
    再进一步
    7zip 不见 .git
    为什么我记不住密码
    www / publish
    behat debug / class property
    drupal 网站Log
  • 原文地址:https://www.cnblogs.com/cation/p/11351766.html
Copyright © 2011-2022 走看看