靜態ip不能鏈接外網ubuntu
由於老的虛擬機有ubuntu桌面 以及一些磁盤的問題, 想 遷移 本身的虛擬機,連帶着把ip也遷移,(公司有些界面是 經過個人虛擬機ip訪問的。)oop
編輯orm
root@ubuntu:/home/ubuntu# cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 168.192.10.72 netmask 255.255.255.0 gateway 168.192.0.1
而後重啓便可ip