Sending a holdtime Value of240seconds
Sending CDPV2adVertisements is enabled
SWitch0#copy running-config startup-config
Destination filename[startup-config]?
Building configuration...
[OK]
SWitch0#
对于交换机 SWitch1、SWitch2、SWitch3,其CDP协议参数配置方法与SWitch0相同。
任务4~任务6中路由器的CPD配置与交换机相近,故其配置步骤略去。整个网络配置完成之后,要对交换机和路由器进行验证。
9.3.4结果验证
1.查看路由器Router1的运行配置
Router1#shoW running-config
Building configuration...
Current configuration:563bytes
!
Version12.2
no serVice passWord-encryption
!
hostname Router1
!
!
enable passWord cisco
!
!
!
!
ip ssh Version1
!
!
interface FastEthernet0/0
ip address10.1.1.1255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address10.2.2.1255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address202.66.200.33255.255.255.252
clock rate1000000
!
router eigrp200
netWork10.1.1.00.0.0.255
netWork10.2.2.00.0.0.255
netWork202.66.200.320.0.0.3
auto-summary
!
ip classless
!
!
!
!
!
line con0
line Vty04
login
!
!
end
Router1#
本实训项目网络拓扑与项目6的相同,在项目6中整个网络已经调试连通。路由器Router2的配置情况与路由器Router1的相似,不再赘述。
2.查看交换机Switch1的邻居信息和接口信息
SWitch1#shoW cdp neighbors
Capability Codes:R-Router,T-Trans Bridge,B-Source Route Bridge
S-SWitch,H-Host,I-IGMP,r-Repeater,P-Phone
DeVice ID Local Intrfce Holdtme Capability Platform Port ID
Router1 Fas0/2149RC2600Fas0/0
SWitch1#
SWitch1#shoW cdp int f0/2
FastEthernet0/2is up,line protocol is up
Sending CDP packets eVery60seconds
Holdtime is180seconds
SWitch1#
3.查看路由器Router2的邻居信息和接口信息
Router2#shoW cdp neighbors
Capability Codes:R-Router,T-Trans Bridge,B-Source Route Bridge
S-SWitch,H-Host,I-IGMP,r-Repeater,P-Phone
DeVice ID Local Intrfce Holdtme Capability Platform Port ID
SWitch2 Fas0/0129S2950Fas0/2
SWitch3 Fas0/1129S2950Fas0/1
Router1 Ser0/0153RC2600Ser0/0
Router2#shoW cdp neighbors detail
DeVice ID:SWitch2
Entry address(es):
Platform:cisco2950,Capabilities:SWitch
Interface:FastEthernet0/0,Port ID(outgoing port):FastEthernet0/2
Holdtime:122
Version:
Cisco InternetWork Operating System SoftWare
IOS(tm)C2950SoftWare(C2950-I6Q4L2-M),Version12.1(22)EA4,RELEASE SOFTWARE(fc1)
Copyright(c)1986-2005 by cisco Systems,Inc.
Compiled Wed18-May-0522:31by jharirba
adVertisement Version:2
Duplex:full
DeVice ID:SWitch3
Entry address(es):
Platform:cisco2950,Capabilities:SWitch
Interface:FastEthernet0/1,Port ID(outgoing port):FastEthernet0/1
Holdtime:122
Version:
Cisco InternetWork Operating System SoftWare
IOS(tm)C2950SoftWare(C2950-I6Q4L2-M),Version12.1(22)EA4,RELEASE SOFTWARE(fc1)
Copyright(c)1986-2005 by cisco Systems,Inc.
Compiled Wed18-May-0522:31by jharirba
adVertisement Version:2
Duplex:full
DeVice ID:Router1
Entry address(es):
IPaddress:202.66.200.33
Platform:cisco C2600,Capabilities:Router
Interface:Serial0/0,Port ID(outgoing port):Serial0/0
Holdtime:146
Version:
Cisco InternetWork Operating System SoftWare
IOS(tm)C2600SoftWare(C2600-I-M),Version12.2(28),RELEASE SOFTWARE(fc5)
Copyright(c)1986-2005 by cisco Systems,Inc.
Compiled Wed27-Apr-0419:01by miWang
adVertisement Version:2
Duplex:full
Router2#shoW cdp int
FastEthernet0/0is up,line protocol is up
Sending CDP packets eVery60seconds
Holdtime is180seconds
FastEthernet0/1is up,line protocol is up
Sending CDP packets eVery60seconds
Holdtime is180seconds
Serial0/0is up,line protocol is up
Sending CDP packets eVery60seconds
Holdtime is180seconds
Router2#
9.4实训总结
从结果验证中可以看到详细的邻居设备的信息,达到实训预期效果。CDP协议与SNMP协议结合使用,对于网络管理员管理维护网络设备、排除网络故障将起到较大作用。
9.5实训思考
经过本项目实训之后,请回答下列问题。
1.在Router1上显示CDP激活的端口用什么命令?
2.CDP的通告间隔是什么?
3.CDP 保持时间间隔是什么?它的含义是什么?