CCNA实验大全
一、CDP 的配置。
1
2
3
S1/1
S1/0
S1/1
S1/0
要求:a、配置接口的信息。
b 、R1能ping通R2,R2能ping通R3;
c、在R2 S1/0关闭cdp,使R1不能发现R2,但R3可以发现R2;
d、 R2在全局的模式下关闭cdp,让所有的路由器间不能相互发现对方。
注:如果路由器之间连接帧中继,需要封装encapsulation frame-relay
步骤:1、配置基本信息
Router(config)#hostname R1
R1(config)#no ip domain-lookup
R1(config)#line con 0
R1(config-line)#logging syn
R1(config-line)#exec-timeout 0
R1(config)#interface s1/1
R1(config-if)#no shutdown
R1(config-if)#ip address
Router(config)#hostname R2
R2(config)#no ip domain-lookup
R2(config)#line con 0
R2(config-line)#logging syn
R2(config-line)#exec-timeout 0
R2(config)#interface s1/0
R2(config-if)#no shutdown
R2(config-if)#ip address
R2(config-if)#exit
Router(config)#interface s1/1
R2(config-if)#no shutdown
R2(config-if)#ip address
Router(config)#hostname R3
R3(config)#no ip domain-lookup
R3(config)#line con 0
R3(config-line)#logging syn
R3(config-line)#exec-timeout 0
R3(config)#interface s1/0
R3(config-if)#no shutdown
R3(config-if)#ip address
2、R1能ping通R2,R2能ping通R3;
r1#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:
!!!!!
ess rate is 100 percent (5/5), round-trip min/avg/max = 48/56/88 ms
R2#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:
!!!!!
ess rate is 100 percent (5/5), round-trip min/avg/max = 48/56/88 ms
3在R2 S1/0关闭cdp,使R1不能发现R2,但R3可以发现R2;
r1#show cdp neighbors
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 1/1 147 R 7206VXR Ser 1/0
在R2s1/0关闭cdp:(直关闭接口的CDP)
R2(config)#interface s1/0
R2(config-if)#no cdp enable
在R1查询cdp的邻居(60s):
r1#show cdp neighbors
Capability Codes: R
CCNA实验大全 来自淘豆网m.daumloan.com转载请标明出处.