Follow the steps mentioned below to configure or assign static IP to a centos machine:

1. Check for interface name of the ip to be made static by running command:

2. If the interface name of IP is say eth6 then create or open the corresponding interface file as:
3. Add following values to this interface file:
4. Open the network file:
5. Add following at the end of file:
6. Restart network using:
Share this:

Leave a Reply

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