How to configure static ip address on CentOS 7

Rasho

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...

9 Responses

  1. Saji says:

    I think you did not mention the subnet mask in the ifcfg file.

  2. Ali says:

    Yes, where can I configure the netmask?

  3. Bilcic says:

    PREFIX=24

  4. Steve says:

    Thank you so much! I was going through so many articles on how to do this and your did the trick. Excellent!!

  5. Z. Rather says:

    Hi,
    I have set the network configuration , All correct , But when i run ifconfig -a i get wrong Gateway IP address. How can i fix or where can i chagne or correct these settings. From the interface and /etc/sysconfig/network-scripts/ifcfg-em1 all seesm to br correctly set.

  6. Z. Rather says:

    Thanks nmtui helped me to change the hostname, But i still face issue with Default Gateway. i cannot ping to ouside network.

  7. yoyo says:

    yes great job !! now tell me how to revert it. 🙂

  8. Fahad says:

    facing issues though followed the step accordingly,
    unable to ping my gateway even.
    does the order of the sequence is to be followed strictly as mentioned ??

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.