Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

DHCP based Auto Configuration in 2950

I have a 2950-24 Switch. With IOS 12.1(19)EA1.

Trying to follow this link, to do a DHCP based auto configuration of the switch, which is not working as expected.

http://www.cisco.com/en/US/products/hw/switches/ps628/products_configuration_guide_chapter09186a008007e8bf.html#64690

The file network-confg file was created with host to IP mappings on the TFTp server default directory. The file looks like this.

ip host switch1 10.0.0.3

ip host switch2 10.0.0.4

ip host switch3 10.0.0.5

Also the original Switch configuration files are also present in the same folder. "switch1-confg", "switch2-confg" etc...

The Switch1 had no ip address configured on vlan 1, and it also has "service config" enabled. When the switch boots up, it doesnt acquire a DHCP address as specified by the document. It also pops up with the following errors.

%Error opening tftp://255.255.255.255/network-confg (Socket error)

%Error opening tftp://255.255.255.255/cisconet.cfg (Socket error)

%Error opening tftp://255.255.255.255/switch-confg (Socket error)

%Error opening tftp://255.255.255.255/ciscortr.cfg (Socket error)

The DHCP server is a router with IP address 10.0.0.1. A host pool has been created in the router to manually bind the switch mac address to its ip address.

ip dhcp excluded-address 10.0.0.1

ip dhcp excluded-address 10.0.0.2

!

ip dhcp pool test

host 10.0.0.3 255.255.255.0

hardware-address 000e.38a0.4880

bootfile switch1-confg

option 66 ip 10.0.0.2

Here, 10.0.0.1 is the router itself, 10.0.0.2 is the TFTP server, 10.0.0.3 is the ip address that is supposed to be leased to the Switch1.

Nothing seem to work as expected. Have I missed something here ? Anybody who has done this kind of setup, please throw in your experiences.

PS: I also have noticed the following bug in 12.0(5)WC3 images on 2950. Bug ID is CSCds58369.

Bug Description - If the switch gets configured from the dynamic IP pool, a duplicate or different IP address might be assigned.

The workaround is to make sure that the DHCP server contains reserved addresses that are bound to each switch by the switch hardware address so that the switch does not obtain its IP address from the dynamic pool.

If you note my configuration, the mac address of the switch has been manually binded to the ip address 10.0.0.3

Thanks...

1 REPLY
Bronze

Re: DHCP based Auto Configuration in 2950

Just wondering if the TFTP server has to be represented by a name and DNS should be configured to resolve it to IP address. You can probably use 'debug dhcp detail' or 'debug ip dhcp server events' on the DHCP server to see the messages being exchanged.

321
Views
0
Helpful
1
Replies