View previous topic :: View next topic |
Author |
Message |
HePeR n00b
Joined: 04 Oct 2002 Posts: 39
|
Posted: Sat Oct 19, 2002 10:02 am Post subject: Default gateway |
|
|
I hve a slackware linux running with ipmasq'ing and that works
the other windows puters in the network hve a internet connection
But my gentoo computer doesnt seems to work
i hve static ip and gateway set etc/conf.d/net
what could be the problem??
i think its something with the gateway setting
netstat -rn gives me:
Destination: 192.168.0.0
Gateway: 0.0.0.0
Genmask 255.255.255.0 |
|
Back to top |
|
|
Craigo Apprentice
Joined: 09 Aug 2002 Posts: 249 Location: /dev/life
|
Posted: Sat Oct 19, 2002 10:57 am Post subject: |
|
|
Quote: |
netstat -rn gives me:
Destination: 192.168.0.0
Gateway: 0.0.0.0
Genmask 255.255.255.0
|
Erm... Give all your machines some decent ips address in orders.. like
192.168.1.1
192.168.1.2
etc
You should set the gateway address to like 192.168.1.1 and then the rest of the machines 192.168.1.2 etc etc. But then I don't know what's your set up is like.
As for IP masq..
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j MASQUERADE
That should route all traffic to the 192.168.1.x network..
Though you didn't give quite enough information about your network anyway :/ Sorry if this doesn't help in some ways.
-/Craigo/- |
|
Back to top |
|
|
nempo Guru
Joined: 16 Apr 2002 Posts: 360 Location: Linkoping, Sweden
|
Posted: Sat Oct 19, 2002 11:48 am Post subject: |
|
|
I'm doing a similar thing except that I'm using gentoo for routing. If you have not done so try adding your ISP:s DNS to /etc/resolv on your client machines. |
|
Back to top |
|
|
|