[root@aws10028 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=2e:ac:17:cd:7c:b0
TYPE=Ethernet
UUID=34f99f22-e164-3fc3-edd8-3aa0e2de0048
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=10.26.100.28
NETMASK=255.255.255.0
GATEWAY=10.26.100.1
[root@aws10028 ~]#

网卡重启

/etc/init.d/network restart
文档更新时间: 2020-01-10 03:19   作者:月影鹏鹏