LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 01-18-2006, 06:49 PM   #1
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Internet works with Knoppix but not Gentoo [Solved]


I'm in the process of switching to Gentoo, but I can't get the internet to work during the installation. The Gentoo Install/LiveRun CD see's my ethernet card but it dosen't properly configure it or something. On the other hand, my Knoppix LiveRun CD properly gets the internet to work, I can even ping yahoo from the prompt

Code:
ping -c 3 www.yahoo.com
and it returns output saying all three sent and we're recieved with no errors. I know Gentoo can see my card because when I run

Code:
/sbin/ifconfig
it returns for both eth0 and lo. When I run this command in Gentoo, it see's both eht0 and lo as well, but it returns different values for the various addresses and such.

So my question is, can I use Knoppix to see how to set up my ethernet card properly, and then use those settings in Gentoo? And naturally, if I can do that, how would I go about it (all from the console of course ).

Thanks guys!

Last edited by Penguin of Wonder; 01-19-2006 at 10:12 AM.
 
Old 01-18-2006, 08:02 PM   #2
Maestro485
Member
 
Registered: Apr 2004
Location: Pittsburgh
Distribution: Slackware
Posts: 136

Rep: Reputation: 16
It may be as simple as running /sbin/dhcpcd eth0. This causes your card to request an IP address via DHCP. If this doesn't work, maybe you could post the differences you found between the two ifconfig outputs? That may be of some help.

BTW dhcpcd probably has to be run as root.

Matt
 
Old 01-18-2006, 08:48 PM   #3
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Original Poster
Rep: Reputation: 45
Here is my Knoppix output for eth0 after running /sbin/ifconfig:

Code:
Link encap:Ethernet  HWaddr 00:E0:4C:D8:38:96
inet addr:10.101.221.176 Bcast:10.101.223.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:29570 errors:0 dropped:0 overruns:0 frame:0
TX packets:157 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3186994 (3.0MiB) TX bytes:40667 (39.7 KiB)
Interrupt:18 Base address:0x4000
And here is my output using Gentoo:

Code:
Link encap:Ethernet  HWaddr 00:E0:4C:D8:38:96
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:113 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14105 (13.7KiB) TX bytes:1240 (1.2 KiB)
Interrupt:18
It dosen't take long to notice alot is missing from Gentoo output. Even I can tell that's one important looking line :P.

--------------------------------------------------

The command

Code:
/sbin/dhcpcd
returns the following

Code:
**** /sbin/dhcpcd: already running
**** /sbin/dhcpcd: if not then delete /var/run/dhcpcd-eth0.pid file
When i'm running Gentoo. Hope this helps some more.

Last edited by Penguin of Wonder; 01-18-2006 at 09:48 PM.
 
Old 01-19-2006, 10:12 AM   #4
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Original Poster
Rep: Reputation: 45
Alright guys, I solved my own problem... on accident.

On boot I issued the following command

boot: gentoo nodhcp

After it finished booting, I pinged Yahoo! and now the internet works just fine. Why, you might ask, did i disable DHCP upon boot? Because I was going to try to configure the whole thing myself, but I decieded to ping Yahoo! first just for the dumb luck of it. Turns out I'm dumb lucky today :P

Thanks for the responce Maestro485! According to the boot options menu, disabling DHCP might help people who have static IP addresses... so I'm assuming that's why it worked for me. I apparently have a static IP address or something.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
D-Link G650 Knoppix works heffo_j Linux - Wireless Networking 1 11-14-2005 03:08 AM
Sound works with knoppix CD but not Slackware bgryderclock Slackware 11 08-23-2005 10:01 AM
booting gentoo live-cd works but not knoppix samel_tvom Linux - Laptop and Netbook 8 01-09-2005 06:20 PM
Internet connection sharing - WinXP + Knoppix + Gentoo Mireno Linux - Networking 1 12-17-2004 03:56 PM
Knoppix or Gentoo? linda Linux - Distributions 5 05-29-2004 02:09 PM


All times are GMT -5. The time now is 04:40 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration