service network restart
reboot
yum update -y
cd /etc
cd sysconfig
cd network-scripts
[[email protected] network-scripts]# vi ifcfg-eth0
DEVICE="eth0"
HWADDR="00:0C:29:AC:5E:B3"
TYPE="Ethernet"
UUID="9e561a4a-72b6-4772-9e88-1c3de5eddd1a"
ONBOOT="yes"
NM_CONTROLLED="yes"
BOOTPROTO="static"
BROADCAST="192.168.1.255"
IPADDR="192.168.1.120"
NETMASK="255.255.255.0"
GATEWAY="192.168.1.1"
DNS1="8.8.8.8"
IPV6INIT="no"
IPV6_AUTOCONF="no"
~
~
~
~
~
~
~
~
~
Type :quit<Enter> to exit Vim
时间: 2024-11-25 08:46:29