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

Renaming ethernet interfaces?

Sorry, I've already searched the forums, and everything I've found is badly outdated (except for one post, which I'd like to confirm.)  I have a virtualized ASG 8.101 with two e1000 virtual NICs.  eth0 is internal, eth1 external.  I was trying to migrate to a physical box, which has an e1000 and an e100 NIC.  I want the gigabit NIC to be the internal one, but for some reason, udev is renaming the nics so that the e1000 ends up as eth1 and the e100 as eth0.  I flailed around for quite a bit with no real success.  From a fairly recent post here, I think what I want to do is edit /etc/udev/rules.d/70-persistent-net.rules and change the names?  I tried that, but it just disabled eth0 and created eth2 [:(]  I think maybe that is because I had eth1 before eth0?  Do I need to make sure they are in a certain order?  Alternatively, if there was some way to edit the saved backup file and change the names there, I'd be happy to try that (I just want to get this working LOL).  Is there a "best practices" method?  Thanks!


This thread was automatically locked due to age.
Parents
  • I'd also like to swap around my eth0/eth1 and only came across the same posts the original poster mentioned.  Currently, my WAN side has the Intel Pro GiB NIC and I'd like to have that on the LAN side, as I believe it has to be better than the onboard Realtek NIC in this box.

    So is it as simple as renaming eth0 to eth1; eth1 to eth0; swap the cables; reboot?  Just confirming before I go messing everything up  [:D]   I suppose I could just try it late at night and swap everything back if I don't have any success, but that sounds like too much fun.  [8-)]  This doesn't interfere with other settings on the box?  I'd imagine all the stuff is "linked" to eth0/eth1 and not the mac's or anything, but I'm certainly not qualified enough to even make that guess.
  • It is that simple; make a backup just in case a typo takes you down -- be prepared just in case.

    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.

Reply Children