[ale] dhcpd to multiple vlans from one server
Michael Trausch
mike at trausch.us
Thu Jan 22 21:15:39 EST 2015
ISC dhcpd will hand an address out based on the interface it came in on. If if eth0 has 203.0.113.1/25 and eth1 has 203.0.113.129/25, and the DHCP server is authoritative for those two subnetworks, then when it receives a request on eth0 for an address it will issue an address in 203.0.113.0/25; when it receives a request on eth1 it will issue an address in 203.0.113.128/25.
Sent from my iPad
> On Jan 22, 2015, at 7:37 PM, "Robert L. Harris" <robert.l.harris at gmail.com> wrote:
>
> Ok, so if I have 2 subnets:
>
> 172.20.1/24 on vlan 21
> 172.20.2/24 on vlan 22
>
> If a host plugs into a port assigned to vlan 22, how do I make sure dhcpd gives out the right address? That's the part of the designation I'm missing.
>
> Robert
>
>
>> On Thu Jan 22 2015 at 5:17:25 PM James Sumners <james.sumners at gmail.com> wrote:
>> You just have to define the subnets in the config and put each subnet's pool within its respective block. No need for aliased IPs.
>>
>>> On Thursday, January 22, 2015, Robert L. Harris <robert.l.harris at gmail.com> wrote:
>>>
>>> Anyone have a dhcpd serving multiple subnets to multiple vlans from a single server on a trunk they can share configs? I don't want to spawn a bunch of servers and if I can do it with a single interface that would be ideal. If I have to go with eth0.0, eth0.1, etc that's a good second choice.
>>>
>>> Robert
>>
>>
>> --
>> James Sumners
>> http://james.sumners.info/ (technical profile)
>> http://jrfom.com/ (personal site)
>> http://haplo.bandcamp.com/ (band page)
>>
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20150122/2d8ef53b/attachment.html>
More information about the Ale
mailing list