Ubuntu16.04修改IP

ssh登录到服务。编辑网卡配置文件。

vim /etc/network/interfaces

 

先关闭DPCP,将iface eth0 inet dhcp前面加上#号。

设置IP地址、掩码、网关

address=****
netmask=****
gateway=****

修改完成后,保存退出。重启reboot系统即可。

posted @   xjournal  阅读(638)  评论(0)    收藏  举报
点击右上角即可分享
微信分享提示