Ubuntu 19 靜態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

成功!!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM