How To Configure IPv4 Network Settings in CentOS 7 (Two Methods)

Setting Up Networking in CentOS 7 Using the GUI

Our first method involves using the CentOS 7 graphical user interface (GUI for short.) It’s very simple and only consists of a few steps.
From your desktop go to
Applications > Sundry > Networking
Your screen should look like this

Method #1 Setting Up An IPv4 Network Using the Terminal and nmcli

If you prefer using the command line then our second method does just that. We will be using the nmcli command to add and modify a new connection.

From your terminal use the following format
nmcli con add con-name type ethernet ifname <your interface name ip4 your ip address gw4 your gateway address

The syntax should look similar to this

Now let’s activate the connection by running:
nmcli con up

We can verify the status of the connection by running
nmcli con show

Check back daily for more Linux tips and tricks!

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

Create a website or blog at

Up ↑

%d bloggers like this: