02-18-2008 12:56 PM - edited 03-05-2019 09:13 PM
Im doing some discovery on my network and came across this..
the device I am telnetted into is a 3845
When I do a sho cdp neig...i get no IP information..Shouldn't I at least get
the mgt IP of vlan 1?
3845#sh cdp neighbors det
-------------------------
Device ID: CAT.SWITCh
Entry address(es):
Platform: cisco WS-C4006, Capabilities: Router Switch IGMP
Interface: GigabitEthernet0/0, Port ID (outgoing port): GigabitEthernet2/22
Holdtime : 168 sec
Version :
Cisco IOS Software, Catalyst 4000 L3 Switch Software (cat4000-I9S-M), Version 12
.2(25)EWA4, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Fri 23-Sep-05 13:31 by ssearch
advertisement version: 2
VTP Management Domain: ''''
Native VLAN: 119
Duplex: full
-------------------------
02-18-2008 12:58 PM
Hi
You will only get an IP address if it has been configured. Are you sure it has been configured ?
Jon
02-18-2008 01:06 PM
that I can't verify...but what use would a switch be without an IP configuration?
02-18-2008 01:09 PM
Well it depends on whether it is a layer 2 or layer 3 switch :)
If it is layer 3 and it is meant to be doing inter-vlan routing i agree without IP config of some sort it's not a lot of use.
But if it is a layer 2 switch or a layer 3 switch acting as a layer 2 switch then the IP configuration is only needed for managing the switch itself. Without an IP config you can still have multiple L2 vlans and clients/servers/printers etc. connected into the ports and it will do it's job.
Jon
02-19-2008 06:04 AM
If it is acting as a layer 2 switch, wouldnt
the vlan interfaces have an IP address and thus be advertised via cdp ?
02-19-2008 06:32 AM
Hi There
No. A switch working at layer 2 would not require VLAN interfaces and thus would not have IP addresses assigned to these.
A switch working at layer 2 would have VLAN's configured and the relevant ports assigned to the desired VLAN.
Routing would happen by the switch being uplinked to a router via a trunk link, thus traffic for all VLAN's would traverse the trunk to the router. The router would then pass the traffic back down the trunk destined for the required VLAN, where the switch would switch it to the correct port on the VLAN or all ports on the VLAN, depending on whether there was an entry in the CAM table for the MAC of the destination host.
However a switch with no IP addresses configured would require local administration (via the console). For remote adminstration an IP addresses would be assigned to a VLAN interface and this would then be advertised via CDP.
HTH
Best Regards,
Michael
02-19-2008 01:35 PM
thx..
so if I configure only 1 vlan
Say vlan 12
and assign it an IP address of 192.168.2.2
is this what will be advertised via cdp to
the switch on the other end of my trunk?
so in theory I would have vlan 12 and vlan1
but not ip for vlan 1
02-19-2008 01:42 PM
Hi
Yes, 192.168.2.2 will be advertised and your switch IP would be on vlan 12 interface.
vlan 1 would still exist but it just wouldn't have a L3 interface with an IP address, assuming this is a layer 2 switch.
HTH
Jon
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: