R1 S0 ----------S0 R2 S1--------- S0 R3
R1 s0 10.1.1.1 /24
R2 s0 10.1.1.2/24
R2 s1 20.1.1.1/24
R3 s0 20.1.1.2/24
这里面要注意,你要sh cdp nei之前,要保证R2能ping通 R1和R3
R2两个串口都是DCE,应该要记得配置clock rate 64000
实验的结果应该是:
R1上看到邻居路由器R2,看不到R3
R2上能看到邻居路由器R1和R3
R3上能看到邻居路由器R2,看不到R1
R1结果:
R1#sh ip int brief
Interface IP-Address OK? Method Status Prot
ocol
Ethernet0 unassigned YES unset administratively down down
Ethernet1 unassigned YES unset administratively down down
Serial0 10.1.1.1 YES manual up up
Serial1 unassigned YES unset administratively down down
R1#sh 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 124 R 2500 Ser 0
R1#
R2结果:
R2#
R2#sh ip int brief
Interface IP-Address OK? Method Status Pr
ocol
Ethernet0 unassigned YES unset administratively down do
Ethernet1 unassigned YES unset administratively down do
Serial0 10.1.1.2 YES manual up up
Serial1 20.1.1.1 YES manual up up
R2#sh 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
r3 Ser 1 140 R 2500 Ser 0
R1 Ser 0 128 R 2500 Ser 0
R2#
R3结果
r3#sh ip int brief
Interface IP-Address OK? Method Status Prot
ocol
Ethernet0 unassigned YES unset administratively down down
Ethernet1 unassigned YES unset administratively down down
Serial0 20.1.1.2 YES manual up up
Serial1 unassigned YES unset administratively down down
r3#sh 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 162 R 2500 Ser 1
r3#
有问题欢迎多指教! |