ubuntu 修改静态IP

    xiaoxiao2021-03-25  186

    auto enp2s0 iface enp2s0 inet static address 192.168.1.111 netmask 255.255.255.0 gateway 192.168.1.1

    重启需要下面两个命令,restart不行,/etc/init.d/下的脚本也不行

    sudo service networking stop

    sudo service networking start
    转载请注明原文地址: https://ju.6miu.com/read-4893.html

    最新回复(0)