[K12OSN] Swap eth0 and eth1

Shahms King shahms at shahms.com
Thu Sep 15 22:22:47 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Les Mikesell wrote:
| On Thu, 2005-09-15 at 16:34, gKw-X wrote:
|
|>Thanks your your input guys,
|>
|>I can't switch the cards because one of them is onboard. If that's what
|>you meant?
|>
|>I tried what you said, and in the network gui it looks right after i
|>reload the settings, but ifconfig -a still shows them wrong... I also
|>tried someone else's suggestion of swapping the aliases in modprobe, and
|>still same thing...
|>
|>I'm at a loss, it seems that no matter what I do, ifconfig -a reports
|>them as the 10/100 being eth0 and the 10/100/1000 being eth1... Why
|>would the report from ifconfig be different from what the network
|>settings gui reports?

Since hotplug is used by K12LTSP to name the interfaces on the server
and hotplug uses ifrename if availible, all you need to do is create the
file "/etc/iftab" with the two lines:

eth0  mac <eth0 mac address>
eth1  mac <eth1 mac address>

And hotplug/ifrename should take care of the rest.  The easiest way to
ensure these changes take effect is to reboot after making them.

For more details of the /etc/iftab file, "man iftab".


- --
Shahms E. King <shahms at shahms.com>
Multnomah ESD

Public Key:
http://shahms.mesd.k12.or.us/~sking/shahms.asc
Fingerprint:
1612 054B CE92 8770 F1EA  AB1B FEAB 3636 45B2 D75B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDKfQ2/qs2NkWy11sRAiLzAJ4ukpw6iU0AzHZKcd1qL162vkBuWgCgmgG9
An9iPTSjQrfAWULRYK3Y3AI=
=Yral
-----END PGP SIGNATURE-----




More information about the K12OSN mailing list