View previous topic :: View next topic |
Author |
Message |
trondert Apprentice
Joined: 07 Aug 2005 Posts: 178 Location: Norway
|
Posted: Sun Jun 25, 2006 7:24 pm Post subject: no ethernet [SOLVED] |
|
|
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 |
|
|
freigeist Guru
Joined: 26 Jan 2004 Posts: 338 Location: Cologne, Germany
|
Posted: Sun Jun 25, 2006 7:31 pm Post subject: |
|
|
What happens if you do a
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 |
|
|
trondert Apprentice
Joined: 07 Aug 2005 Posts: 178 Location: Norway
|
Posted: Mon Jun 26, 2006 9:13 am Post subject: |
|
|
"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 |
|
|
trondert Apprentice
Joined: 07 Aug 2005 Posts: 178 Location: Norway
|
Posted: Mon Jun 26, 2006 9:43 am Post subject: |
|
|
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 |
|
|
freigeist Guru
Joined: 26 Jan 2004 Posts: 338 Location: Cologne, Germany
|
Posted: Mon Jun 26, 2006 10:13 am Post subject: |
|
|
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 |
|
|
elbeasto n00b
Joined: 25 Jun 2006 Posts: 42
|
Posted: Mon Jun 26, 2006 10:32 am Post subject: |
|
|
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
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 |
|
|
trondert Apprentice
Joined: 07 Aug 2005 Posts: 178 Location: Norway
|
Posted: Mon Jun 26, 2006 11:05 am Post subject: |
|
|
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 |
|
|
elbeasto n00b
Joined: 25 Jun 2006 Posts: 42
|
Posted: Mon Jun 26, 2006 12:31 pm Post subject: |
|
|
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 |
|
|
|