Ubuntu19静态IP配置

Ubuntu19静态IP配置

vim /etc/network/interfaces

auto eno1

iface eno1 inet static

    address 192.168.0.101

    netmask 255.255.255.0

    gateway 192.168.0.1

    nameserver 192.168.0.1

    nameserver 8.8.8.8

注意格式:


然后进行重启服务

service networking restart

远程连接有问题时:

sudo apt-get install openssh-server

sudo service ssh restart

你可能感兴趣的:(Ubuntu19静态IP配置)