CentOS Commands - thiagobs-webdev/helptools GitHub Wiki

# Set Fixed IP

  1. Open the configuration file:

vim /etc/sysconfig/network-scripts/ifcfg-enp0s3

  1. Alter:

BOOTPROTO="none"

IPV6INIT="no"

  1. Add:

IPADDR="your_IP"

NETMASK="your_mask"

GATEWAY="your_gateway"

DNS1="your_dsn1"

  1. Save File:
  2. Desable and Enable the enp0s3:

ifdown enp0s3

ifup enp0s3

  1. Check the information:

ip address

  1. Done :D