vi /etc/init.d/rcS 在其中加入 ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up 就可以了 转载于:https://www.cnblogs.com/wang-le/p/3278839.html