1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > NA-NP-IE系列实验7:CDP

NA-NP-IE系列实验7:CDP

时间:2022-02-09 11:43:00

相关推荐

NA-NP-IE系列实验7:CDP

实验7:CDP<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />1. 实验目的通过本实验,读者可以掌握如下技能:(1) 查找CDP 邻居(2) 熟悉CDP 的配置2. 实验拓扑图2-11 实验7 拓扑图 3. 实验步骤(1) 步骤1:打开接口R1(config)#int g0/0R1(config-if)#no shutdownR1(config-if)#int s0/0/0R1(config-if)#no shutdownR2(config)#int g0/0R2(config-if)#no shutdownR2(config-if)#int s0/0/0R2(config-if)#no shutdownR2(config-if)#clock rate 128000//以上是打开路由器间互连的各个接口,而默认时交换机S1 的所有接口就是打开的。(2) 步骤:查看CDP 配置R1#show cdpGlobal CDP information: Global CDP information:Sending CDP packets every 60 secondsSending a holdtime value of 180 secondsSending CDPv2 advertisements is enabled//默认时CDP 是运行的,每60 秒从接口发送cdp 消息;发送出的CDP 消息,邻居会为它保存180 秒R1#show cdp interfaceGigabitEthernet0/0 is up, line protocol is upEncapsulation ARPASending CDP packets every 60 secondsHoldtime is 180 secondsGigabitEthernet0/1 is administratively down, line protocol is downEncapsulation ARPASending CDP packets every 60 secondsHoldtime is 180 secondsSerial0/0/0 is down, line protocol is downEncapsulation HDLCSending CDP packets every 60 secondsHoldtime is 180 secondsSerial0/0/1 is administratively down, line protocol is downEncapsulation HDLCSending CDP packets every 60 secondsHoldtime is 180 seconds//以上显示在哪些接口运行CDP 协议(3) 步骤3:查看CDP 邻居R1#show cdp neighborsDevice ID Local Intrfce Holdtme Capability Platform Port IDR2 Ser 0/0/0 137 R S I 2821 Ser 0/0/0S1 Gig 0/0 172 S I WS-C3560- Fas 0/1//以上显示R1 路由器有两个邻居:R2 和S1。“Device ID”表示邻居的主机名;“Local Intrfce”表明R1 通过该接口和邻居连接,注意是R1 上的接口;“Holdtme”指收到邻居发送的CDP消息的时间,采用倒计时;“Capability”表明邻居是什么设备,第一、二行Capability Codes对各符号进行了说明;“Platform”指明了邻居的硬件型号;“Port ID”指明了R1 是连接对方的哪个接口上。R1#show cdp entry R2-------------------------Device ID: R2Entry address(es):Platform: Cisco 2821, Capabilities: Router Switch IGMPInterface: Serial0/0/0, Port ID (outgoing port): Serial0/0/0Holdtime : 158 secVersion :Cisco IOS Software, 2800 Software (C2800NM-ADVENTERPRISEK9-M), Version 12.4(11)T1, RELEASESOFTWARE (fc5)Technical Support: /techsupportCopyright (c) 1986- by Cisco Systems, piled Thu 25-Jan-07 12:50 by prod_rel_teamadvertisement version: 2VTP Management Domain: ''//以上是显示邻居R2 的详细信息,甚至可以知道邻居的IOS 版本R1#clear cdp table//清除CDP 表(4) 步骤4:关、启CDP;调整CDP 参数R1(config)#int g0/0R1(config-if)#no cdp enable//以上是在g0/0 接口上关闭cdp,其他接口还运行CDPR1(config-if)#exitR1(config)#no cdp run //以上是在整个路由器上关闭cdpR1(config)#cdp run //在整个路由器上打开cdpR1(config)#cdp timer 30 //调整CDP 消息发送时间为30 秒R1(config)#cdp holdtime 120//调整CDP 消息的holdtime 为120 秒,对方收到该路由器发送的CDP 消息后将保持120 秒R1#show cdpGlobal CDP information:Sending CDP packets every 30 secondsSending a holdtime value of 120 secondsSending CDPv2 advertisements is enabled

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。