struggling with dhcp3-server

Matt Price matt.price at utoronto.ca
Mon Apr 18 14:46:45 UTC 2005


On Mon, Apr 18, 2005 at 02:31:52AM +0100, t scytale wrote:
> On 4/17/05, Matt Price <matt.price at utoronto.ca> wrote:

> you didn't describe your lan setup. judging from you post i'd say you
> have only 1 subnet and have mistakenly used values from a different
> subnet for some of your options.
> if this is the case then making the changes noted below may help
> 
> > 
> > In /etc/network/interfaces I put this:
> > iface eth0 inet static
> >       address 192.168.2.30
> > #      address 192.168.1.0 (have tried various with no succcess; if I
> >                            use this particular address eth0 won't even
> >                            come up)
> >       netmask 255.255.255.0
> >       broadcast 192.168.2.255
> >       gateway 192.168.2.1
> > 
> > in /etc/dhcp3/dhcpd.conf I put this:
> > option subnet-mask 255.255.255.0;
> > option broadcast-address 192.168.1.255;
> 
> # your broadcast address needs to be in the same subnet as the
> assigned ip address
> option broadcast-address 192.168.2.255;
> 
> 
> > option routers 192.168.1.254;
> 
> # this should probably be the same as the gateway on the dhcpd server
> ("routers" in dhcpd.conf == default gateway in interfaces file)
> # and again, it needs to be on the same subnet
> option routers 192.168.2.1;
> 
> > option domain-name-servers 192.168.2.1;
> > option domain-name "mydomain.org";
> > 
> > subnet 192.168.2.0 netmask 255.255.255.0 {
> >    range 192.168.2.10 192.168.2.100;
> >    range 192.168.2.150 192.168.2.200;
> >       }
> 
> 
> t
> 
tim, and others, this was a great help, followed your instructions and
it works now!  

thanks,

matt




More information about the ubuntu-users mailing list