- ifconfig查看网卡名
- 修改文件将ip地址设置为192.168.50.177
auto eno1
iface eno1 inet static
address 192.168.50.177
netmask 255.255.255.0
gateway 192.168.50.1
dns-nameservers 192.168.50.1 - 重启网络
/etc/init.d/networking restart
ubuntu 16.04设置固定IP地址
猜你喜欢
转载自blog.csdn.net/sunny_xiaot/article/details/98746346
今日推荐
周排行