My Boss’ DHCP Experiment on a 2950

My boss recently let me know of some interesting stuff he was doing with a Cisco 2950 24 port switch.  Apparently you cannot make a 2950 a DHCP server, but if you flash the 2950 to use a 2960 lanbase image, it works just fine!

 

Below is my boss’ text. Any questions, tweet him @RayGodwin1

****

My first inclination would be to say no, but I went and checked on a 2950 running
(C2960-LANBASEK9-M), Version 12.2(25)SEE2 and it appears to work! I say appears as I am remote from the switch and cannot (yet) validate operation.

Below is the sequence to configure it. As its a layer 2 switch we are restricted to servicing only request from 1 VLAN (in this case the default vlan 1) I did a show command to see what the address was on int vlan 1.

Switch2950#show run interface vlan 1
Building configuration…

Current configuration : 78 bytes
!
interface Vlan1
ip address 10.3.3.57 255.255.255.0
no ip route-cache
end

Switch2950#

Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#host Switch2950
Switch2950(config)#ip dhcp pool test
Switch2950(dhcp-config)#network 10.3.3.0 /24
Switch2950(dhcp-config)#default-router 10.3.3.1
Switch2950(dhcp-config)#ip dhcp excluded-address 10.3.3.1 10.3.3.49
Switch2950(config)#ip dhcp excluded-address 10.3.3.60 10.3.3.254
Switch2950(config)#end
Switch2950#
Switch2950#show ip dhcp server statistics
Memory usage 4517
Address pools 1
Database agents 0
Automatic bindings 0
Manual bindings 0
Expired bindings 0
Malformed messages 0

Message Received
BOOTREQUEST 0
DHCPDISCOVER 0
DHCPREQUEST 0
DHCPDECLINE 0
DHCPRELEASE 0
DHCPINFORM 0

Message Sent
BOOTREPLY 0
DHCPOFFER 0
DHCPACK 0
DHCPNAK 0
Switch2950#