Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Decided to install gentoo (2.6.12-r6) on my desktop, managed to get as far as rebooting after sorting out grub, all ofcourse with working Internet access.
Went to emerge KDE and I got errors and abortion. After looking around the forums I found out my Internet was not being detected.
I didn't notice the following until I rebooted:
Quote:
Starting ETH0
Bringing up ETH0
DHCP - Running DHCPCD ...
No loaded modules provide "dhcp" (dhcp_start)
ERROR: Problem starting needed services.
"Netmount" was not started.
In my /etc/conf.d/net I have the following:
Quote:
#config_eth0=("dhcp")
iface_eth0="dhcp"
dhcpcd_eth0="-HD"
dhcpcd_eth0="-N"
Commented 'config_eth0' as I read that using iface_eth0 was a better method, kept it in there just in case. I've just commented it all out, as it says if left blank then it assumes DCHP.
I have emerged dhcpcd whilst in the LiveCD environment, just in case you want to know.
In the /etc/modules.autoload.d/kernel-2.6 I have added 'natsemi' and '8139too' - although I don't know which to use, I added these by reading through a howto (cannot link to it yet) - but it doesn't seem to want to play nice.
I am very new (few hours into it) to Linux and Gentoo, so any commands I may need to use will have to be told to me in ultimate newbie terms!
If it helps, the ethernet card I am using is a Realtek SemiConducter, pretty common I think.
Oh, and ifconfig outputs:
Quote:
lo
Link Encap: Local Loopback
inet addr:127.0.0.1 - Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX Packets/etc/etc/etc:0
TX Packets/etc/etc/etc:0
No mention of eth0 as it does in the LiveCD environment.
I've modprobe'd 8139too and mii - as I think these are the modules I need to use. Is it meant to return something?
Which doesn't look too good to me, I know my IP, Broadcast Address and Mask Address, and the Mask Address was the only one which was right (other than the IP which I obviously set myself above)
edit://
I thought I should mention, I took off "netmount" from the rc-update thinger and it now comes up with "dhcp" will not start instead - because I looked on the Gentoo website and saw a "Home Router HOWTO" to get it to work, and I got that. I would link to that page, but again, I can't yet.
Sorry for taking so long, I decided to emerge KDE via the LiveCD to see if it'd make it any easier - and to save myeslf from going mad!
Right, back to the topic at hand.
ifconfig eth0 up returns nothing (is that meant to happen?) - then I do a normal ifconfig and it gives me the same output as my last post .. although it gives 127.0.0.1 as the 'inet addr' and no Broadcast addr.
Would it be easier to put in the IP Address the router gives me, along with the MAC Address, Broadcast and Net Mask address'
Seeing as DHCP is being a spaz? If so, how would I do that, although I'd rather use DHCP!
ETH1: Realtek RTL8139 @ 0xec922700, *modem's MAC Addr*, IRQ17
ETH1: Identified 8139 chip type 'RTL-8100B/8139D'
So, I changed my '/etc/conf.d/net' settings from eth0 to eth1. Then I did 'ifconfig eth1 up' and then 'ifconfig' - which eth1 returned the correct Mac Addr, but not any IP Addresses or anything.
So I did the 'ifconfig eth1 up 192.168.2.13' and then 'ifconfig' which returned the same, except the correct IP Address, the wrong broadcast address and correct Net Mask. But when I did 'ping -c 3 www.yahoo.com' I got the following:
connect: Network is unreachable
I cannot do '/etc/init.d/net.eth1 re/start/stop' as it gives me: bash: /etc/init.d/net.eth1: No such file or directory and I cannot run 'rc-update add net.eth1 default' because it returns: * /sbin/rc-update: /etc/init.d/net.eth1 not found: aborting
I must be getting closer?
Oh, I'd thought I'd mention that I can get to my router on Konq (192.168.2.1), but not the Internet?!
If you know all your default settings here's my /etc/conf.d/net file
Code:
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
# Global config file for net.* rc-scripts
# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.0.11 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."
# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"
# NB: The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly. Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"
# For setting the default gateway
#
gateway="eth0/192.168.0.1"
I seem to be having a very similar problem, except that in my case my box was working just fine, i did an emerge world, it updated and all that goodstuff, and now my dhcp wont come up, first it said my config file was depricated, so i just commented it out, now it says it cant load up my dhcp modual.
Even tho emerge might have caused your problem, I bet it can fix it! After emerging baselayout (which might have been included in your emerge world), I had this error message when doing a "/etc/init.d/net.eth0 start"
* Starting eth0
* Bringing up eth0
* dhcp
* No loaded modules provide "dhcp" (dhcp_start)
* Trying fallback configuration
And a simple "emerge dhcpcd" fixed the problem.
Last edited by thespooler; 01-04-2006 at 03:44 PM.
There's a conflict between Bash >= 3.1 and the network start script. Downgrading to Bash 3.0 will make your problem go away. I found this a few monthes ago, and ran into it again (emerge -up world keeps upgrading my bash). I haven't found a bug report in Gentoo's bugzilla, but I'm going to keep looking. I don't know if it's Bash's fault, or that the networking script is written poorly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.