Thursday, April 20, 2017

How to change enp3s0f1 to Eth0 and Other
There 2 way :

Step 1: Disable the default Firmware inherited names.

Edit your /etc/default/grub changing the line from

GRUB_CMDLINE_LINUX=""

to

GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

with command :

linggeh@Oxygen:~$ nano /etc/default/grub

and, Finally run as root:

linggeh@Oxygen:~$ sudo update-grub

and reboot your system.

linggeh@Oxygen:~$ sudo reboot

Step 2: Create the persistent file /etc/udev/rules.d/70-persistent-net.rules as root and fill them.

linggeh@Oxygen:~$ sudo nano /etc/udev/rules.d/70-persistent-net.rules

Example:
# 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 lan Device
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="XX:yy:XX:yy:XX:yy", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="ethX"
# PCI device Wlan Device
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="XX:yy:XX:yy:XX:yy", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="wlanX"


Use the interfaces MAC Address to refer to the interface that you want to rename, and change the 'X' interface name values as you want.

Save changes and reboot.

linggeh@Oxygen:~$ sudo reboot

enp3s0 to eth0 and wlan0
Ifconfig show after reboot


Tested on Ubuntu 17.04.
Thank You.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna Veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.

0 comments:

Post a Comment

Start Work With Me

Contact Us
JOHN DOE
+123-456-789
Melbourne, Australia