View previous topic :: View next topic |
Author |
Message |
F.L.O n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Mar 2003 Posts: 33 Location: Vienna
|
Posted: Thu Apr 01, 2004 9:32 pm Post subject: assign module to ethX |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
GhePeU Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/16384460041c74735df309.jpg)
Joined: 12 Aug 2003 Posts: 549 Location: Mestre, Italy
|
Posted: Fri Apr 02, 2004 9:05 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Shrekkie n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/18617957763ecc83f3eaace.gif)
Joined: 22 May 2003 Posts: 64 Location: Belgium
|
Posted: Fri Apr 02, 2004 10:46 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
F.L.O n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Mar 2003 Posts: 33 Location: Vienna
|
Posted: Fri Apr 02, 2004 6:46 pm Post subject: |
|
|
problem is, i don't wont to rewrite all my firewall/dhcpd/... config files to reflect the switching of eth0/eth1 ... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|