Ubuntu 16.04 Modify the NIC named eth*

Source: Internet
Author: User
By default, the Ubuntu 16.04 system has just been installed and the NIC name defaults as shown.

To meet the habit, we changed the NIC name to eth* display

Operation method

  1. Configuration file/etc/default/grub

    Grub_cmdline_linux= ""

    Switch

    grub_cmdline_linux= "Net.ifnames=0 biosdevname=0"

  2. Execute the following command

    sudo grub-mkconfig-o/boot/grub/grub.cfg

  3. Modify the NIC configuration file/etc/network/interfaces

    Auto ens160 change to auto eth0

    Iface ens160 inet Static changed to Iface eth0 inet static

    Note: If you are getting an IP address automatically then change iface ens160 inet DHCP to iface eth0 inet DHCP

  4. Set up the network adapter to boot from

    sudo systemctl enable Networking.service

  5. Rebooting the system

    sudo init 6

  6. View Network card Name


Ubuntu 16.04 Modify the NIC named eth*

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.