您的位置:首页 > 其它

VirtualBox ubuntu server 16.04配置静态IP

2017-09-14 15:14 525 查看

VirtualBox ubuntu server 16.04配置静态IP

走了很多弯路,配了好久,才成功。写下了,备忘。

1.虚拟机上网模式改成桥接网卡;

2.使用ifconfig命令查看网卡名字

除lo外的就是你要配置的网卡名字



3.在 /etc/network/interfaces配置静态ip

vim /etc/network/interfaces
配置参考列子:



4.重启网络

/etc/init.d/networking restart

5.如果重启失败,使用systemctl查看报错信息

systemctl status networking
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: