Results 1 to 9 of 9

Thread: eth0 vs em1

  1. #1
    Join Date
    Jul 2010
    Location
    London
    Beans
    713
    Distro
    Ubuntu Gnome 17.04 Zesty Zapus

    eth0 vs em1

    In the past my network connection has always been called eth0, but since I did a fresh install of 13.04 it's been called em1. It works perfectly fine but I'm just wondering if there's any significant difference between 'eth' and 'em'? Or is it just an arbitrary name?
    Last edited by jim_deadlock; June 28th, 2013 at 01:33 PM.

  2. #2
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: eth0 vs em1

    What I see is Wired Connection 1. Which I think is more helpful for a the ordinary user. I do believe that it is possible to edit that label. That is all it is realy, a label.

    Regards.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  3. #3
    Join Date
    Jul 2010
    Location
    London
    Beans
    713
    Distro
    Ubuntu Gnome 17.04 Zesty Zapus

    Re: eth0 vs em1

    Yes I know about the 'Wired 1' label but what I'm talking about is what shows when you do:

    Code:
    ifconfig

  4. #4
    Join Date
    Jun 2006
    Beans
    471

  5. #5
    Join Date
    Jul 2010
    Location
    London
    Beans
    713
    Distro
    Ubuntu Gnome 17.04 Zesty Zapus

    Re: eth0 vs em1

    OK so it's just a new port naming convention and not something that should concern me

  6. #6
    Join Date
    Jun 2006
    Beans
    471

    Re: eth0 vs em1

    It look like you could try adding "biosdevname=0" to your kernel command line in /etc/default/grub and updating with update-grub2 to restore it back to eth0.

  7. #7
    Join Date
    Jul 2010
    Location
    London
    Beans
    713
    Distro
    Ubuntu Gnome 17.04 Zesty Zapus

    Re: eth0 vs em1

    Yes that worked exactly as you described!

  8. #8
    Join Date
    Jul 2010
    Location
    London
    Beans
    713
    Distro
    Ubuntu Gnome 17.04 Zesty Zapus

    Re: eth0 vs em1

    So I read man biosdevname and it seems that eth supports hotplugging but em (default policy) does not, so it's better to force eth as I've just done right?

  9. #9
    Join Date
    Jun 2006
    Beans
    471

    Re: eth0 vs em1

    Sorry that's the limit of my knowledge (except to say that there has obviously been a choice to switch to em1 for a reason, I'm just not sure what - possibly consistent naming of network cards). Perhaps someone in the know could answer.

    Anyway I also found this: http://www.cyberciti.biz/faq/howto-l...ed-using-udev/

    Which looks like another way of renaming em1 to whatever you like. I'm not sure how it would work in practice because my copy of the suggested file /etc/udev/rules.d/70-persistent-net.rules has a header that implies that it gets overwritten from somewhere.

    Code:
    # This file was automatically generated by the /lib/udev/write_net_rules
    # program, run by the persistent-net-generator.rules rules file.
    #
    # You can modify it, as long as you keep each rule on a single
    # line, and change only the value of the NAME= key.
    
    # PCI device 0x1969:/sys/devices/pci0000:00/0000:00:1c.3/0000:01:00.0 (atl1c)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f4:6d:04:2a:6d:3e", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
    
    # PCI device 0x168c:/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0 (ath9k)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="e0:b9:a5:5c:7f:85", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

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
  •