How to edit a CentOS network connection from the command line

If you’re struggling to edit your CentOS network connections from the command line, Jack Wallen exhibits you a device that will relieve that battle.

What takes place, following you install a GUI-less instance of CentOS as a server OS and you locate the community connection is just not functioning? What do you do? Are you required to manually edit the community configuration documents? Fortuitously not.

With CentOS, there’s a developed-in tool to support you edit those people connections. The instrument is known as nmtui (NetworkManager Text User Interface). This tool can make it very uncomplicated to manage all those network connections on a terminal-only occasion of CentOS. 

Allow me present you how to use it. 

Log in to your CentOS equipment and, at the terminal, variety sudo nmtui

In the resulting window, choose Edit A Relationship with your cursor keys and hit Enter on your keyboard. In the upcoming window, decide on the NIC to be configured, hit Tab, choose Edit (employing your cursor keys), and hit Enter. You must now find you in the Edit Link window, exactly where you can enter all of the particulars for your relationship. 

SEE: Community security plan (TechRepublic Premium)

You can expect to use your keyboard cursor keys to navigate through the different configuration options. You’ll obtain a lot of selections to alter, so make certain to seem through all the things diligently. At the time you have the NIC set up specifically as you want it, scroll down (making use of your cursor keys) to the bottom of the window and decide on Alright. 

Hit Enter on your keyboard and the variations are saved. Go back to the 1st nmtui window and choose Activate A Relationship. Pick out the connection you just edited and tab to Deactivate. 

At the time the connection has deactivated, you will then need to have to reactivate it by deciding upon the connection, tabbing to Activate, and hitting Enter on your keyboard. Your variations are now used and all the things really should be very good to go. 

Congratulations, you just edited your CentOS community link, with no a GUI.  

Subscribe to TechRepublic’s How To Make Tech Get the job done on YouTube for all the most up-to-date tech tips for organization professionals from Jack Wallen.

Also see

Man working in network server room

Impression: Getty Images/iStockphoto

Supply link

You may also like