View previous topic :: View next topic |
Author |
Message |
petrjanda Veteran


Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Thu May 27, 2004 8:25 am Post subject: 2 NIC's ans Gentoo |
|
|
Im installing Gentoo on a computer with 2 NIC's. Both supported by the kernel (I think Realtek 8139 chip or some). But when I boot with live CD, in /etc/init.d/ there is only net.eth0 but no net.eth1. When I do dmesg | grep eth, it finds both eth0 and eth1. How do I get it to load the other NIC? _________________ There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta |
|
Back to top |
|
 |
gringo Advocate


Joined: 27 Apr 2003 Posts: 3793
|
Posted: Thu May 27, 2004 8:33 am Post subject: |
|
|
You can configure both nics with the net-setup script or edit the /etc/conf.d/net script.
If you only have one net.eth0 script in /etc/init.d just copy it to net.eth1 and all will be fine. |
|
Back to top |
|
 |
petrjanda Veteran


Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Thu May 27, 2004 8:44 am Post subject: |
|
|
gringo wrote: | You can configure both nics with the net-setup script or edit the /etc/conf.d/net script.
If you only have one net.eth0 script in /etc/init.d just copy it to net.eth1 and all will be fine. |
are you sure I can just copy net.eth0 to net.eth1 ? _________________ There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta |
|
Back to top |
|
 |
gringo Advocate


Joined: 27 Apr 2003 Posts: 3793
|
Posted: Thu May 27, 2004 8:58 am Post subject: |
|
|
yes, have a look to the gentoos install guide
As said, the main configuration is in /etc/conf.d/net, not in the net.ethx wrappers. |
|
Back to top |
|
 |
jonnevers Veteran


Joined: 02 Jan 2003 Posts: 1594 Location: Gentoo64 land
|
Posted: Thu May 27, 2004 5:35 pm Post subject: |
|
|
Quote: | You can configure both nics with the net-setup script or edit the /etc/conf.d/net script.
If you only have one net.eth0 script in /etc/init.d just copy it to net.eth1 and all will be fine. |
this is correct, also during the install it may be a mute issue to set up both cards, as i've found that after making a new kernel and booting it, the cards *may* be detected in a different order then what the liveCD's kernel does.... just something I ran into a couple of times, and would have to go and switch all eth0 for eth1 and vice versa.
_jon |
|
Back to top |
|
 |
u2mike Apprentice

Joined: 06 Nov 2003 Posts: 209
|
Posted: Thu May 27, 2004 5:40 pm Post subject: |
|
|
What I did for my network cards is compiled them as modules. Then simply listed the modules in /etc/modules.autoload.d/kernel-2.6 in the order I want. The first module listed is loaded first and will be assigned as eth0. |
|
Back to top |
|
 |
Rainmaker Veteran


Joined: 12 Feb 2004 Posts: 1650 Location: /home/NL/ehv/
|
Posted: Fri May 28, 2004 1:35 am Post subject: |
|
|
well, it depends on the cards... If you have 2 identical cards, you're right, but some drivers take just a second longer to initialize then the other. I don't know if the modprobing on startup is forked, but if it is, you might have you networkcards switching at boot every time  _________________ If you can't dazzle them with brilliance, baffle them with bullshit. |
|
Back to top |
|
 |
|