一.静态IP root用户(不是root用户没有权限) ifconfig vim /etc/network/interfaces 添加如下命令 关闭和重启网关 ifconfig eth0 down ifconfig eth0 up