Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Serial0 is up, line protocol is up, encapsulation is HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Serial1 is administratively down, line protocol is down, encapsulation is HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
R1#
保持时间是如何计时与清除超时信息的。
我们知道CDP过了保持时间以后会自动被清除,那么保持时间是如何被清除的可见如下实验。
首先我们先到交换机SW1上去关闭交换机与路由器R1的直连端口fastethernet 0/1
SW1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#int fa 0/1
SW1(config-if)#no cdp enable
SW1(config-if)#exi
SW1(config)#
然后我们到路由器R1上查看保持时间。
R1#show cdp nei
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW1 Eth 0 6 T S WS-C2912-XFas 0/1
R2 Ser 0 136 R 2500 Ser 0
R1#show cdp nei
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW1 Eth 0 0 T S WS-C2912-XFas 0/1
R2 Ser 0 130 R 2500 Ser 0
R1#show cdp nei
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
R2 Ser 0 126 R 2500 Ser 0