ifconfig eth0 192.168.1.2 netmask 255.255.255.0
vi /etc/init.d/rcS.net
修改其中的ip即可
#!/bin/sh
#set eth0 mac address
ifconfig eth0 hw ether A0:11:03:08:00:02
#set eth0 ip
ifconfig eth0 192.168.1.8 up
#add route
route add default gw 192.168.1.1