美文网首页
ubuntu16.04设置静态ip

ubuntu16.04设置静态ip

作者: 中庸逍遥 | 来源:发表于2019-06-11 11:17 被阅读0次

在/etc/network/interfaces.d/目录下创建eth0,eth1文件

内容分别为

auto eth0

    iface eth0 inet static

        address 192.168.18.36

        netmask 255.255.255.0

        gateway 192.168.18.1

auto eth1

    iface eth1 inet static

        address 192.168.18.37

        netmask 255.255.255.0

        gateway 192.168.18.1

重启服务

sudo service networking stop

sudo service networking start

相关文章

网友评论

      本文标题:ubuntu16.04设置静态ip

      本文链接:https://www.haomeiwen.com/subject/xwpaoqtx.html