The diagnostic centos IP address

View ip address

ip a

Where ip address config

/etc/sysconfig/network-scripts/

Backup ethernet network interface

[[email protected] network-scripts]# cat ifcfg-eno1
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="eno1"
UUID="7ec440ce-b07b-443e-813a-0180b8a73b4e"
DEVICE="eno1"
ONBOOT="yes"
IPADDR="192.168.1.249"
PREFIX="24"
GATEWAY="192.168.1.1"
DNS1="8.8.8.8"
DNS2="8.8.4.4"
IPV6_PRIVACY="no"

Restart network

systemctl restart network 

Leave a Reply

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