RE: [dhcwg] Question: in RFC3046 why did Agent SubnetMask Sub-optiondie
"Andre Kostur" <akostur@incognito.com> Fri, 09 March 2007 15:28 UTC
Return-path: <dhcwg-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1HPh1X-0005n6-IX; Fri, 09 Mar 2007 10:28:51 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1HPh1W-0005mg-15 for dhcwg@ietf.org; Fri, 09 Mar 2007 10:28:50 -0500
Received: from h216-18-16-189.gtcust.grouptelecom.net ([216.18.16.189] helo=zeus.incognito.com) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HPh1T-00066Z-LV for dhcwg@ietf.org; Fri, 09 Mar 2007 10:28:50 -0500
X-MIMEOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [dhcwg] Question: in RFC3046 why did Agent SubnetMask Sub-optiondie
Date: Fri, 09 Mar 2007 07:32:37 -0800
Message-ID: <403B5316AD7A254C9024875BAE481D4E6C34A9@zeus.incognito.com>
In-Reply-To: <45F14A04.8080500@thekelleys.org.uk>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [dhcwg] Question: in RFC3046 why did Agent SubnetMask Sub-optiondie
Thread-index: AcdiQgB/JhI/fEpOTxGBwMPXBn15jQAHEz3Q
References: <45EDD246.20605@thekelleys.org.uk> <403B5316AD7A254C9024875BAE481D4E6C314F@zeus.incognito.com> <45EDDE8C.1090704@thekelleys.org.uk><20070308180602.GB26203@isc.org> <45F14A04.8080500@thekelleys.org.uk>
From: Andre Kostur <akostur@incognito.com>
To: Simon Kelley <simon@thekelleys.org.uk>, "David W. Hankins" <David_Hankins@isc.org>
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 14582b0692e7f70ce7111d04db3781c8
Cc: DHC WG <dhcwg@ietf.org>
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: dhcwg.ietf.org
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
Errors-To: dhcwg-bounces@ietf.org
Comments inline > -----Original Message----- > From: Simon Kelley [mailto:simon@thekelleys.org.uk] > Sent: Friday, March 09, 2007 3:50 AM > To: David W. Hankins > Cc: DHC WG > Subject: Re: [dhcwg] Question: in RFC3046 why did Agent > SubnetMask Sub-optiondie > > You should look at dnsmasq, which makes it work fine. > > Consider first an interface on the machine running dnsmasq > which has two two addresses, say 192.168.0.0/24 and > 192.168.1.0/24. Dnsmasq is configured which available address > ranges on each of these networks and on another network. > > dhcp-range=192.168.0.2,192.168.0.100 > dhcp-range=192.168.1.2.192.168.1.100 > dhcp-range=192.168.2.2,192.168.2.100 > > Note that no netmask information is provided, and dhcp-ranges > are not explicitly associated with a physical interface. And if your actual subnet mask is 255.255.255.192, your ranges are all "illegal" (well, they don't fall within a single subnet anyway...). As a result, your DHCP server needs to know that information anyway.... > When a broadcast arrives at the interface, dnsmasq starts > with the list of IP-address/netmask pairs associated with the > interface where packet was received, and infers which > dhcp-range statements are valid. In this case 129.168.0... > and 192.168.1.... but _not_ 192.168.2..... That set of > address ranges is then used to allocate an address. > > If the same thing occurs but the broadcast is received by a > relay, then the relay can put only one address into giaddr, But can use the Link Selection Sub-option [RFC 3527] to designate a different IP to base that calculation on. > (which one is not specified in any standard, as far as I > know) The packet is then unicast by the relay to dnsmasq, The relay is supposed to put the IP of the interface upon which it originally heard the request. If that interface has multiple IPs, then they are logically equivalent and shouldn't matter which one it puts in. > which can only use the value of giaddr to infer valid address > ranges, hence it ends up with either 192.160.0.... _or_ > 192.168.1.... in the set of usable address ranges, but not both. Or like most (if not all) DHCP implementations that I've seen, they all provide the mechanism to define Adjacent Networks, Superscopes, Shared Networks, or some other term to designate that two (or more) subnets reside on a single interface. > In the relay case, dnsmasq needs to configured with the > netmask of whichever subnet the relay chose: it has no way to > find it automatically and can't infer which address-ranges > are valid without this information. > (In contrast for the local-interface case, it can just ask > the kernel.) > > So, using a relay, address allocation over multiple subnets > on one physical network is impossible, and it requires that Uh, no. It's been done for years. Particularly in the cable modem deployment methods. Cable operators frequently have multiple disjoint subnets being assigned to customers on a single cable interface. > netmask information be duplicated in the relay and the > server. Both of these problems could be fixed by a relay > sub-option which allows the relay to send a list of > IP-address/netmask pairs to the server. The server would then > have the same information in the relay case that it has in > the directly-connected case. I recall someone bringing up the use case at IETF 64. And as I recall, the common opinion was "Nice idea, but the problem has been solved 15 years ago with Adjacent Networks/Superscopes." > Another way to think about this is that giaddr has two > functions: it is the address to which the server unicasts > packets which it wishes to be relayed back to a client, and > it's a handle which encodes the place in a the network > topology from which a broadcast originated, and therefore > drives the address allocation process. [1] A relay-suboption > which transmits the list of subnets associated with he > pyhsical network on which a broadcast was received can be > seen as replacing the second of these functions, but only > when both relay and server support it. The Subnet Selection option [RFC 3011] for clients, and Link Selection Sub-Option [RFC 3527], plus the DHCP server already knowing the network topology covers these uses. _______________________________________________ dhcwg mailing list dhcwg@ietf.org https://www1.ietf.org/mailman/listinfo/dhcwg
- [dhcwg] Question: in RFC3046 why did Agent Subnet… Simon Kelley
- Re: [dhcwg] Question: in RFC3046 why did Agent Su… Mark Stapp
- RE: [dhcwg] Question: in RFC3046 why did Agent Su… Andre Kostur
- Re: [dhcwg] Question: in RFC3046 why did Agent Su… Simon Kelley
- Re: [dhcwg] Question: in RFC3046 why did Agent Su… Mark Stapp
- Re: [dhcwg] Question: in RFC3046 why did Agent Su… Simon Kelley
- Re: [dhcwg] Question: in RFC3046 why did Agent Su… David W. Hankins
- Re: [dhcwg] Question: in RFC3046 why did Agent Su… Simon Kelley
- RE: [dhcwg] Question: in RFC3046 why did Agent Su… Andre Kostur
- Re: [dhcwg] Question: in RFC3046 why did Agent Su… Simon Kelley
- Re: [dhcwg] Question: in RFC3046 why did Agent Su… Ted Lemon
- Re: [dhcwg] Question: in RFC3046 why did Agent Su… Ralph Droms
- Re: [dhcwg] Question: in RFC3046 why did Agent Su… Ted Lemon
- RE: [dhcwg] Question: in RFC3046 why did Agent Su… Bernie Volz (volz)
- Re: [dhcwg] Question: in RFC3046 why did Agent Su… David W. Hankins
- Re: [dhcwg] Question: in RFC3046 why did Agent Su… Simon Kelley
- Re: [dhcwg] Question: in RFC3046 why did Agent Su… Simon Kelley