CentOS 7 network address

Permanent changing network setting in the CentOS 7 we can do in:


# vi /etc/sysconfig/network-scripts/ifcfg-enp0s3


# cat /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="eth0" UUID="7d640aaf-0c61-4e07-aaa0-749981ae6de7" DEVICE="eth0"
ONBOOT="yes"
IPADDR="192.168.1.103"
PREFIX="24"
GATEWAY="192.168.1.1"
DNS1="213.133.100.100"
DNS2="8.8.8.8"
IPV6_PRIVACY="no"

Have You More questions? Please be free to ask us your questions in the
Dzhumaiev.Slack.com channel 🙂

Leave a Reply