iP路由交换技术2.pptVIP

  • 3
  • 0
  • 约 74页
  • 2017-08-17 发布于河南
  • 举报
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 例 全局禁用CDP,尝试在以太网接口0上启用CDP。 Router(config)# no cdp run Router(config)# end Router# show cdp % CDP is not enabled Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# interface ethernet0 Router(config-if)# cdp enable % Cannot enable CDP on this interface, since CDP is not running 禁用CDP的4个原因是: 节省网络带宽 1 节省CPU资源 2 4 连接的是非Cisco设备 3 确保安全 例 显示全局CDP信息。 Router# show cdp Global CDP information: Sending CDP packets every 60 seconds Sending a holdtime value of 180 seconds Sending CDPv2 advertisements is enabled 在特权EXEC模式下 前提模式: 命令格式: show cdp 功能: 显示CDP信息 在特权EXEC模式下 前提模式: 命令格式: show cdp entry {* | device-name[*]} [version] [protocol] 功能: 显示关于通过CDP发现 的指定邻居设备的信息 显示所有CDP邻居信息 邻居的名字,*作为通配符 (可选项)显示版本信息 (可选项)显示协议信息 例 显示邻居设备信息 Router# show cdp entry Device ID: Entry address(es): IP address: 4 IPv6 address: FE80::203:E3FF:FE6A:BF81 (link-local) IPv6 address: 4000::BC:0:0:C0A8:BC06 (global unicast) CLNS address: 490001.1111.1111.1111.00 Platform: cisco 3640, Capabilities: Router Interface: Ethernet0/1, Port ID (outgoing port): Ethernet0/1 Holdtime : 160 sec Version : Cisco Internetwork Operating System Software IOS (tm) 3600 Software (C3640-A2IS-M), Experimental Version 12.2 Copyright (c) 1986-2001 by cisco Systems, Inc. Compiled Wed 08-Aug-01 12:39 by joeuser 设备名称或者ID IP地址、IPv6本地链路地址、IPv6全局单播地址和CLNS地址 平台信息 接口和端口ID 保持时间,单位为秒 版本信息 在特权EXEC模式下 前提模式: 命令格式: show cdp interface 功能: 显示关于启用CDP接口的信息 (可选项)接口类型 (可选项)接口号码 [type number] 例 show cdp interface命令输出。 Router# show cdp interface Serial0 is up, line protocol is up, encapsulation is SMDS Sending CDP packets every 60 seconds Holdtime is 180 seconds Ethernet0 is up, line protocol is up, encapsulation is ARPA Sending CDP packets every 60 seconds Holdtime is 180 seconds 例 指定接口的show cdp interface命令输出。 Router# show cdp

文档评论(0)

1亿VIP精品文档

相关文档