[TriLUG] nat and dhcp problem?

Jason Tower jason at cerient.net
Sat Mar 20 22:15:07 EST 2004


> #my declared subnet for eth1
> subnet 192.168.0.0 netmask 255.255.255.0 {
>   range 192.168.0.1 192.168.0.10;
>   option broadcast-address 192.168.1.255;
> #  option routers prelude.fugue.com;
> }

i don't see where you're handing out the default gateway or nameserver 
info to hosts on that subnet.  your clients ain't gonna get far on the 
net without that.

>
> king:/proc/sys/net/ipv4#  more /etc/network/interfaces
> # /etc/network/interfaces -- configuration file for ifup(8),
> ifdown(8)
>
> # The loopback interface
> auto lo
> iface lo inet loopback
>
> # The first network card - this entry was created during the Debian
> installation
> auto eth0
> iface eth0 inet dhcp
>
> #Second network card - 3Com vortex
> auto eth1
> iface eth1 inet static
>         address 192.168.0.1
>         netmask 255.255.255.0
>         network 192.168.0.0
>         broadcast 192.168.0.255

i see that eth1 is 192.168.0.1, yet your dhcp range above starts at .1.  
that also ain;t gonna fly, it needs to start at .2 or higher.

>
> Something else that I don't completely understand (this is my first
> time ever creating a network) is that my laptop picks up 192.168.2.1
> from DHCPACK when ifup eth0.  Shouldn't it receive on 192.168.0.1?
>
> thanks,
>
> Uzoma



More information about the TriLUG mailing list