[ovs-dev] [ovs-discuss][ovn][dhcp]Could ovn remove restriction of option 3(router)

Ben Pfaff blp at ovn.org
Fri Mar 3 16:00:55 UTC 2017


On Fri, Mar 03, 2017 at 03:10:30PM +0530, Numan Siddique wrote:
> On Fri, Mar 3, 2017 at 7:04 AM, Dong Jun <dongj at dtdream.com> wrote:
> 
> >
> >
> > On 2017/3/3 1:33, Ben Pfaff wrote:
> >
> >> On Thu, Mar 02, 2017 at 07:15:48PM +0800, Dong Jun wrote:
> >>
> >>> An router IP MUST be set to dhcp v4 option for option 3, but not all
> >>> subnet
> >>> do have a gateway IP. Furthermore,  if i set 0.0.0.0 to option as a
> >>> tradeoff, the VM can obtain client ip and a gateway error log occurred
> >>> meanwhile.
> >>>
> >>> It seems that it's not a  restriction in RFC 2132, as comparison dnsmaq
> >>> can
> >>> offer a no-router-ip option.
> >>>
> >>> So could ovn remove this restriction or is there anther way to meet the
> >>> requirement?
> >>>
> >> It took me a while to figure out what you're talking about.  Are you
> >> asking whether options:router could be changed from mandatory to
> >> optional in the DHCP_Options table for DHCPv4?
> >>
> > Yes, i think it's better to be optional.
> 
> 
> ​Looking into the RFC 2132, it doesn't mandate this option. Also dhcp
> option 121 (classless static routes) can be used by the client for the same
> purpose and when both option 3 and 121 are present, client should give
> preference to option 121.
> I think
>> router dhcp option
> can be optional.

OK.

Dong, can you submit a patch?


More information about the dev mailing list