步骤:
1.vi打开/etc/network/interfaces
2.手动添加static ip address
3.:wq保存退出
4.重启网络 service network-manager restart(1.service network restart失败,不生效 2./etc/init.d/networking restart不生效)
5.重新启动系统,检查IP address