Description: We try some important cdp show commands.
(Choose R1 from n/w diagram).
The command cdp neighbors provides the output in the following format:
Router#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
7206 Eth 0 157 R 7206VXR Fas 0/0/0
Instructions:
1. Enter into privileged mode
2. Enter into global Configuration Mode
3. Set IP Address of Serial 0 as 192.10.1.1 and Subnet Mask as
255.255.255.0 on R1
4. Set IP Address of Serial 0 as 192.10.1.2 and
Subnet Mask as 255.255.255.0 on R2
5. Type the command to view information about directly connected
neighbors
R1>enable
R1#configure terminal
R1(config)#interface s 0
R1(config-if)#ip address 192.10.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#end
R2>enable
R2#configure terminal
R2(config)#interface s 0
R2(config-if)#ip address 192.10.1.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#end
R2#show cdp neighbors