LINUX--修改IP地址
1.修改:/etc/sysconfig/network-scripts/ifcfg-eth0
# Intel Corporation 82540EM Gigabit Ethernet Controller
DEVICE=eth0
#BOOTPROTO=dhcp
BOOTPROTO=static
ONBOOT=yes
HWADDR=08:00:27:95:f7:23
IPADDR=192.168.5.38
NETMASK=255.255.255.0
GATEWAY=192.168.5.1
2. 重启
service network restart