Click to See Complete Forum and Search --> : Network config


Hypz
04-30-2004, 08:54 PM
I installed gentoo all yesterday and today. When it was finally done I rebooted and I have no network connection. I edited /etc/conf.d/net a dozen times and nothing worked. I know this is a simple fix can someone help me? I have a cable modem.

Shouldnt ifconfig="dhcp" be enough?

gehidore
04-30-2004, 09:02 PM
try this.


# /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.2 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"


as you cannot dhcp and have a static ip at the same time.

Hypz
04-30-2004, 09:20 PM
I tried that I get something to the effect of:

Unable to start needed services.
"netmount" not started/found.

DSwain
04-30-2004, 09:21 PM
I second that. I also have to do the same thing for that to work, and also make sure you do "rc-update add net.eth0 default" which will have it load up eth0 on startup. You should be good to go from there.

gehidore
04-30-2004, 09:24 PM
Originally posted by DSwain
I second that. I also have to do the same thing for that to work, and also make sure you do "rc-update add net.eth0 default" which will have it load up eth0 on startup. You should be good to go from there.

hey thanks, once again just knew i was forgetting something when i posted.

DSwain
04-30-2004, 09:26 PM
haha, no problem, we work together here right?

gehidore
04-30-2004, 09:44 PM
Originally posted by DSwain
haha, no problem, we work together here right?

of course we do, some of us hav'nt quite figured that out yet, but thats another story.

--gehidore

Hypz
04-30-2004, 09:45 PM
Do I have to chroot into gentoo and install netmount? Or is this just a config error?

EDIT: I tried what DSWain said and I already did that. I was getting these error doing startup.

gehidore
04-30-2004, 09:49 PM
Originally posted by Hypz
Do I have to chroot into gentoo and install netmount? Or is this just a config error?

EDIT: I tried what DSWain said and I already did that. I was getting these error doing startup.

after you do what DSWain said you need to do this.

/etc/init.d/net.eth0 stop
/etc/init.d/net.eth0 start


or just reboot.

DSwain
04-30-2004, 10:05 PM
thanks for that update, i always just rebooted but thats a pain in the rear. Good to know.
Yes rebooting should do that fine as long as it added it properly. You have one NIC card w/DHCP correct?

gehidore
04-30-2004, 10:07 PM
ohh DSwain just reminded me of something, what kernel did you use? custom? if so did you include support for your network card? if no you will need to do a kernel recompile add support for your network card and then reboot.

Hypz
04-30-2004, 10:10 PM
Built-in NIC and cable modem with dhcp.

Are you sure this isnt because I dont have "net mount" installed. I dont know what that is though. When I search for I find hotels. :)


EDIT: I think I did. I'll recompile and see if thats it. Thanks for the help.

Hypz
05-01-2004, 12:11 AM
I recompiled my kernel. I still get the same error.
I tried emerging netmount. Like it was package.

I'd really like to get gentoo working. Should I use genkernel for now? And later on with some more experience try to fix this. I was trying not to take the easy way out. I appreciate all your effort in trying to help me out.

gehidore
05-01-2004, 12:16 AM
you could cp over the livecds net.conf once its booted... that may be a temp fix for you. if that does not work you must have missed a step. can you post the output of cat /proc/pci | less if possible.

gehidore
05-01-2004, 12:20 AM
Originally posted by Hypz
Built-in NIC and cable modem with dhcp.


whoa now i just noticed something, built in NIC AND cable modem does that mean its an external modem? attached to the built-in nic OR is it internal?

if its internal it would not be net.eth0 but net.eth1



Originally posted by Hypz
Are you sure this isnt because I dont have "net mount" installed.


net mount requires an active link to a network, it will fail to load if there is no active link established.

Hypz
05-01-2004, 12:41 AM
No I have an external cable modem. Nothings ever that easy. :)

gehidore
05-01-2004, 01:01 AM
and your sure you put support for

RTL-8139/8139C/8139C+

in the kernel?

if so (sorry) what is the output of ifconfig

also if you dont like the netmount think try
rc-update del netmount default