Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no ethernet [SOLVED]
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
trondert
Apprentice
Apprentice


Joined: 07 Aug 2005
Posts: 178
Location: Norway

PostPosted: Sun Jun 25, 2006 7:24 pm    Post subject: no ethernet [SOLVED] Reply with quote

Nforce3 MB with NvidiaCorporation nForce3 Eterhent (rev 5).
in my install env i can just net-setup eth1 and voila, but how do i change it/set it up in my live env? Did the steps in setup to add both eth0 and eth1 to default runlvl. But i got no net now, and ifconfig gives
Quote:
lo Link endcap:Local Loopback.


no eth0 or eth1. So how do i set up my network in this env? cant find anything smart about it, or am i just missing a module? I used "genkernel --all" for my kernel.
I seem to remember somthing about modprobe, but my Linux knowhow is kinda degenerated over the last years....


Last edited by trondert on Mon Jun 26, 2006 9:46 am; edited 1 time in total
Back to top
View user's profile Send private message
freigeist
Guru
Guru


Joined: 26 Jan 2004
Posts: 338
Location: Cologne, Germany

PostPosted: Sun Jun 25, 2006 7:31 pm    Post subject: Reply with quote

What happens if you do a
Code:
ifconfig eth0 up


Does ifconfig show the network device now?

If this works try adding your network card to the boot runlevel

Code:
rc-update add net.eth0 boot
Back to top
View user's profile Send private message
trondert
Apprentice
Apprentice


Joined: 07 Aug 2005
Posts: 178
Location: Norway

PostPosted: Mon Jun 26, 2006 9:13 am    Post subject: Reply with quote

"ifconfig eth0 up" just gives a new prompt.

And ifconfig then showes eth0 an lo device :)

Nice!

Added to boot ok, but gives an error on boot
Quote:
net.eth0: cannot start until the runlevel boot has completed


the error for default runlvl seems to be "netmount not started". Hmm, and "Cannot default to DHCP as there is no DHCP module loaded" ah, i need DHCP as a module :) Will try that too then.


Last edited by trondert on Mon Jun 26, 2006 9:47 am; edited 1 time in total
Back to top
View user's profile Send private message
trondert
Apprentice
Apprentice


Joined: 07 Aug 2005
Posts: 178
Location: Norway

PostPosted: Mon Jun 26, 2006 9:43 am    Post subject: Reply with quote

Ah, found nice solution elswhre on forum(much easier to search when you know what to search for). Chrooted from livecd, and emerged dhcpcd. And now it works. But how do i remove eth.eth0 from boot and net.eth1 from default runlvl?
Back to top
View user's profile Send private message
freigeist
Guru
Guru


Joined: 26 Jan 2004
Posts: 338
Location: Cologne, Germany

PostPosted: Mon Jun 26, 2006 10:13 am    Post subject: Reply with quote

Removing services:
Code:
rc-update del net.eth0

Code:
rc-update del net.eth1


But I'm sure that you dont want to remove them, because even with dhcpcd the network device wont go automatically up. Try adding net.eth0 to the default runlevel after removing it from the boot runlevel:
Code:
rc-update add net.eth0 default
Back to top
View user's profile Send private message
elbeasto
n00b
n00b


Joined: 25 Jun 2006
Posts: 42

PostPosted: Mon Jun 26, 2006 10:32 am    Post subject: Reply with quote

ive been following this thread as i have the same problem. In the live cd my nic is picked up and works fine but after installation only Io is brought up.

If i type
Code:
net-setup

I get
Code:
-bash: net-setup: command not found


My /etc/conf.d/net file is empty!

at startup there are a fair few lines saying, "device-mapper: dm-linear: Device lookup failed."

I tried booting to the live cd but im not sure i chrooted properly but dhcpch emerged ok in my real installation.

any ideas?

Thanks
Back to top
View user's profile Send private message
trondert
Apprentice
Apprentice


Joined: 07 Aug 2005
Posts: 178
Location: Norway

PostPosted: Mon Jun 26, 2006 11:05 am    Post subject: Reply with quote

elbeasto wrote:


I tried booting to the live cd but im not sure i chrooted properly but dhcpch emerged ok in my real installation.



When you say dhcpcd emerged in your "real" installation. Is that the one you are trying to get the network to work?

And chrooting is nicely described here: http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=6#doc_chap1 Think you only need to do from "Code Listing 4: Mounting /proc and /dev" since your previous work is stored already.
Just dont do the same as me, and forget to mount your /boot and / partitions(if you have them separate). And dont think it hurts to do a "swapon /dev/sda1" or where your swap is.

edit:
Oh, and i think the net-setup is only for install and setup. Dont think its a part of the "live" env. At least it has never been for me :)
Back to top
View user's profile Send private message
elbeasto
n00b
n00b


Joined: 25 Jun 2006
Posts: 42

PostPosted: Mon Jun 26, 2006 12:31 pm    Post subject: Reply with quote

i meant the installation on the HD not the CD

dunno if ill bother, getting the eth to work should not be this hard!
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