按一下方式配置即可

 

# vim /etc/sysconfig/network-scripts/ifcfg-eth0


DEVICE="eth0"
HWADDR="0:02:8A:A6:40:35"
IPADDR="192.168.0.254"
NETMASK="255.255.255.0"
GATEWAY="192.168.0.1"

ONBOOT="yes"
BOOTPROTO="none"
USERCTL="no"
Type="Ethernet"

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