assignment of eth* devices

Aleksandar Milivojevic amilivojevic at pbl.ca
Mon Feb 7 20:15:22 UTC 2005


David Hoffman wrote:
> I think you are missing my point. When I installed FC3, I didn't do it
> as an upgrade, I built it on a brand new machine. But I have several
> scripts and configuration files from a development machine that I
> wanted to migrate to it. Files for my iptables, samba, http, ftp,
> mailserver, etc. etc. all could have easily been copied over from my
> dev machine to production.
> 
> Long story short, just swapping the cables may not solve his problem,
> and perhaps he needs some help that is more constructive than
> facetious.

Assignment of devices must be done on kernel level (since that is a 
level on which particular interface is pronounced to be eth0 or eth1). 
If two cards use different drivers, and both are compiled as modules, 
you can do it from /etc/modprobe.conf.  Just edit the file, replace 
eth0/eth1 as you want them to be assigned, and reboot.

For example, one might have:

alias eth0 le
alias eth1 hme

To swap assignment, simply change to:

alias eth0 hme
alias eth1 le

If they are using same driver, modprobe.conf will read something like this:

alias eth0 hme
alias eht1 hme

I'm not sure how the cards that use same driver are enumerated. 
Probably first found, first serve basis.  It *should* be possible to 
specify the instance somewhere as option in modprobe.conf (for example, 
assighn eth0 to second instance, and eth1 to first instance), but I've 
no idea what is the syntax (and probably a bit lazy to look it up, since 
I don't need it right now ;-)

-- 
Aleksandar Milivojevic <amilivojevic at pbl.ca>    Pollard Banknote Limited
Systems Administrator                           1499 Buffalo Place
Tel: (204) 474-2323 ext 276                     Winnipeg, MB  R3T 1L7




More information about the fedora-list mailing list