Results 1 to 7 of 7

Thread: rename eth1 to eth0 (replaced NIC after install)

  1. #1
    Join Date
    Jun 2006
    Beans
    61

    rename eth1 to eth0 (replaced NIC after install)

    What is the mechanism for permanently renaming an interface in Ubuntu 8.10 Intrepid?

    I had a dodgy 8139too (module) based NIC installed at startup. I switched that out for a unit that (apparently) uses 8139cp. At any rate the point is that the new NIC is eth1, and I'd like to switch it permanently back to eth0 to be consistent with the other Ubuntu systems I manage.
    Code:
    /etc$ sudo grep -R eth1 *
    modprobe.d/blacklist:blacklist eth1394
    network/interfaces:auto eth1
    network/interfaces:iface eth1 inet static
    udev/rules.d/70-persistent-net.rules:
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="(snip)", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
    Do I only need to change the 70-persistent-net.rules and network/interfaces, then reboot?
    Last edited by jeffk; December 10th, 2008 at 03:25 PM.

  2. #2
    Join Date
    May 2007
    Beans
    1

    Re: rename eth1 to eth0 (replaced NIC after install)

    Hi,

    Just edit udev/rules.d/70-persistent-net.rules end set if number to correct mac address.

    Shots.

  3. #3
    Join Date
    Apr 2005
    Location
    Petoskey, MI
    Beans
    346
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: rename eth1 to eth0 (replaced NIC after install)

    Quote Originally Posted by Shots View Post
    Hi,

    Just edit udev/rules.d/70-persistent-net.rules end set if number to correct mac address.

    Shots.
    That worked for me! Thanks! the other place /etc/iftab/ doesn't exist anymore it seems.
    -user error

    | I enjoy Linux! | Using 64bit Ubuntu! |

  4. #4
    Join Date
    Aug 2007
    Location
    Florida
    Beans
    41
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: rename eth1 to eth0 (replaced NIC after install)

    Quote Originally Posted by Shots View Post
    Hi,

    Just edit udev/rules.d/70-persistent-net.rules end set if number to correct mac address.

    Shots.
    what do you mean by "end set if number to correct mac address."?
    Last edited by fro1269; March 10th, 2011 at 02:23 AM.
    Registered Linux User #511035 | my web log

  5. #5
    Join Date
    May 2007
    Location
    Minneapolis
    Beans
    123
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: rename eth1 to eth0 (replaced NIC after install)

    Quote Originally Posted by fro1269 View Post
    what do you mean by "end set if number to correct mac address."?
    Match the MAC Address to the device name is what they mean.
    --iissmart--

  6. #6
    Join Date
    Jun 2007
    Beans
    57
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: rename eth1 to eth0 (replaced NIC after install)

    Update for those who search.
    on 12.04 server & 10.04 desktop (and probably others) you want to look in /etc/udev/rules.d/

  7. #7
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: rename eth1 to eth0 (replaced NIC after install)

    From the Code of Conduct:
    If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •