Skip to content

Obviate.io

To anticipate and prevent

  • Home
  • About Us
  • History
  • Privacy Policy
  • Toggle search form

“Renaming” ethernet adapters in Debian

Posted on 2008-03-31 By Jon No Comments on “Renaming” ethernet adapters in Debian

I have a Dell PowerEdge 1950 server running Debian Sarge. It recently experienced the joy of a motherboard replacement (which will hopefully make the hardware faults go away). This normally isn’t a big deal, except for the fact that I use the onboard gigabit NICs. See Debian “knows” which network card is which by MAC address and when you replace the motherboard you get 2 new MACs. So instead of having eth0 & eth1, you’ve got eth2 & eth3. I google’d around for a long time and couldn’t find out how to make Debian “forget” the old NIC’s, so I went with instructions I found on how to “Rename” the adapters using udev. Sadly… It didn’t work.

As it turns out though, /etc/udev/rules.d/z25_persistent-net.rules is the home of where Debian remembers the network adapters. So I popped open that file and found my two old adapters and the two new ones. A few lines commented out, a few renamed lines (oh, and a reboot) — and I was off to the races.

Oh, and if you are wondering why I cared about eth0/1 versus eth2/3 — The G729 licenses for Asterisk are tied to the MAC of eth0. So without an eth0 my G729 enabled phones didn’t work, and I couldn’t re-register the licenses. Sigh… Oh well, I can use my phone now!

Linux

Post navigation

Previous Post: Dropped Cedega for Wine 0.9.57
Next Post: Facebook sabotages site for Adblock Plus users?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

March 2008
S M T W T F S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
« Feb   Apr »

Copyright © 2022 Obviate.io

Powered by PressBook Premium theme