Linux network configuration in VMware

Source: Internet
Author: User

Today, we finally completed the Linux network configuration installed in VMware more than 10 days ago.
When I was just using a virtual machine, I was fascinated by its magical virtual functions, because I always wanted to install linux on my computer, but because it is not compatible with windows, we are afraid that the original system will be damaged upon installation. But in the virtual machine can really run well, I think it is very good. However, if the powerful network functions of Linux are not learned, I am afraid I cannot really learn Linux. So I found a lot of materials, but these materials are incomplete. After all, it is the best way to learn them.
In this process, the followingArticleFor more information, see http://snapteam.blogchina.com/2320226.html.

Now let's configure the Linux network. Here we use Windows as the host and Linux as the guest.

1. After installing Linux in VMware, go to Windows XP to view all network connections. In addition to the original Nic, you should find that there are more vmnet1 and vmnet8. If you have read the instruction manual, you should know that vmnet1 is the hostonly interface, while vmnet8 is the NAT network interface. Here, we neither want to use the DHCP provided by VMware nor its Nat. Therefore, we only need to set vmnet1.

2. We will use the hostonly network interface to connect the Virtual Machine and host, and then use the Internet Connection Sharing provided in Windows XP/2000 (actually a simple route Nat) to allow the VM to access the Internet through the original Nic. Note: In the NIC settings of the VM, select host-only: a private network shared with the host.

3. view the attributes of your Nic connected to the Internet, select the "advanced" label, and set it to allow sharing (if you have enabled vmnet1, if not, right-click vmnet1, select enable)

4. Check the attributes of your vmnet1 instance and the TCP/IP Settings. You can see that the instance has been automatically set to 192.168.0.1/255.255.255.0. Other items are not required.

5. the settings in windows are completed and transferred to the virtual machine running Linux.
Press the Red Hat icon> system Settings> network, click Configure, and then double-click the device on the devices tab.
Set the IP address of your eth0 to static (if static IP address is not selected during installation ).
IP Address: 192.168.0.2 (or another address on this network segment)
Netmask (subnet mask): 255.255.255.0
Default Gateway (Default Gateway): 192.168.0.1
Then, on the DNS tab,
Primary DNS: enter your own DNS. Leave other blank.
Save settings. If you have not set the Host Name: Find the network in/etc/sysconfig and edit the hostname. However, in/etc
Add the hosts in the directory:
192.168.0.2 yourhostname
Open the terminal and enter the following command to restart the service:
/Sbin/service network restart

6. Open your browser and start a wonderful network journey.

In addition, use fedora in VMware becauseProgramThe default function key CTRL + ALT conflicts with the function keys such as CTRL + ALT + F5, F6, And F7 in Linux, leading to unavailability in Linux. Therefore, you must change the function key in the Virtual Machine Software edit-> preferences. This made me feel depressed for a lot of time.

 

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.