cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1807
Views
9
Helpful
3
Replies

CDP and subnet mask

milkdroogy
Level 1
Level 1

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?)

3 Replies 3

guruprasadr
Level 7
Level 7

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 mask

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

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?

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,

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card