[Dnsmasq-discuss] Specifying a Gateway
Mon, 8 Nov 2004 07:27:43 -0800 (PST)
Thanks for the answer, it solved my problem!
--- Simon Kelley <firstname.lastname@example.org> wrote:
> Steve Elzinga wrote:
> > Hello,
> > I am afraid that this is a totally rookie question
> > I could not find the information. How do I
> specify a
> > gateway address when running dnsmasq on a computer
> > that is not the gateway? I have a linksys
> > connected to my cable modem. The Linux computer
> > running dnsmasq is connected to the router. The
> > other computers / network appliances connected to
> > router as well. Is there a way through dnsmasq to
> > transmit the gateway address? My computers (and
> > network appliances) end up using the Linux
> computer as
> > the gateway since they receive their IP address
> > the Linux computer. Any help is greatly
> Short answer:
> Long answer:
> You can either add --dhcp-option=3,<gateway address>
> to the command line
> used to run dnsmasq, or put the line
> dhcp-option=3,<gateway address>
> into /etc/dnsmasq.conf
> The magic number 3 here is the DHCP standard option
> number for "router"
> which is specified in RFC 2132. Typing "RFC2132"
> into Google will find
> myriad copies of this.
> It's also worth looking in the example configuration
> file supplied with
> the dnsmasq source, which has annotated examples of
> most of the common
> things people want to do, including this one.
> Thanks for the question: I hope that answers it OK,
> (and adds the answer
> to the mailing list archive for the use of others.)
Do you Yahoo!?
Check out the new Yahoo! Front Page.