PC internet port enp0s25, not eth0?

gergerdotcom

New Member
Joined
Feb 13, 2019
Messages
3
Reaction score
0
Credits
0
i just successfully installed my centOS 7 ..


when i run the command ip a s, i'm just wondering why my PC ethernet port is showing enp0s25 instead of eth0?


is it setup by default during the installation? and can i change it to eth0??


hope i have ask my question in the right thread though i'm using centOS 7.



cheers!
 


Yes you can change it to it's default
you can first check the name of your interface in your kernel log by using the following command:
dmesg | grep wlan0
dmesg | grep eth0
To change it to it's default
1. open the "/etc/default/grub" file with your editor.
2. find the line including "GRUB_CMDLINE_LINUX" and change it's value to:
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

3. Update the grub by using this command:
update-grub2 OR grub-mkconfig -o /boot/grub/grub.cfg

Then reboot your machine and enjoy getting rid of the odd names of your network interfaces :)
 

Members online


Top