Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no internet access on laptop at friends
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mrbulle
n00b
n00b


Joined: 31 Oct 2004
Posts: 5

PostPosted: Thu Aug 25, 2005 12:40 pm    Post subject: no internet access on laptop at friends Reply with quote

I've got a nice compaq laptop that been running ubuntu for a couples of months but I didnt like all the flashy graphics and unwanted stuff. So I thought of installing a lightweight gentoo on the machine. It has only got 128mb of ram, 10gb hdd and a amd cpu at 1,2ghz so it's no monster machine whats so ever. The setup I was thinking of included Fluxbox, xmms, abiword, gaim, firefox (although it loves memory) so the computer could feel smooth.

So I installed Gentoo on it. First my 2005.1 cd dident work properly, no internet access. With 2005.0 it worked. So installed with that cd. And everything worked out great, installed than Fluxbox with no problem. Everything worked so I did a
Code:
emerge sync
and upgraded som packages. No problem so far.

Then yesterday I visited my friend and I had the laptop with me. I pluged in the internet cable to the router and fired up the computer. When I logged in I had no access to the internet. Although I had it at home. I checked so dhcpcd was running and it was. I could also ping the router properly. But I couldn't ping google or something else.

I guess it's some problem with my resolv.conf but dont know what it could be. Does someone has a solution? I would appriciate if I could use the computer anywhere with internet access without major changes in .conf files. Although I could have some different .conf files for different places I visit.

What should I do to get internet access when I visit friends and school?

/Best Regards Alex
/Mrbulle
Back to top
View user's profile Send private message
Taladar
Guru
Guru


Joined: 09 Oct 2004
Posts: 458
Location: Bielefeld, Germany

PostPosted: Thu Aug 25, 2005 1:34 pm    Post subject: Reply with quote

If you can ping the router but no IP adresses on the internet you need to create a default router via the router with

Code:

route add default gw 1.2.3.4


where 1.2.3.4 is the router IP.

If you can ping IPs on the internet but not names you need to add working DNS servers to your /etc/resolv.conf like this:

Code:

nameserver 1.2.3.4


where 1.2.3.4 is the IP of the nameserver your friend uses.

If your friend uses Linux you find the Nameserver IP in the /etc/resolv.conf (obviously), if he uses windows 2k/xp you should find them in the output of "ipconfig /all", with win9x/me the command is "winipcfg".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum