You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to Change Network Device (NIC) Name on CentOS 7 Bare Metal Instance


Applies to:  

Oracle Cloud Infrastructure 

Centos 7.9 x86-64


This document will explain how to change the network device (NIC) name on a Centos Bare Metal instance and make it persistent across reboot. 


In this Example, we are going to change the NIC name from ens3f0 to testens3 

1) Verify the current NIV name (Here it's ens3f0 ) 

[root@test]# ip a 
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 
   inet scope host lo 
      valid_lft forever preferred_lft forever 
   inet6 ::1/128 scope host 
      valid_lft forever preferred_lft forever 
2: ens3f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP group default qlen 1000 <<<<<<<<<<<
   link/ether 90:e2:ba:da:72:c0 brd ff:ff:ff:ff:ff:ff 
   inet brd scope global dynamic ens3f0 
      valid_lft 60904sec preferred_lft 60904sec 
   inet6 fe80::92e2:baff:feda:72c0/64 scope link 
      valid_lft forever preferred_lft forever 

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!