PPPOE模式下ubuntu虛擬機器上網設定及SSH安裝記錄

來源:互聯網
上載者:User

 

        由於需要使用linux,故在電腦上裝了ubuntu虛擬機器,但因家中使用了聯通的PPPOE撥號模式,因此虛擬機器無法上網,故無法更新安裝一些需要的軟體,遂找相關設定方法記錄如下:

 一、PPPOE下上網設定:
       參考網址 http://wenku.baidu.com/view/9e2fe6d4c1c708a1284a4449.html

 1,首先將VM的網卡net8啟用:

    2,然後將VM的網卡設定為VMnet8(NAT):custom specific virtual network 下選擇vmnet nat

    3,將PC的可以上網的網卡(本地串連)共用:要勾上允許其他網路使用者通過此電腦的intenet串連來串連,並選擇VMnet8。

    4,設定VMnet8網卡的預設閘道為本地PC可以上網的網卡的IP地址:網段可以不在一個

    5,虛擬機器中設定VM中網卡的地址為VMnet8網卡對應網段中的某個IP,預設閘道為VMnet8網卡所對應的IP地址,並配置好DNS。

      ifconfig eth0 192.168.0.123 netmask 255.255.255.0
      route add default gw 192.168.0.1

  設定DNS:

  in /etc/resolv.conf

  添加

  nameserver 202.102.134.68

    6,重啟虛擬機器即可。

二、安裝SSHD 和gcc

   
sudo apt-get install openssh-server

        sudo apt-get  install  build-essential

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.