Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
assign module to ethX
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
F.L.O
n00b
n00b


Joined: 30 Mar 2003
Posts: 33
Location: Vienna

PostPosted: Thu Apr 01, 2004 9:32 pm    Post subject: assign module to ethX Reply with quote

i'm running 2.6.5_rc2-mm3 with hotplug. i have two network cards (ne2k-pci,8193too).
in modules.d/aliases i have:
...
alias eth0 ne2k-pci
alias eth1 8193too
...

on boot hotplug loads the modules, but ignores the aliases i have defined, the network cards are switched, and dhcp runs on the wrong card. if i remove the modules and restart network services everything works. my solution was to blacklist the modules in hotplug/blacklist. this works, but its an ugly hack.
is there an other possibity to assign the ethX interfaces to a specific module or pci address ?
Back to top
View user's profile Send private message
GhePeU
Guru
Guru


Joined: 12 Aug 2003
Posts: 549
Location: Mestre, Italy

PostPosted: Fri Apr 02, 2004 9:05 am    Post subject: Reply with quote

I've got same problem, but my hack is uglier, i switched the cables

is there any better solution?
_________________
That is not dead which can eternal lie,
and with strange aeons even death may die.
Back to top
View user's profile Send private message
Shrekkie
n00b
n00b


Joined: 22 May 2003
Posts: 64
Location: Belgium

PostPosted: Fri Apr 02, 2004 10:46 am    Post subject: Reply with quote

this is my /etc/conf.d/net :

Quote:

iface_eth0="dhcp"
iface_eth1="dhcp"
#dhcpcd_eth0="..."


gateway="eth0/192.168.0.1"
gateway="eth1/172.20.28.254"


Here you can define which interfaces run on dhcp or static.
Just cp /etc/init.d/net.eth0 to /etc/init.d/net.eth1 and put them in rc-update if wanted.

Btw can't you just load both modules in nano /etc/modules.autoload.d/kernel-2.6 and make your con.d/net take care of the right services/interface ??
_________________
irc.michiels.nu #lobby if you wanna talk to me.
Back to top
View user's profile Send private message
F.L.O
n00b
n00b


Joined: 30 Mar 2003
Posts: 33
Location: Vienna

PostPosted: Fri Apr 02, 2004 6:46 pm    Post subject: Reply with quote

problem is, i don't wont to rewrite all my firewall/dhcpd/... config files to reflect the switching of eth0/eth1 ...
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