Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Setting up a home network problem

    I have two interfaces on my ubuntu 8.04 machine, eth0 and eth1. eth0 is for internet(working) and eth1 uses dhcp with a static ip(not working) for my other computers on the network.

    My windows machine can't ping domain names or ips when connected to eth1. It acquires an ip address from my dhcp3 server and can ping the static ip, but nothing on the internet. I also tried disabling ufw.


    auto lo
    iface lo inet loopback

    iface eth0 inet dhcp

    iface eth1 inet static

    auto eth0
    auto eth1

    default-lease-time 600;
    max-lease-time 7200;
    option subnet-mask;
    option broadcast-address;
    option routers;
    option domain-name-servers;
    option domain-name "shwick.mydomain";

    subnet netmask {



    I'm thinking this has something to do with the gateway. When I enter a gateway in interfaces for eth1, interface eth0 can't connect/ping the internet.

    I read through the ubuntu server guide but I'm really confused right now, any help is welcome.

  2. #2
    Just Joined! garyalex's Avatar
    Join Date
    Jun 2008
    Johannesburg, South Africa
    Have you enabled IP Forwarding?

    net.ipv4.ip_forward = 1
    You would also need to masquerade the internal network.

    If for example your internal network is the below would apply:
    iptables -t nat -A POSTROUTING -s -j MASQUERADE

  3. #3
    Sorry for the long time before reply.

    The problem was that I didn't have port forwarding enabled. I disabled ufw because it was going to cause problems moving forward with other services. I used this as a guide to enable port forwarding with iptables:


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts