nat and dhcp

From: uzoma nwosu (uzoma_at_audioverse.com)
Date: 03/21/04

  • Next message: Didier Caamano: "Loading modules at startup"
    Date: Sat, 20 Mar 2004 22:13:55 -0500
    To: debian-user@lists.debian.org
    
    

    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

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Didier Caamano: "Loading modules at startup"

    Relevant Pages

    • Re: nat and dhcp
      ... On Sun, 2004-03-21 at 04:13, uzoma nwosu wrote: ... > I'm trying to turn my debian box into nat server. ... > iface lo inet loopback ... > iface eth0 inet dhcp ...
      (Debian-User)
    • Re: nslookup from behing router/modem
      ... Is there something I need to amend to get it to work. ... I can still access the e-World from my Debian box: ... iface lo inet loopback ... installationauto eth0 ...
      (Debian-User)
    • Re: nslookup from behing router/modem
      ... Is there something I need to amend to get it to work. ... I can still access the e-World from my Debian box: ... iface lo inet loopback ... installationauto eth0 ...
      (Debian-User)
    • Networking issues on New System Setup
      ... This is my first post the mailing lists, so please forgive me if I err. ... This is the DEBIAN mailing list, ... eth0: transmit timed out, tx_status 00 e000. ... Also, I have redownloaded, checked, burned and reburned the install image, ...
      (Debian-User)
    • Re: LAN configuration - Debian Sarge
      ... $> pump -i eth0 ... > wireless) using DHCP. ... > Under Debian... ...
      (comp.os.linux.networking)