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
    Commented Feb 11, 2015 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
    Commented Feb 11, 2015 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
    Commented Feb 11, 2015 at 21:06

3 Answers 3


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.


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


Interface Vlan 100

ip address dhcp



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..

  • OP asked about a 2960 and not a 2950.
    – user36472
    Commented Mar 24, 2018 at 18:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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