Editing
Ethernet Device Configuration
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== CentOS 7 == This process was extracted from a stackexchange article: https://unix.stackexchange.com/questions/205010/centos-7-rename-network-interface-without-rebooting From the article: "I have confirmed ... that simply changing the name and device of the interface [in] /etc/sysconfig/network-scripts/ifcfg-eth0 (and renaming the file) will cause the device to be named correctly as long as the hwaddr= field is included in the configuration file." So ... at this point, edit the /etc/sysconfig/network-scripts/ifcfg-<oldname> file: * change DEVICE to <newname> * change NAME to <newname> * add HWADDR with the MAC address of the interface * rename the file to ifcfg-<newname> At this point it is cleanest if you reboot -- and then make sure everything is connected properly. If you can't reboot, at least restart the network with systemctl. Don't forget to update any other config files that contain interface names to reflect the new names.
Summary:
Please note that all contributions to WilliamsNet Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
WilliamsNet Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Commons
Architecture
How-To
Systems
Hardware
SysAdmin
Kubernetes
OpenSearch
Special
Pages to create
All pages
Recent changes
Random page
Help about MediaWiki
Formatting Help
Tools
What links here
Related changes
Special pages
Page information