10-09-2006 01:58 PM - edited 03-05-2019 12:08 PM
10-11-2006 05:37 AM
Hi
DHCP server is possible in Cisco 2960 switches, find the configurations below according 2 ur requirement.
ip dhcp pool test
network 192.168.50.0 255.255.255.0
domain-name cisco.com
default-router 192.168.50.1
dns-server 192.168.50.2
lease 4
ip dhcp snooping
ip dhcp-server 192.168.50.3
interface vlan 1
ip address 192.168.50.3
you can also know the dhcp server status by
show ip dhcp binding
show ip dhcp conflicts
Note: you can also type the excluded ip address which will not be used by the dhcp server.
ip dhcp excluded-address 192.168.50.1 192.168.50.10
hope this helps,
rate this post if you cleared.
10-09-2006 08:05 PM
Celso,
According to this link
http://www.cisco.com/en/US/products/ps6406/products_configuration_guide_chapter09186a00805a75ba.html
It does.
_____
Please rate helpful posts.
Thanks
10-10-2006 12:52 PM
by default it says dhcp server is enabled. what is the default ip address range will it lease..
Am asking this coz ive replaced 20 edge switches with cisco 2960s after which the worksations started to acquire ip addresses with range of 192.168.50.xxx, and thereby created problem coz the known DHCP server has got range of class A.
i did not do any configurations on the switches prior to installations.
how could this happened?
thanks
10-10-2006 09:26 PM
Celso,
DHCP is enabled by default on the 2960 switch but the switch responds to DHCP requests only if it is configured as a DHCP server.
For example, a Sample DHCP Server configuration on the switch would look like:
ip dhcp pool TEST
network 10.1.1.0 255.255.255.0
dns-server 10.1.1.2
default-router 10.1.1.1
domain-name cisco.com
lease 4
Refer the fine print in the document for details.
Let me know if it helps.
Regards,
Arul
10-11-2006 05:37 AM
Hi
DHCP server is possible in Cisco 2960 switches, find the configurations below according 2 ur requirement.
ip dhcp pool test
network 192.168.50.0 255.255.255.0
domain-name cisco.com
default-router 192.168.50.1
dns-server 192.168.50.2
lease 4
ip dhcp snooping
ip dhcp-server 192.168.50.3
interface vlan 1
ip address 192.168.50.3
you can also know the dhcp server status by
show ip dhcp binding
show ip dhcp conflicts
Note: you can also type the excluded ip address which will not be used by the dhcp server.
ip dhcp excluded-address 192.168.50.1 192.168.50.10
hope this helps,
rate this post if you cleared.
06-26-2018 06:12 AM
Hi!
what if I must use two pools for single vlan?
regards
01-07-2019 03:17 AM
You have to configure DHCP Relay Agent.
09-26-2013 01:21 AM
Hello,
I have a question, will this work even if we have multiple vlan configured on the switch 2960
Also it will assign all host inside a vlan with IP based on the range defined in IP Pool
I mean it all host get random IPs from the range irrespective of the vlan they are in, right !!
Regards
09-26-2013 01:55 AM
Example -
Your hosts are in Vlan10
Vlan 10 has an SVI of 10.1.1.1 (/24)
You have a DHCP scope setup on the switch and as part of this scope you have to provide a Network address which will be 10.1.1.0. When yours hosts inside Vlan 10 send out a DHCPDISCOVER packet, the switch knows to direct this to the DHCP Pool for that specific subnet (i.e 10.1.1.0), Hosts inside Vlan 50 for example, will need thier own scope if you want them to have DHCP also.
The subnets and VLAN ID's above are just exampled.
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: