Ubuntu 19 static IP configuration

Ubuntu19 configure a static IP

 

vim /etc/network/interfaces

car 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

*** NOTE format

Save and exit and restart service: service networking restart

Remote connection when there is a problem:

sudo apt-get install openssh-server

sudo service ssh restart

success! !

Guess you like

Origin www.cnblogs.com/ruochenjun/p/11907185.html