Computing.Net > Forums > Linux > connecting to internet

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

connecting to internet

Reply to Message Icon

Name: ribot
Date: September 22, 2003 at 01:36:39 Pacific
OS: win xp
CPU/Ram: amd xp 1900/256 MB DDR
Comment:

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.1

The 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?



Sponsored Link
Ads by Google

Response Number 1
Name: Justin
Date: September 22, 2003 at 12:24:15 Pacific
Reply:

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


0

Response Number 2
Name: Guido
Date: September 22, 2003 at 15:11:51 Pacific
Reply:

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).


0

Response Number 3
Name: Guido
Date: September 22, 2003 at 15:15:20 Pacific
Reply:

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?


0

Response Number 4
Name: ribot
Date: September 23, 2003 at 00:33:42 Pacific
Reply:

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.


0

Response Number 5
Name: 3Dave
Date: September 23, 2003 at 07:41:57 Pacific
Reply:

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


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: connecting to internet

cannot connect to internet www.computing.net/answers/linux/cannot-connect-to-internet/1644.html

connecting to internet www.computing.net/answers/linux/connecting-to-internet/11211.html

want to connect to internet (ethernet) www.computing.net/answers/linux/want-to-connect-to-internet-ethernet/7343.html