Solved

DHCP per VLAN Cisco 3750

Posted on 2014-07-25
1
4,139 Views
1 Endorsement
Last Modified: 2014-07-25
Hey guys,

I need to run DHCP just for one of my vlans (voice) on my 3750G's. How do i do this?

Thanks!
1
Comment
Question by:Cobra25
1 Comment
 
LVL 10

Accepted Solution

by:
Rafael earned 500 total points
ID: 40220258
Create a VLAN for the DHCP IP addresses you want to use.
Router(config)#Interface vlan 20
Router(config)#ip address y.y.y.y y.y.y.y
Router(config)#exit

Then create the DHCP pool on the switch and exclude some addresses.

Router(config)# ip dhcp pool mypool
Specify the network and subnet for the addresses you want to use from the pool.
Router(dhcp-config)# network 1.1.1.0 /8  
Specify the DNS domain name for the clients.
Router(dhcp-config)#domain-name mydomain.com
Specify the primary and secondary DNS servers.
Router(dhcp-config)#dns-server 1.1.1.10 1.1.1.11
Specify the default router (i.e., default gateway).
Router(dhcp-config)#default-router 1.1.1.1
Specify the lease duration for the addresses you're using from the pool.
Router(dhcp-config)#lease 7
Exit Pool Configuration Mode.
Router(dhcp-config)#exit
Router(config)#exit

Don't forget to use the "ip dhcp excluded-address 10.10.10.1 10.10.10.100" (for example) to block off part of the subnet if needed.

Unless your DCHP server is off on another broadcast domain, you won't need a helper-address command.

HTH

-Rafael
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AWS has developed and created its highly available global infrastructure allowing users to deploy and manage their estates all across the world through the use of the following geographical components   RegionsAvailability ZonesEdge Locations  Wh…
How to set-up an On Demand, IPSec, Site to SIte, VPN from a Draytek Vigor Router to a Cyberoam UTM Appliance. A concise guide to the settings required on both devices
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now