Connection settings and SSH installation records of ubuntu virtual machines in pppoe Mode

Source: Internet
Author: User

 

The Ubuntu virtual machine is installed on the computer because of the need for Linux. However, because the China Unicom pppoe dial-dial mode is used in the home, the VM cannot access the internet, the related settings are recorded as follows:

1. pppoe Internet access settings:
Reference Web site http://wenku.baidu.com/view/9e2fe6d4c1c708a1284a4449.html

1. First enable the VM Nic net8:

2. Set the VM Nic to vmnet8 (NAT): Select vmnet NAT under custom specific virtual network.

3. Share the network adapter (local connection) that can access the Internet in the PC: You need to enable other network users to connect through the intenet connection of the computer, and select vmnet8.

4. Set the default gateway of the vmnet8 Nic to the IP address of the NIC that the local PC can access.

5. Set the NIC address in the VM to an IP address in the CIDR Block corresponding to the vmnet8 Nic. The default gateway is the IP address corresponding to the vmnet8 Nic, and configure DNS.

 
Ifconfig eth0 192.168.0.123 netmask 255.255.255.0
 
Route add default GW 192.168.0.1

Set DNS:

 
In/etc/resolv. conf

 
Add

 
Nameserver 202.102.134.68

6. Restart the VM.

Ii. Install sshd and GCC


Sudo apt-Get install OpenSSH-Server

Sudo Apt-GetInstallBuild-essential

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.