4

This may be stupid question as I don't have much knowledge in networking.

Anyways, I have Cisco Catalyst 2960 switch and I'm curios if I can configure it to get IP configuration from DHCP server, like all other devices on network.

Now, I have to write it's IP configuration manually, but it would be nice if that can be handled by DHCP server.

  • 1
    Looks like Jordan Head already provided the answer you were looking for. With that said: I am curious as to why you would want a managed switch like the Cisco Catalyst 2960 to obtain an IP address via DHCP. I feel like benefits of manually setting the IP greatly outweigh dynamic allocation. Just looking for some insight into your train of thought. – user13722 Feb 11 '15 at 17:24
  • There's a million ways to skin a cat.. In this case DHCP server could be used to assign a particular address to the requesting source MAC address of the switch or SVI, thus the DHCP server will do some record keeping – eric Feb 11 '15 at 20:32
  • @nak, while I personally like to configure the IP on network devices, I have seen this used in locations where they anticipate changes such as DNS servers, gateways, or subnet masks and this allows devices to relearn these changes automatically without someone having to touch every device. – YLearn Feb 11 '15 at 21:06
8

You can specify an interface to receive an address from DHCP like this.

configure terminal
interface (int-name-num)
ip address dhcp

This guide gives way more detail into DHCP features - Cisco DHCP Client Configuration

You should note that there are additional commands to the ones I listed, but they are optional.

|improve this answer|||||
0

Since it's 2960, then it's only Layer 2 device, you can't assign the IP directly on the interface, however, you can use SVI (Switch Virtual Interface).

For example, assign Fa0/1 to vlan 100

then

Interface Vlan 100

ip address dhcp

!

|improve this answer|||||
0

The Catalyst 2950 Does not appear to me to have the option to allow it's VLAN's to accept DHCP.. If you use a Catalyst 2960-S, then you can set the vlan to procure it's IP address through DHCP.

I think the fundamental problem you are having is the switch does not have the capability. I only say that because I have both switches and my 2950 won't accept the VLAN 100 ip address dhcp command..

|improve this answer|||||
  • OP asked about a 2960 and not a 2950. – user36472 Mar 24 '18 at 18:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.