Monday, September 7, 2015

Reverting new network interface naming schemes to original in Ubuntu 14.04 Server

Gone are the days, where all network interfaces were called eth<N> in Ubuntu. Starting with Ubuntu 14.04, BIOS-given names are used in the LTS line of the distro.

So, it is possible your NIC isn't called eth0 anymore, but p2p1, or em0. According to biosdevname(1), the scheme for cards sitting in PCI slots is p<slot>p<port> and for embedded NICs, it is em<port>


With the new naming scheme, em1 will map to ‘Gb1’ (em2 to ‘Gb2’) as labeled on server chassis, making effective administration of network interfaces easier. The p1p2 names make it easier to identify network ports on add-on cards.

The new naming scheme is turned-on by default on supported Dell PowerEdge platforms. The new naming scheme can be disabled by passing ‘biosdevname=0’ kernel command line parameter during install time and retaining it through runtime.

Modify /etc/default/grub and add:

#sudo nano  /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 biosdevname=0"

Then force the create of a new grub.cfgfile

#sudo update-grub

Then reboot the system

No comments:

Post a Comment