快捷設置IP ifconfig eth1 192.168.50.100/24
vim /etc/sysconfig/network-scripts/ifcfg-eth1
#粘貼
DEVICE=eth1
IPADDR=192.168.50.100
NETMASK=255.255.255.0
BOOTPRO=static
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=eth1
/etc/init.d/network restart