Allow interface swapping with interfaces other than eth0 and eth1
Searched forums for 'swap' for no hits.
Referenced http://wiki.linuxmce.org/index.php/Single_to_Double_NIC.
Loading 7.10 CDs on a laptop. Internal NIC to be internal network (MUST BE - disconnected gateway, house still works. Other way around ... not.)
On a different disk, used DVDs - problem below didn't occur.
USB NIC to be external.
Internal NIC came in as eth1, usb eth2.
With CDs loaded, no swap interface button on admin web page.
Following link above failed, until I noticed a missed step (the first one) -
Web Admin: Show devices tree/My Devices/CORE > Device data/Network Interfaces
* Change: eth0,dhcp|eth0:0,192.168.80.1,255.255.255.0 to: eth0,dhcp|eth1,192.168.80.1,255.255.255.0
Until I changed the above entries the swap interfaces button was not present. (But was on DVD.)
Once I changed the entry, my network came back. So did the swap interface button, but then I no longer needed it.
Thought I should post a note.
If there is a condition on when the swap interfaces button should be presented, the condition should be removed.
Suggestions:
-
better to always have the button present (I spent too much time hunting for a button that was no longer there, making sure I was on the right page, searching the wiki and forum for 'swap' to make sure I wasn't imagining that I saw the button there at one point, and so on and so forth.)
-
Even if the button pops up and says "Can't at this time, or problem, or whatever", at least the user isn't searching to make sure they're where they're supposed to be.
-
Bonus if the popup also has a link to the wiki for further information when appropriate conditions for auto-swapping aren't present.
-
A summary below the button should be present - most of the time the info. is superfluous, thus at the bottom rather than the top, but when just getting going, minimizing the complexity / the number of issues being addressed at install, is a good and reassuring thing. e.g. user is at network installation / fixing at this point, which must be addressed at the beginning for any useful functionality. e.g.
Swap Interfaces
Current: Default:
eth1 - internal network eth0 - external network
eth2 - external network eth1 - internal network