How to setup network after RHEL/CentOS 7 minimal installation


Linux System Administrator with over 8 years experience in administering production level servers (CentOS/Ubuntu/Debian with apache2/nginx, mysql server, etc)

You may also like...

57 Responses

  1. Magma says:

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

  2. Roger Griffith says:


  3. neczzz says:

    Activate network after install:
    1. Edit /etc/sysconfig/network-scripts/ifcfg-eth0
    2. #/etc/init.d/network restart

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

    • Angel Feijoo says:

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

  4. Lester says:


  5. Luu says:

    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.

  6. Bin says:

    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

  7. rashoba says:

    First, verify the status of Network Manager service
    # systemctl status NetworkManager.service
    To check which network interface is managed by Network Manager,
    # nmcli dev status

    I hope I helped you

  8. snakebite says:

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

  9. arul says:

    Hi, how to setup wireless after install centos7

  10. Marko says:

    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.

  11. Striata says:

    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

  12. yousuf says:

    Thank you so much….. very helpful.

  13. andy says:

    Thanks so much man!

  14. Muhammad Saad says:

    It Worked for me, Thanks Mate 🙂

  15. yul says:

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

  16. Darren says:

    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?

  17. Anonymous says:

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

  18. Camila says:

    It works for me. Thanks!

  19. vietsoft says:

    no-nonsense guide. I like it. Thank you

  20. yacin says:

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

    • santhosh reddy says:

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

      here eth0 is default interface.once try friend

  21. Najib says:

    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.

  22. kapil says:

    thanks. It helped

  23. abychkova says:

    Thanks a lot! Save my day.

  24. lchang says:

    Thanks so much. It is useful

  25. johnb says:

    Thanks for posting this very helpful info!

  26. haydenb says:

    Excellent Info.

  27. dissa says:

    Thank man…helped a lot…..

  28. myonm says:

    Great guide, thanks for the help.

  29. Srinivas Anand says:

    Thank you vey much.. A great guide..

  30. chanlu says:

    Thanks. Perfectly described! Works like a charm.

  31. Dave Powel says:

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

  32. Larry Grill says:

    This was a big help. Thanks!

  33. Mohamed says:

    Thank you sir. Very useful information

  34. Ruslan says:

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

  35. Zigfrid says:

    One of the best tutorial, thanks mate

  36. cos says:

    I did not have to restart service to get ip addr

  37. vj says:

    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

  38. Ahmed El Sheikh says:

    Big thx for you…you save my time

  39. Walker Rowe says:

    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.

  40. Mohamed Ali says:

    thanks alot this worked for me.

  41. Elizab3th says:

    This is very useful. Thank you.

  42. MrBBE says:

    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 😉

  43. Shashwat says:

    Thank You very much

  44. aaquib says:

    wow, works perfectly. configured networking with these commands.

  45. Bogdan says:

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

  46. s says:

    thank you for the steps.
    bang on target!

  47. Tulkas says:

    Thanks, very clear!

  48. Dhiru says:

    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!

  49. Muhammad Maroof Subhani says:

    Thank you, worked like a charm. Great share.

Leave a Reply

Your email address will not be published. Required fields are marked *

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