Nota Acap
  • Introduction
  • Linux Guide
    • Fresh Installed Centos 7
    • Changing Network Interfaces in Centos 7
    • Lockdown SSH
    • Recursively change permission Linux
    • Proxy Server IPtables
    • Provisioning Web Server with Custombuild
    • MySQL Basic Management
    • Increasing Existing LVM Disk
  • Windows Guide
  • Application Guide
    • WEB Port IPtables Rate Limit
    • Simple Email Piping Script
    • HTTP Dead
    • Email Relay Outgoing
    • Compiling Extra PHP version (Directadmin)
    • Finding the SPAM (cPanel)
    • HTTP Basic Virtual Host
    • Update Kernel for DRBD Hosts
  • Migration Related
    • Cpanel -> Cpanel (Bulk)
    • IMAPSYNC Basic Scripts
    • Directadmin -> cPanel (Copy/Sync Emails)
    • Basic Rsync Script
Powered by GitBook
On this page

Was this helpful?

  1. Linux Guide

Changing Network Interfaces in Centos 7

Network Interfaces

I would want to share how you can change the Network Interfaces Name in Centos 7 machines.

First you need to edit file as below :

vi /etc/default/grub

You may add "net.ifnames=0 in GRUB_CMDLINE_LINUX" variable as below.

GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet net.ifnames=0"

Then rebuild the grub to apply the name on boot.

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

Next, you may now rename the network interface that suits your preferences

cd /etc/sysconfig/network-scripts; mv ifcfg-ens32 ifcfg-eth0

When editing the network-interface, remember to also change the value of DEVICE and NAME, then reboot the server.

init 6

After reboot, use command "ifconfig" to verify whether the Network Interface name are changed.

PreviousFresh Installed Centos 7NextLockdown SSH

Last updated 6 years ago

Was this helpful?