[root@localhost network-scripts]# cat ifcfg-eth0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
HWADDR=00:50:56:af:52:13
IPADDR=192.168.74.144
NETMASK=255.255.255.0
GATEWAY=192.168.74.1
执行:service network restart即可!
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
HWADDR=00:50:56:af:52:13
IPADDR=192.168.74.144
NETMASK=255.255.255.0
GATEWAY=192.168.74.1
执行:service network restart即可!