How to easily edit a network connection on a CentOS 7 minimal installation – TechRepublic

Register for your free TechRepublic membership or if you are already a member, sign in using your preferred method below.
We recently updated our Terms and Conditions for TechRepublic Premium. By clicking continue, you agree to these updated terms.
Invalid email/username and password combination supplied.
An email has been sent to you with instructions on how to reset your password.
By registering, you agree to the Terms of Use and acknowledge the data practices outlined in the Privacy Policy.
You will also receive a complimentary subscription to TechRepublic’s News and Special Offers newsletter and the Top Story of the Day newsletter. You may unsubscribe from these newsletters at any time.
Username must be unique. Password must be a minimum of 6 characters and have any 3 of the 4 items: a number (0 through 9), a special character (such as !, $, #, %), an uppercase character (A through Z) or a lowercase (a through z) character (no spaces).
The main nmtui window.
How to easily edit a network connection on a CentOS 7 minimal installation
Your email has been sent
Jack Wallen shows you how to easily edit and add a new network connection on a minimal installation of CentOS 7.

CentOS 7 is a very powerful server platform. With this open source, enterprise-ready Linux distribution, the sky is the limit with what you can do. You can install it with a GUI to make things easy, but that takes up system resources. To that end, you might well have installed CentOS 7 as a minimal, GUI-less platform. Once you have logged into the system for the first time, you might have found that networking doesn’t function. What gives? It is quite possible that during the installation, networking was misconfigured or wasn’t configured to start at boot. When that happens, what do you do? You turn to a very easy, but rarely discussed, ncurses version of the NetworkManager tool. I’m going to show you how to use this tool, so you can easily edit a network connection on a minimal CentOS 7 installation.
Not much. In fact, the tool in question will already be installed (even on a minimal installation of CentOS 7). You will, however, need an account with sudo rights as well as all the pertinent information about your network. With that said, let’s get to work.
From the bash prompt, you start this version of NetworkManager with the command sudo nmtui. From the resulting window (Figure A), select Edit a connection.
Figure A
In the next window ( Figure B), you’ll be presented with a listing of your available network interfaces. Using your cursor keys, select the connection to be edited and then tab to the right pane and using your cursor keys select Edit.
Figure B
Hit Enter on your keyboard to open the edit window for this interface. Once you’re in the edit window ( Figure C), you can configure your network interface precisely how you need it.
Figure C
After you’ve edited the connection, tab to the right pane, and using your cursor keys select Back. In the main window, select Activate a connection. In the resulting window, select the newly edited connection and activate it by hitting the Enter key on your keyboard. You’ll know if the interface was activated as the right pane will say <Deactivate> ( Figure D).
Figure D
If from the Edit window you don’t see your interface listed, you can always add a new one by tabbing to the right pane and selecting Add. In the resulting window ( Figure E), select Ethernet, and then in the new window (one that looks and behaves very much like the interface edit window) fill in the details for your new interface.
Figure E
And that, my friends, is all there is to making the creation and editing of networking connections on a minimal CentOS 7 installation very easy. No more having to manually edit ifcfg files and no more guesswork. The nmtui tool makes configuring networking in CentOS 7 a breeze.
How to easily edit a network connection on a CentOS 7 minimal installation
Your email has been sent
Your message has been sent
TechRepublic Premium content helps you solve your toughest IT issues and jump-start your career or next project.
These 11 cloud-to-cloud solutions back up your organization’s data so you’ll be covered in the event of deletions, malware or outages. Compare the best online cloud backup services now.
You can use a mobile device to speak with another person directly through the Teams app. Lance Whitney shows you how to use this handy feature.
A phishing technique called Browser in the Browser (BITB) has emerged, and it’s already aiming at government entities, including Ukraine. Find out how to protect against this new threat.
With so many project management software options to choose from, it can seem daunting to find the right one for your projects or company. We’ve narrowed them down to these nine.
Start-ups, DARPA and Accenture Ventures announce research partnerships, new hardware and strategic investments.
Procuring software packages for an organization is a complicated process that involves more than just technological knowledge. There are financial and support aspects to consider, proof of concepts to evaluate and vendor negotiations to handle. Navigating through the details of an RFP alone can be challenging, so use TechRepublic Premium’s Software Procurement Policy to establish …
Recruiting a Security Analyst with the right combination of technical expertise and experience will require a comprehensive screening process. This hiring kit from TechRepublic Premium includes a job description, sample interview questions and a basic want ad that you can customize for your business to find, interview, recruit and hire the best candidates for a …
Recruiting a DevOps engineer with the right combination of technical expertise and experience will require a comprehensive screening process. This hiring kit from TechRepublic Premium includes a job description, sample interview questions and a basic want ad that you can customize for your business to find, interview, recruit and hire the best candidates for a …
Video game writing jobs are in demand. Recruiting a video game/quest writer with the right combination of technical expertise and experience will require a comprehensive screening process. This hiring kit from TechRepublic Premium includes a job description, sample interview questions and a basic want ad that you can customize for your business to find, interview, …

source

LINXGO
Logo
Compare items
  • Total (0)
Compare