虛擬機器Ubuntu16.04網路設定等其他常見設定,虛擬機器ubuntu16.04

來源:互聯網
上載者:User

虛擬機器Ubuntu16.04網路設定等其他常見設定,虛擬機器ubuntu16.04

在虛擬機器中新安裝的Ubuntu16.04預設連不上網的,導致基礎類庫軟體無法更新,而且putty、FileZilla等工具也無法串連Ubuntu。

一、首先要設定宿主機器的網路

 

設定虛擬網路VMnet8

設定本地串連與虛擬網路VMnet8共用

 

二、安裝好的虛擬機器網路調整為NAT模式。進入Ubuntu系統查看網卡名稱,然後調整網路設定。

查看網卡名稱:ifconfig

 

由於預設vi編輯器有問題,比如上下左右變成ABCD,此問題下面會解決。所以暫時用gedit命令調整網路設定,

 設定DNS,

 

重啟網路服務

測試網路是否可用

 三、源調整

 1 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted 2 deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties 3 deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted 4 deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties 5 deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted 6 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties 7 deb http://mirrors.aliyun.com/ubuntu/ xenial universe 8 deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe 9 deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse10 deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse11 deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse12 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties13 deb http://archive.canonical.com/ubuntu xenial partner14 deb-src http://archive.canonical.com/ubuntu xenial partner15 deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted16 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties17 deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe18 deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
View Code

四、上下左右變成ABCD問題,卸載vi重新安裝即可

五、安裝ssh服務,方便使用putty遠程登入Ubuntu

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.