LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-16-2005, 08:43 PM   #1
randcv
LQ Newbie
 
Registered: Aug 2005
Distribution: Gentoo
Posts: 4

Rep: Reputation: 0
Can't connect to internet w/ Gentoo


Hi, I'm have a cable connection running to a netgear WGR614 router, and am having trouble connecting to the internet with my vaio tr3 notebook running gentoo via the builtin wired ethernet card.

ifconfig prints out the following for eth0

eth0
Link encap: Ethernet HWaddr 08:00:46:E4:7E:03
inet addr: 192.168.0.4 Bcast 192.168.0.255 Mask 255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets: 5 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overrunns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:830 (830.0 b) TX bytes: 3018 (2.9 Kb)

Also, the netgear router settings page appropriately shows the computer as an "attatched device" with the correct name, etc...

Does anyone have any ideas where I should start poking around to make this work?

Thanks,
Rand
 
Old 08-16-2005, 10:31 PM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
What error do you get from it? Can you ping any machine in the internet?
Try google, by IP:
ping 66.102.7.104

I'm guessing you can access internet because eth0 has an IP.
If you can ping a google IP you only miss a dns server.
 
Old 08-17-2005, 01:26 PM   #3
randcv
LQ Newbie
 
Registered: Aug 2005
Distribution: Gentoo
Posts: 4

Original Poster
Rep: Reputation: 0
Great, that works! So now I guess my problem is portage specific... I'm trying to emerge a package, and I just get "Resolving gentoo.osuos1.org... failed: Temporary failure in name resolution." I'm guessing this is a problem with my dns settings... How do I set that up correctly?
 
Old 08-17-2005, 01:31 PM   #4
randcv
LQ Newbie
 
Registered: Aug 2005
Distribution: Gentoo
Posts: 4

Original Poster
Rep: Reputation: 0
Wow, I just typed 'dhcpcd eth0' and got it working now, but I'm really not sure why or what happened.
 
Old 08-17-2005, 08:15 PM   #5
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
If dhcpcd is the correct way to set this eth connection, thats ok. When the dhcp transaction happens, the client machine receives also the dns server information. So, when you dhcp it correctly, the dns server problem is fixed.
You don't have to worry about dns anymore unless you are curious. I recall fixing dns things with /etc/resolv.conf (this is for debian. Don't know about gentoo specifics...). But you might want to see this file.
 
Old 08-19-2005, 04:53 AM   #6
randcv
LQ Newbie
 
Registered: Aug 2005
Distribution: Gentoo
Posts: 4

Original Poster
Rep: Reputation: 0
In my resolv.conf file I have

nameserver 24.48.208.194
nameserver 24.48.208.198
search vmyca.adelphia.net

As far as I know, this looks ok to me, but I still am having major problems resolving urls...

When I boot up, I see this:

* Starting eth0
* Bringing up eth0
* Configuration not set for eth0 -assuming dhcp
* dhcp
* Running dhcpcd ... [ !! ]
* ERROR: Problem starting needed services.
* "netmount" was not started.

Last edited by randcv; 08-19-2005 at 05:04 AM.
 
Old 08-19-2005, 12:03 PM   #7
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
randcv
Quote:
* ERROR: Problem starting needed services.
* "netmount" was not started.
This error is because "netmount" uses eth0 so if your NIC has not started neither will netmount

The file you need to look at is /etc/conf.d/net and decide how you want eth0 to start

Then add eth0 to default run level so that it starts on boot
Code:
# rc-update add net.eth0 default
Pete
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo refuses to connect to internet adamb10 Linux - Networking 5 04-07-2005 09:51 AM
Gentoo: Can't connect to internet black hole sun Linux - Software 5 08-10-2004 08:48 AM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM
gentoo wont connect to internet netquest1 Linux - Networking 6 02-15-2004 12:08 PM
Can connect broadband but can't connect Internet satimis Linux - Networking 4 01-31-2004 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration