Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DHCP relay

Status
Not open for further replies.

JVANH

IS-IT--Management
Apr 12, 2005
26
This may be a dumb question, but I'm gonna ask anyway.
If I setup a single DHCP server with a scope that encompasses a subnet like 10.0.0.0/16 and I segment my network using VLANs to something like 10.0.1.0/24, 10.0.2.0/24, etc. And if I use DHCP Relay to broadcast DHCP packets to all VLANS.

What prevents me from having a device assigned an IP address that is out of it’s VLANs subnet. Like on VLAN 10.0.2.0/24 a device gets IP 10.0.3.25? Or do I need to setup multiple DHCP servers one for each VLAN?
 
You would need to have multiple scopes for each subnet. When the packet is relayed to the DHCP server (or subnet that the DHCP server resides on), the server will receive a source address identifying which subnet the request is for. The DHCP server will then look for an available scope that meets those criteria.

You'll need a scope for 10.0.2.0/24, 10.0.3.0/24, etc.

 
If your DHCP server has a /16 scope and different VLAN's - /24 subnets - are forwarding to DHCP server it won't work. Why ? Because the forwarded DHCP broadcast includes the source VLAN information that ID's which scope to hand out addresses from. This source information is the forwarding VLAN's default gateway.

 
a subnet like 10.0.0.0/16 and I segment my network using VLANs to something like 10.0.1.0/24, 10.0.2.0/24, etc.

------------------------------------------------

You´ve got a IP-Subnet Error the network: 10.0.0.0/16 get a range from 10.0.0.1 till 10.0.255.254. Your other Vlans are in the range...or did´nt i understand what you meaning ??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top