On Sun, 2004-03-21 at 04:13, uzoma nwosu wrote: > I'm trying to turn my debian box into nat server. So far, I've got the > kernel configured with all the netfilter stuff that the IP > Masquerade-howto on tldp.org said (I'm running 2.4.24, with sarge/sid). > I've installed dhcpd and it seems to run fine. > So here's my problem: my laptop (which has a dhcp client thats works on > campus) can ping my deskstop but that's all. It can't reach the net. > I have done the echo 1 >/proc/sys/net/ipv4/ip_forward thing to turn it > on and still nothing. So here is my dhcp.conf and my > /etc/network/interface file snippets. ANY help would be greatly > appreciated. > > king:/proc/sys/net/ipv4# more /etc/dhcpd.conf > # > # Sample configuration file for ISC dhcpd for Debian > # > # $Id: dhcpd.conf,v 1.4.2.2 2002/07/10 03:50:33 peloy Exp $ > # > > # option definitions common to all supported networks... > option domain-name "mytalon.com"; > #option domain-name-servers king.mytalon.com; > > option subnet-mask 255.255.255.0; > default-lease-time 600; > max-lease-time 7200; > > #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.0.255; > # option routers prelude.fugue.com; > } > > 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 > > > 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 > I see you use dpcp on eth0. That could be the problem if you dont get ip-adress in range 192.168.0.1-10. But the first thing i would do is to deklare dns. DO NOT USE A NAME LIKE eg. king.mytalon.com. Use numbers eg 123.123.123.123 Restart service and reconnect laptop and see if ok. Kenneth.
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]