Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a switch connected to internet. On a windows computer connected to the switch, these are the settings to connect to internet:
Default Gateway: 192.168.1.254
Windows Computer IP: 192.168.1.1The linux computer IP should be 192.168.1.2 on eth0. I have tried to set it up already so maybe i need to clean some files first? I'm using slackware 9.0.
How can I set up my linux computer to connect to internet?

Do you have the same subnet mask? did you put in correct DNS ips? can you ping the your windows box?

If you want to connect to the internet via another computer, you should either tell the windows computer to route traffic for the linux box or set the windows computer up as a proxyserver. Then tell Linux to use proxyconnections. Personally I like the proxy option, because it gives better security for computers behind the server.
If you want to set up your Linux box as proxyserver, configure and start a program called SQUID. (Then you have your penguin between the evil internet and the perfectly operating redmond computer).

Sorry, didn't read your poster very well. You have both computers connected to that switch directly?
Does it work if you disconnect the windows box and use the same settings in Linux?

Internet worked on this computer with mandrake linux, but it seems like slackware didn't automate some things. So I don't think it will work if i disconnet the windows box.
It seems like the problem is that my NIC fails to load at linux startup. It says
insmod ...8139cp.gz failed.
Though when i do lsmod the NIC seems to be named 8139too. Then when i do ifconfig eth0 it says device not found. However yesterday the device was found... I tried to blacklist 8139cp* but it still loaded this driver.

Edit /etc/rc.d/rc.modules and comment out
the incorrect line. Then remove the "#"
from the beginning of the correct one.
You can set up your NIC with the following:
# ifconfig etho down
to stop it running
# ifconfig eth0 192.168.1.2 broadcast 192.168.1.255 netmask 255.255.255.0
to make the changes
# ifconfig etho up
to bring it back up again.
To add the route to your gatway:
# route add -net default gw 192.168.1.254 netmask 0.0.0.0 metric 1

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |