DHCP relay and multiple shared-network statements
jim
glass4545 at gmail.com
Tue Nov 2 01:28:26 UTC 2010
Not done Juniper but on Cisco have helper on each VLAN interface, then dhcp
server knows which subnet scope from DISCOVER request.
~your Juniper;
forwarding-options {
helpers {
bootp {
relay-agent-option;
server 10.100.1.100;
interface {
apn1-interface;
apn2-interface;
}
}
}
}
# Configuration file for ISC dhcpd
#
local-address 10.100.1.100;
ddns-update-style none;
authoritative;
#apn1 subnet scope
subnet 192.168.220.0 netmask 255.255.255.0 {
default-lease-time 86400; # 1 day
max-lease-time 2592000; # 1 month
range 192.168.220.10 192.168.220.50;
}
#apn2 subnet scope
subnet 10.124.0.0 netmask 255.255.255.0 {
default-lease-time 86400; # 1 day
max-lease-time 2592000; # 1 month
range 10.124.0.1 10.124.0.50;
}
jim
2010/11/1 Dánial Olsen <DOL at ft.fo>
> That's very helpful.
>
> I'm still not sure what my problem is, but I think I need to have an
> extra look at my Juniper setup and do some comparing.
>
> --
> Dánial
>
>
> > -----Original Message-----
> > From: dhcp-users-bounces+dol=ft.fo at lists.isc.org [mailto:dhcp-users-
> > bounces+dol=ft.fo at lists.isc.org] On Behalf Of Tim Gavin
> > Sent: Monday, November 01, 2010 10:13 PM
> > To: Users of ISC DHCP
> > Subject: Re: DHCP relay and multiple shared-network statements
> >
> > I think I got all the relevant parts, here are my configs. . .
> >
> >
> >
> >
> >
> >
> > On my Juniper:
> >
> > forwarding-options {
> > helpers {
> > bootp {
> > relay-agent-option;
> > server 172.24.220.158;
> > interface {
> > ge-0/0/2.703;
> > ge-0/0/2.283;
> > }
> > }
> > }
> > }
> >
> >
> > interfaces {
> > ge-0/0/2 {
> > vlan-tagging;
> > unit 283 {
> > description Chelan;
> > vlan-id 283;
> > family inet {
> > address 10.215.27.1/24;
> > }
> > }
> >
> >
> > unit 703 {
> > description Douglas;
> > vlan-id 703;
> > family inet {
> > address 192.168.232.1/23 {
> > preferred;
> > }
> > }
> > }
> > }
> >
> >
> >
> > /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
> > \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
> > /\
> >
> >
> > DHCP Server:
> >
> > #########################
> > #Douglas DHCP - VLAN 703#
> > #########################
> >
> > #$Douglas - vlan 703
> > subnet 192.168.232.0 netmask 255.255.255.0 {
> > range 192.168.232.3 192.168.232.254;
> > option domain-name-servers 172.24.220.131, 172.24.220.132;
> > option domain-name "mydomain.tv";
> > option routers 192.168.232.1;
> > option broadcast-address 192.168.232.255;
> > default-lease-time 43200; #12 hours
> > max-lease-time 86400; #24 hours
> > # default-lease-time 3600; #1 hour
> > # max-lease-time 7200; #2 hours
> > authoritative;
> > }
> >
> >
> > ########################
> > #Chelan DHCP - VLAN 283#
> > ########################
> >
> > #$Chelan - vlan 283
> > subnet 10.215.27.0 netmask 255.255.255.128 {
> > range 10.215.27.10 10.215.27.120;
> > option domain-name-servers 172.24.220.131, 172.24.220.132;
> > option domain-name "mydomain.tv";
> > option routers 10.215.27.1;
> > option broadcast-address 10.215.27.127;
> > default-lease-time 43200;
> > max-lease-time 86400;
> > authoritative;
> > }
> >
> >
> >
> > (Chelan is part of a shared-network statement, but it has nothing to do
> > with this functionality)
> >
> >
> >
> > On 11/01/2010 03:01 PM, Dánial Olsen wrote:
> > > Thanks for the quick response.
> > >
> > > I've tried that (again just now), and without the 10.102.8.x neither
> > > subnet is working - both produce a "wrong network" and DHCPNAK.
> > >
> > > Also tried removing both shared-network statements, same problem.
> > >
> > >
> > > --
> > > Dánial
> > >
> > >
> > >
> > _______________________________________________
> > dhcp-users mailing list
> > dhcp-users at lists.isc.org
> > https://lists.isc.org/mailman/listinfo/dhcp-users
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20101101/543c74df/attachment.html>
More information about the dhcp-users
mailing list