vi /etc/sysconfig/network-scripts/ifcfg-eth0
systemctl restart network
Code Block |
---|
title | ip config |
---|
collapse | true |
---|
|
[root@appliance ~]# more /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO=no
NM_CONTROLLED="no"
PERSISTENT_DHCLIENT=1
ONBOOT="yes"
TYPE=Ethernet
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME="eth0"
IPADDR=172.30.95.89
PREFIX=24
GATEWAY=172.30.95.65
DNS1=8.8.8.8
|