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.
- Start the nmtui wizard
nmtui
- select the Edit a Connection Option
- Select the appropriate connection (network adapter) and then select edit
- On the edit screen use the select the Automatically connect checkbox and then select OK
- 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