You are on page 1of 18

4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

Centos Linux

How to setup network after


RHEL/CentOS 7 minimal installation
 58

After installing RHEL/CentOS 7 minimal, You may not able to connect network
in that machine. This will happen because Ethernet interfaces are not enabled
by default.
This guide explain you to setup network on RHEL/CentOS 7.

Setup network on CentOS 7 minimal


First, type “nmcli d” command in your terminal for quick list ethernet card
installed on your machine:

“nmcli d” command output

Type “nmtui” command in your terminal to open Network manager. After


opening Network manager chose “Edit connection” and press Enter (Use TAB
button for choosing options).

By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 1/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

CentOS_7 Network manager screen

Now choose you network interfaces and click “Edit”

Edit your network interfaces

DHCP configuration
Choose “Automatic” in IPv4 CONFIGURATION and check Automatically
connect check box and press OK and quit from Network manager.

By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 2/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

Set ip adress using DHCP

Reset network services:

service network restart

Now your server will get IP Address from DHCP .

CentOS 7 check ip address

If you want to set a static IP address see How to configure static ip address on


CentOS 7.
By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 3/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

[box type=”note” align=”” class=”” width=””]See also:

Howto install ifconfig on CentOS 7 Linux

15 ip Command Examples for Linux Users

Setup network on Ubuntu 18.04

[/box]

58 Comments

By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 4/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

Magma
05/09/2014 at 22:55

Hi, these information is very useful. Thank you very much

Reply

Roger Griffith
26/10/2014 at 17:50

tnx!

Reply

neczzz
25/12/2014 at 12:02

Activate network after install:


1. Edit /etc/sysconfig/network-scripts/ifcfg-eth0
ONBOOT=yes
2.

# /etc/init.d/network restart

Look for easyrsh app og google play quick reference guide for Solaris,
HPUX, Redhat OSs

Reply

Angel Feijoo
21/02/2018 at 16:07

this is the solution if you can not use nmtui tool, for example in Fedora
22
Thanks

Reply

By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 5/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

Lester
14/01/2015 at 13:49

Thanks!

Reply

Luu
17/01/2015 at 00:05

Hi, guys. I can’t see any available Ethernet after I open nmtui as attached. I
have to add a new Ethernet connection every time I create a new VM, and I
have to hard code the MAC address to the new Ethernet connection I have
created.
Does anyone know is there a way to detect the connection automatically
after I deploy a new VM?

Thank you in advance.

Reply

By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 6/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

Bin
31/01/2015 at 08:33

Hi,I also meet this problem and can’t see any avaiable Ethernet after use
“nmcli d”,so how to do? Can you send solutions to my
email:bingliang711@hotmail.com
Thanks!

Reply

Rasho
02/01/2019 at 09:05

First, verify the status of Network Manager service


# systemctl status NetworkManager.service
To check which network interface is managed by Network Manager,
type:
# nmcli dev status

I hope I helped you

Reply

snakebite
24/05/2015 at 05:09

thanks! this one works for me. I am using Centos 7 in VMware

Reply

arul
01/06/2015 at 11:24

Hi, how to setup wireless after install centos7

Reply

By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 7/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

Marko
23/06/2015 at 16:41

NetworkManager is still an abomination in my eyes for most uses, but for a


workstation I get it.. otherwise NM_CONTROLLED=n is my friend.

Reply

Striata
24/06/2015 at 20:12

For a minimal install, why would you ever use networkmanager? Is it now
forced in 7? If not, I would never, ever, use networkmanager on a server. It’s
only real use is for mobile devices that hop around wireless networks all the
time.
In 6, I would use system-config-network-tui

Reply

yousuf
14/09/2015 at 08:49

Thank you so much….. very helpful.

Reply

andy
08/10/2015 at 06:52

Thanks so much man!

Reply

By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 8/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

Muhammad Saad
18/11/2015 at 22:58

It Worked for me, Thanks Mate 🙂

Reply

yul
26/11/2015 at 21:29

How can I get device address(00:…)?

Reply

Crumbz
19/05/2016 at 23:18

ip addr is for the minimal version of CentOS and ifconfig for any normal
distro

Reply

By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 9/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

Darren
16/12/2015 at 14:12

I am stuck in a silly thing but not sure how to solve it. To enable
“Automarically Connect” checkbox, I am clicking in ENTER button and I am
not getting “X”. How can I enable it?

Reply

Radenko
16/12/2015 at 15:10

Type following command:


# vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
and change on ONBOOT=no to ONBOOT=yes

Reply

Darren
16/12/2015 at 16:18

Worked. Thanks

Reply

Ritu
14/06/2017 at 03:34

