Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2 NIC's ans Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Thu May 27, 2004 8:25 am    Post subject: 2 NIC's ans Gentoo Reply with quote

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
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Thu May 27, 2004 8:33 am    Post subject: Reply with 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.
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Thu May 27, 2004 8:44 am    Post subject: Reply with quote

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
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Thu May 27, 2004 8:58 am    Post subject: Reply with quote

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
View user's profile Send private message
jonnevers
Veteran
Veteran


Joined: 02 Jan 2003
Posts: 1594
Location: Gentoo64 land

PostPosted: Thu May 27, 2004 5:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
u2mike
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 209

PostPosted: Thu May 27, 2004 5:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Rainmaker
Veteran
Veteran


Joined: 12 Feb 2004
Posts: 1650
Location: /home/NL/ehv/

PostPosted: Fri May 28, 2004 1:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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