Configure network interface using nmtui

In my previous post, I wrote about how the network interface within a CentOS 7 environment can be configured to automatically get activated at boot up. In that post we discussed the command line tool

 ifup ens160 

and later edited the file

 /etc/sysconfig/network-scripts/ifcfg-ens160 

We can also achieve the same behaviour using the network manager text user interface also called as the nmtui.

  1. Start the nmtui wizard
     nmtui 
  2. select the Edit a Connection Option
    img1
  3.  Select the appropriate connection (network adapter) and then select edit
    img2
  4. On the edit screen use the select the Automatically connect checkbox and then select OK
    img3
  5. In case you want to temporarily deactivate (bring down) the network adapter (connection) use the Activate a connection option from the main screen.

The network manager TUI is an user interactive tool whereas there is also a non-interactive tool to achieve the same. The tool is called as:

 nmcli 
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s