still i can’t enable ‘Automatically connet ‘ checkbox can you


please help me out

Reply

Christian Wilkie
16/01/2018 at 16:21

for anyone else stuck on this – hit space instead of enter

By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 10/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

Anonymous
02/01/2016 at 19:44

Fantastic! Thank you very much for this helpful article – just what I needed
and it worked.

Reply

Camila
13/01/2016 at 03:24

It works for me. Thanks!

Reply

vietsoft
17/02/2016 at 14:58

no-nonsense guide. I like it. Thank you

Reply

yacin
13/03/2016 at 12:50

hello, i recently instlled centos7 but i have just LO interface,not eth0!! please
could you help me!! tanks

Reply

santhosh reddy
08/09/2016 at 14:34

may be the ip is down state…..once use this command #ifup eth0

here eth0 is default interface.once try friend

Reply
By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 11/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

Najib
31/03/2016 at 23:05

Hi,
How do I connect via wifi? It says it’s unmanaged. I’m real new to Linux (
Centos 7). Thanks for all of your help.

Reply

kapil
23/04/2016 at 20:20

thanks. It helped

Reply

abychkova
29/04/2016 at 16:59

Thanks a lot! Save my day.

Reply

lchang
04/05/2016 at 08:48

Thanks so much. It is useful

Reply

johnb
22/06/2016 at 22:21

Thanks for posting this very helpful info!

Reply
By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 12/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

haydenb
14/07/2016 at 17:07

Excellent Info.

Reply

dissa
17/07/2016 at 05:48

Thank man…helped a lot…..

Reply

myonm
22/07/2016 at 04:02

Great guide, thanks for the help.

Reply

Srinivas Anand
01/08/2016 at 15:38

Thank you vey much.. A great guide..

Reply

chanlu
05/08/2016 at 09:47

Thanks. Perfectly described! Works like a charm.

Reply

By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 13/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

Dave Powel
09/08/2016 at 06:20

great illustrations and it works as described – thank you very much

Reply

Larry Grill
30/09/2016 at 17:09

This was a big help. Thanks!

Reply

Mohamed
04/12/2016 at 00:18

Thank you sir. Very useful information

Reply

Ruslan
23/12/2016 at 09:16

I wish it was available on RHEL6 but it isn’t.

Reply

Zigfrid
27/12/2016 at 22:42

One of the best tutorial, thanks mate

Reply

By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 14/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

cos
01/01/2017 at 17:27

I did not have to restart service to get ip addr

Reply

vj
12/02/2017 at 02:57

Very straight forward and easy. After mucking around for about an hour,
this help me complete in within minutes. Is there any chance you help me
one on one? Many thanks

Reply

lintutsite
12/02/2017 at 13:37

I’ll be glad if I can help.

Reply

Ahmed El Sheikh
27/02/2017 at 18:39

Big thx for you…you save my time

Reply

By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 15/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

Walker Rowe
01/03/2017 at 16:29

Excellent. I thought Virtualbox would create this interface if you set it to


bridged networking. But it did not. So I used nmtui add/manual and
entered gateway and 192.* ip address and I could connect to CentOS from
the host machine.

Reply

Mohamed Ali
10/08/2017 at 20:40

thanks alot this worked for me.

Reply

Elizab3th
29/08/2017 at 17:52

This is very useful. Thank you.

Reply

MrBBE
04/10/2017 at 09:04

Great…that helped me a lot.


Although on my CentOS 7 Network manager was not running out of the
but…..please add in your guide to start it 😉

Reply

By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 16/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

Shashwat
09/10/2017 at 08:23

Thank You very much

Reply

aaquib
16/10/2017 at 10:17

wow, works perfectly. configured networking with these commands.

Reply

Bogdan
04/12/2017 at 11:10

hi, and if centos 7 64 minimal not detect any network card, what should i do
?

Reply

s
29/12/2017 at 06:59

thank you for the steps.


bang on target!

Reply

Tulkas
13/03/2018 at 00:43

Thanks, very clear!

Reply
By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 17/18
4/19/2019 How to setup network after RHEL/CentOS 7 minimal installation | LinTut

Dhiru
18/03/2018 at 20:10

Thank man, you hit at right point. I wasted so much time by going on to
those useless links. But your solution worked like a charm.
Thanks again!

Reply

Muhammad Maroof Subhani


27/07/2018 at 10:56

Thank you, worked like a charm. Great share.

Reply

Bhushan M
24/12/2018 at 06:35

Thank you! This info helped!

Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

By using this website, you agree that we and our partners may set cookies for purposes such as customising content and
advertising. I Understand

https://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/ 18/18

You might also like