Re: Hi, having trouble with networking
From: Paul Black (nospam_at_nospam.saturnine.org.uk)
Date: 11/14/04
- Previous message: tom: "Re: Hi, having trouble with networking"
- In reply to: Mmm_moo_cows: "Hi, having trouble with networking"
- Next in thread: Tauno Voipio: "Re: Hi, having trouble with networking"
- Reply: Tauno Voipio: "Re: Hi, having trouble with networking"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: tom: "Re: Hi, having trouble with networking"
- In reply to: Mmm_moo_cows: "Hi, having trouble with networking"
- Next in thread: Tauno Voipio: "Re: Hi, having trouble with networking"
- Reply: Tauno Voipio: "Re: Hi, having trouble with networking"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|