Re: Hi, having trouble with networking

From: Paul Black (nospam_at_nospam.saturnine.org.uk)
Date: 11/14/04

  • Next message: PC: "Re: Wireless Nameserver Problem"
    Date: Sun, 14 Nov 2004 18:17:09 GMT
    
    

    Mmm_moo_cows wrote:
    > so I now have the internet installed and
    > working.

    Excellent stuff.

    > I ran netconfig from the console and assigned it 192.168.0.1 adresses
    > with matching gateway etc address (it filled it in one the main ip was
    > entered).

    You don't need a gateway address for this interface (leave it blank).

    > however, I cannot seem to ping it from my windows xp machine (I thinlk
    > I havent set it up correctly).

    How are the Windows machines getting their IP addresses? You will need
    to set these to 192.168.0.2, 192.168.0.3 etc. Their gateway address is
    192.168.0.1.

    They also need access to a DNS server. To get things working, use the
    values for your ISP's server (you should these on the Linux box in
    /etc/resolv.conf).

    You also need to tell the Linux PC to forward IP packets:
    Put "net.ipv4.ip_forward = 1" in /etc/sysctl.conf
    To save rebooting, also do "echo 1 > /proc/sys/net/ipv4/ip_forward" as root.

    You will also need to configure NAT:
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

    (Change eth0 to whatever your ethernet card is).

    Once you've got this working you can then look at setting up DHCP for
    your internal network along with a DNS server so that the internal
    Windows machines are not tied to the ISP configuration. But you can
    leave that for another day.

    Paul


  • Next message: PC: "Re: Wireless Nameserver Problem"

    Relevant Pages

    • Re: NAT
      ... but I got a howto on that topic with my 8.1 ... linux server (that's what NAT is called in Linux if you have a dialup ... If you have windoze clients who want to get internet access via the ... you may find it useful to also install a caching-only dns server on the ...
      (alt.os.linux.suse)
    • Re: correct way to block net access???
      ... machines you want restricted to the DNS server that you setup. ... Internet Zone rule you can define a list of trusted sites and disallow the ... >>> blank gateway address. ...
      (microsoft.public.windows.server.general)
    • Re: What the Hell has happened to this group???
      ... Forget Windows, ... As long as your 'Doze system isn't plugged directly into the internet, ... then hire a Linux geek to put a proper firewall in your gateway box. ... I've been running XP for years on a Gateway ...
      (sci.electronics.design)
    • Re: What the Hell has happened to this group???
      ... Forget Windows, ... As long as your 'Doze system isn't plugged directly into the internet, ... then hire a Linux geek to put a proper firewall in your gateway box. ... I've been running XP for years on a Gateway ...
      (sci.electronics.design)
    • Re: Internal LAN-Yes/Internet-No
      ... Make sure that your Gateway and DNS Server point to ... also that you only have 2 LACs (Local Area Connections). ... when I try to connect to the internet using my ...
      (microsoft.public.windowsxp.general)