08-30-2013 10:24 AM - edited 03-07-2019 03:13 PM
Hello,
Is it possible for my Catalyst 2960-s to provide DHCP/NAT service over a single interface? There is no other DHCP server on the network. I am thinking there must be a way to do this, maybe with a VLAN to a specific interface on the switch?
I want to have a 172.16.xx.xx DHCP service on just that switch interface, nowhere else. Do these switches know how to do that, or does it have to happen on a router?
I don't think "DHCP Snooping" is what I want, but I'm not entirely sure what "snooping" is.
08-30-2013 12:14 PM
I've never done it, but I have 2960-S switches as well. The commands to enable dhcp are there, so I'd be curious to see what you can come up with. I would assume that it would only be able to support a single vlan though since there can only be a single management interface, but don't quote me on that.
ip dhcp excluded-address 172.16.10.1 172.16.10.99
ip dhcp pool VLAN1
network 172.16.10.0 255.255.255.0
default-router 172.16.10.1
dns-server 8.8.8.8 4.2.2.1
int vlan 1
ip address 172.16.10.5 255.255.255.0
I would think that anyone in vlan 1 would get the address from this pool, but I would highly recommend that if you have the option, put the dhcp pool on the router. You can support multiple vlans/subnets from it definitely.
HTH,
John
*** Please rate all useful posts ***
08-30-2013 09:54 PM
The 2960 series does indeed support DHCP, even for multiple VLANs. However, you will need a router or firewall for NAT capabilities.
Regards,
Mike
Sent from Cisco Technical Support iPad App
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide