08-15-2007 03:55 AM - edited 03-03-2019 06:20 PM
Is there a way to find out about my neighbors subnet mask?
when i issue the command:
>show cdp neighbors detail
i get an ip address but not the mask.
is there any way to find it using cdp?
(suppose i have a router that is connected to a switch but i cant access that switch - only through cdp. and i need to configure the routers address for the interface which connects to the switch - how do i do that if i cant see the mask?)
08-15-2007 04:13 AM
Hi, [Pls Rate if HELPS]
"show cdp neighbors" will not give you the MASK Details.
You need to have a Valid IP Range for this Network Setup. Verify the IP Subnetting Documents in Web. Calculate the IP Address Ranges using the Site below:
http://www.subnet-calculator.com
Consider Router FastEthernet0/1 connected to the Switch.
Router#configure terminal
Router(config)#int fa eth 0/1
Router(config-if)#ip address
Switch:
Configure the Same IP @ Subnet in the Switch Interface.
Test the Connection using Ping. If successful then you should be able to Telnet the Switch also.
PLS RATE if HELPS
Best Regards,
Guru Prasad R
08-15-2007 05:58 AM
I cannot access to the switch! only if if i could telnet to it. it has an ip assigned to it which i can find using cdp. is it gonna work?
08-15-2007 06:15 AM
If you know the switch IP from CDP, just apply the switch IP + 1 on the router interface.
For instance if the switch IP is 192.168.1.1, assign the router 192.168.1.2 - test with ping and then attempt to telnet.
The subnet mask need not to match. Ideally, all devices in a subnet must have the same subnet mask so they can agree on their broadcast domain but you can have a device with 255.255.255.240 and another device with 255.255.255.0. The first device will limit its broadcast domain to 14 hosts while the second device will have its broadcast domain composed of 254.
HTH,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide