📄 labcdp.htm
字号:
neighbors.</font></p>
<form name="form91">
<p><font face="Times New Roman, Times, serif"><select size="1">
<option>- Click Here to View Answer -</option>
<option>R1#show cdp neighbors detail</option>
</select></font></p>
</form>
<p><font face="Times New Roman, Times, serif">The below is sample output</font></p>
<p><font face="Terminal" size="2">Device ID: R4<br>
Entry address(es):<br>
Platform: cisco 1000, Capabilities: Router<br>
Interface: Serial0, Port ID (outgoing port): Serial0<br>
Holdtime : 162 sec<br>
<br>
Version :<br>
Cisco Internetwork Operating System Software<br>
Software, Version 12.0(16), RELEASE SOFTWARE (fc2)<br>
Copyright (c) 1986-2001 by cisco Systems, Inc.<br>
Compiled Fri 02-Mar-01 17:34 by dchih</font><br>
<font color="#FF0000">
<br>
</font><font face="Times New Roman">This command shows devices one at a time. It
is used to display Network Layer address information. At this point there are no configured
IP, IPX or AppleTalk addresses so this field is blank. The command also displays
IOS version information. Notice that the devices are listed in order. If one
wants to find out information about a device further down the list, one would
need to scroll down using the space bar.</font></p>
<p><font color="#FF00FF"><b><font face="Times New Roman, Times, serif">10.</font></b></font><font face="Times New Roman, Times, serif">
On R1, type the command to provide information about the specific device "R4"</font></p>
<form name="forma1">
<p><font face="Times New Roman, Times, serif">
<select size="1">
<option>- Click Here to View Answer -</option>
<option>R1#show cdp entry R4</option>
</select>
</font></p>
</form>
<p><font face="Times New Roman, Times, serif">The below is sample output</font></p>
<p><font face="Terminal" size="2">Device ID: R4<br>
Entry address(es):<br>
Platform: cisco 1000, Capabilities: Router<br>
Interface: Serial0, Port ID (outgoing port): Serial0<br>
Holdtime : 148 sec<br>
<br>
Version :<br>
Cisco Internetwork Operating System Software<br>
Software, Version 12.0(16), RELEASE SOFTWARE (fc2)<br>
Copyright (c) 1986-2001 by cisco Systems, Inc.<br>
Compiled Fri 02-Mar-01 17:34 by dchih<br>
<br>
R1# </font></p>
<p><font face="Times New Roman, Times, serif">This command gives the same information as the </font><font face="Times New Roman, Times, serif" size="2">show cdp neighbor detail</font><font face="Times New Roman, Times, serif"> </font>
<font face="Times New Roman, Times, serif">command, but allows a single device to be
specified. Also notice that this is one of the only case-sensitive commands
that exist.</font></p>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>11.</b></font><font face="Times New Roman, Times, serif">
On R1, type the command to see how often CDP updates are being sent and how
long a recipient is to hold on to the update.</font></p>
<form name="formb1">
<p><font face="Times New Roman, Times, serif"><select size="1">
<option>- Click Here to View Answer -</option>
<option>R1#show cdp</option>
</select></font></p>
</form>
<p><font face="Times New Roman, Times, serif">The below is sample output</font></p>
<p><font face="Terminal" size="2">Global CDP information:<br>
Sending CDP packets every 60 seconds<br>
Sending a holdtime value of 180 seconds
<br>Sending CDPv2 advertisements is enabled</font></p>
<p><font color="#FF00FF"><b><font face="Times New Roman, Times, serif">12.</font></b><font face="Times New Roman, Times, serif">
</font></font><font face="Times New Roman, Times, serif">On R1, type the command
to adjust the amount of seconds between CDP updates to 45.</font></p>
<form name="formc1">
<p><font face="Times New Roman, Times, serif">
<select size="1">
<option>- Click Here to View Answer -</option>
<option>R1#conf t</option>
<option>R1(config)#cdp timer 45</option>
</select>
</font></p>
</form>
<p><font face="Times New Roman, Times, serif"> Besides the update interval,
the holdtime value may also be adjusted. This value tells the recipient
of the update how long to hold on to the CDP information in the update. It
is also a global parameter.</font></p>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>13.</b></font><font face="Times New Roman, Times, serif">
On R1, type the command to adjust the holddown timer to 60 seconds.</font></p>
<form name="formd1">
<p><font face="Times New Roman, Times, serif">
<select size="1">
<option>- Click Here to View Answer -</option>
<option>R1#conf t</option>
<option>R1(config)#cdp holdtime 60</option>
</select>
</font></p>
</form>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>14.</b> </font><font face="Times New Roman, Times, serif">On
R1, type the command to verify the changes made.</font></p>
<form name="formdd1">
<p><font face="Times New Roman, Times, serif">
<select size="1">
<option>- Click Here to View Answer -</option>
<option>R1#show cdp</option>
</select>
</font></p>
</form>
<p><font face="Times New Roman, Times, serif">The below is sample output</font></p>
<p><font face="Terminal" size="2">R1#sh cdp<br>
Global CDP information:<br>
Sending CDP packets every 45 seconds<br>
Sending a holdtime value of 60 seconds
<br>Sending CDPv2 advertisements is enabled<br>
R1# </font></p>
<p><font face="Times New Roman, Times, serif">If there
are no other directly connected Cisco devices on the network, or to simply conserve
bandwidth, CDP can be
disabled.</font></p>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>15.</b> </font><font face="Times New Roman, Times, serif">On
R1, type the command to disable CDP for the ENTIRE router.</font></p>
<form name="forme1">
<p><font face="Times New Roman, Times, serif"><select size="1">
<option>- Click Here to View Answer -</option>
<option>R1#conf t</option>
<option>R1(config)#no cdp run</option>
</select></font></p>
</form>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"> <b>16.</b></font><font face="Times New Roman, Times, serif">
On R1, type the command to turn CDP back on for the ENTIRE router.</font></p>
<form name="formf1">
<p><font face="Times New Roman, Times, serif"><select size="1">
<option>- Click Here to View Answer -</option>
<option>R1#conf t</option>
<option>R1(config)#cdp run</option>
</select></font></p>
</form>
<p><font face="Times New Roman, Times, serif"> At times
you may wish to disable CDP for a specific interface, for example a very low-bandwidth
interface, or security reasons.</font></p>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>17.</b></font><font face="Times New Roman, Times, serif">
On R1, Disable CDP for only the specific interface Ethernet 0.</font></p>
<form name="formg1">
<p><font face="Times New Roman, Times, serif"><select size="1">
<option>- Click Here to View Answer -</option>
<option>R1(config)#interface Ethernet 0</option>
<option>R1(config-if)#no cdp enable</option>
</select></font></p>
</form>
<p><font face="Times New Roman, Times, serif"> <font color="#FF00FF"><b>18.</b>
</font></font><font face="Times New Roman, Times, serif">On R1, type the command
to verify that Ethernet 0 is no longer sending CDP updates (You can verify that
is not sending cdp updates because it is not show in the output).</font></p>
<form name="formh1">
<p><font face="Times New Roman, Times, serif"><select size="1">
<option>- Click Here to View Answer -</option>
<option>R1#show cdp interface</option>
</select></font></p>
</form>
<p><font face="Times New Roman, Times, serif">Below is sample output from the command.</font></p>
<p><font size="2" face="Terminal">R1#show cdp interface<br>
Serial0 is up, line protocol is up<br>
Encapsulation HDLC<br>
Sending CDP packets every 45 seconds<br>
Holdtime is 60 seconds </font> </p>
<p> </p>
<p><font face="Times New Roman, Times, serif" size="2"><span class="724482219-24092001">Copyright (c)
1998-2003 Boson Software, Inc. All Rights Reserved.</span></font></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -