This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to change interfaces...

It's been a while since I've asked a question rather than answered one, so here it goes:

I've been tinkering with a custom Astaro system, and am trying to figure out how to reorder the interfaces ... for example, the machine has 3 cards in it, and let's say for whatever reason (by MAC address, bus order, etc.) the top card is assigned to eth1, middle card eth0, and bottom card is eth2... I'd like to reorder those as eth0, eth1, eth2 from top to bottom.  I know there's a way to do it, as I recall Astaro having some problems with a 7.x release where a 320 (or it could have been a 425) appliance would have it's interfaces named in the OS incorrectly (the ports on the front of the case were out of order) ... they subsequently fixed it in an up2date... my question is how did they reorder these?  I'm fairly "fluent" in Linux, and have googled for several solutions, and none seem to apply or work on an Astaro 7.x installation.

Any Ideas out there?  I might end up asking Astaro support how to do it, but I thought maybe you guys would like a challenge!


This thread was automatically locked due to age.
Parents
  • If they're all different drivers, you can re-order the entries in /etc/modules.conf, but I don't know how you'd do it if they're all the same.

    Maybe you could do something in /etc/modprobe.conf.local; not sure.

    FWIW, I think they're in the same order as listed by lspci, which is the order the motherboard/acpi reports them to the kernel.

    I think it's easier just to label the ports on the back of the computer.

    Barry
  • BTW, we had some HP's where the NICs in windows would match the labels on the back, but in linux (RedHat and Astaro), they would be reversed. 
    HP acknowledged the issue, but seemed disinterested. 
    I suppose if they ever changed it in a firmware release, a lot of people would be upset.

    Barry
  • You should be able to do this via udev (http://gentoo-wiki.com/UDEV) for instructions. Keep in mind that many of the examples at that link refer to hard drives & USB devices, but any hardware applies (including your NIC cards...)

    P.S.
        Please post the specifics of how things turn out so others in the future don't have to beat there head against the wall...

    G/L  [:)]
  • I don't think the udev method will work on the Astaro; some utilities that method requires are missing.

    I know the reorder the ports on the old 220... if you look at the MAC addresses for the ports, you'll see they are in a totally different order than a plain linux installation would put them it if you installed that on the appliance..

    apparently port naming issue was significant enough with users that had Dell servers that they released a special tool that was dedicated to renaming the NICs...

    CTO, Convergent Information Security Solutions, LLC

    https://www.convergesecurity.com

    Advice given as posted on this forum does not construe a support relationship or other relationship with Convergent Information Security Solutions, LLC or its subsidiaries.  Use the advice given at your own risk.

  • V7 looks perfectly UDEV capable to me. I would really recommend this method, I've had to use it on multiple occasions for linux servers I run/setup.

    P.S.
        I would recommend trying the whole udev thing via a serial port if possible in case none of the ethernet devices come back up on a reboot (although I think if your rules are invalid it will just fall back to the defaults it using now).
Reply
  • V7 looks perfectly UDEV capable to me. I would really recommend this method, I've had to use it on multiple occasions for linux servers I run/setup.

    P.S.
        I would recommend trying the whole udev thing via a serial port if possible in case none of the ethernet devices come back up on a reboot (although I think if your rules are invalid it will just fall back to the defaults it using now).
Children
No Data