[Linux] [VMWare] Study Notes install Linux system-network configuration, vmwarelinux

Source: Internet
Author: User

[Linux] [VMWare] Study Notes install Linux system-network configuration, vmwarelinux

Recently, I started to toss about Linux. I Installed VMWare and Centos on the local machine. After the installation, the OS in the virtual machine can access the Internet, but the SecureCRT cannot connect to the virtual machine. I started to toss about the network.

After vmware is installed, two NICs (vmnet1 and vmnet8) and intermediate NICs are automatically added. The structure of the entire machine can be abstracted as: Virtual Machine System (vmnet0) -- (vmnet1 vmnet8), intermediate Nic) -- actual system Nic

How to set the NIC of vmware:

1. Bridged (bridging) Mode
In this way,The IP address of the virtual system can be set to the same network segment as the local system. The virtual machine is equivalent to an independent machine in the network.And plug in together with the local machine on a hub (router), other machines in the network can access virtual machines, virtual machines can also access other machines in the network, of course, the two-way access with the local system is not a problem. in this case, vmware simulates a bridge function,Only use vmnet1 Nic, Vmnet8.

2. NAT (Network Address Translation)
This method also works.Two-way access between the local system and virtual system is achieved, but other machines in the network cannot access the virtual machine. The virtual system can access other machines in the network through the local system using the NAT protocol.
Now vmware is simulatingVro with DHCP Function,At this time, we need to use vmnet8.

3. host-only mode
This methodOnly network communication between virtual machines and hosts can be performed.,Other machines in the network cannot access the virtual system or other machines.

4. not use method
This methodNo networkThe Virtual System is a single machine.

 

After understanding the above methods, it is easy to set up and understand a lot:

1. select the Bridged mode: Generally, the network is automatically set after this mode is selected. If you want to set it yourself, you can also set it manually, we know that the virtual machine interacts with the local machine using the vmnet1 virtual network card, so you only need to set the IP address of the Linux system on the Virtual Machine and the vmnet1 network card in the same network segment, for example:

Http://blog.163.com/yuanchunyin@126/blog/static/55384535201031325857745/

Http://wenku.baidu.com/link? Url = K_nKlCqLL7VN0iWR8aUZ7lNLbOTZHFc-DoTEofGmxj9aN3obzo0_9LBpp5yl3k5YuP5N9a8u4T8hpvq_3lUKKB0ga2nF-0KtH6Ek2i8ZumO

Http://blog.csdn.net/truelie/article/details/1354508

Http://bbs.chinaunix.net/thread-374483-1-1.html

Http://bbs.chinaunix.net/thread-376768-1-1.html


After installing Linux with VMware, how can I configure the network to access the Internet? (Sharding)

1. First, set the NIC in the lower-right corner of the VM to: bridging mode! Click Edit on the title bar of the VM-virtual network settings-Automatic bridging! Mark the check mark below! Or select host Virtual Network ing. The first option is VM0 drop-down. Select the network card of your real machine! Click the following application. OK!
2. Start the LINUX System of the virtual machine. In window mode! Click the main menu in the lower left corner-system settings-network. Enter Network Configuration! There is a virtual network card, click Edit: You can choose to automatically obtain the ip address. You can also manually set static IP addresses. The static IP address must be in the same network segment as the real machine, and the gateway must be the same! Then, OK! Go back to the network configuration page, click DNS, and set the primary DNS to point to, which is the same as the real machine's DNS, which is generally the gateway's IP address. Click host-edit ip next to it. The IP address of the front-edge DNS is the same. It is generally the gateway IP address! (Gateway of the real machine) OK. Last activated !!
Open your browser and try it !! Www. BAIDU. COM first!
3. Right-click Create Terminal Mode: netconfig
Included in the set IP interface, set and restart the network to connect to the service
Network restart
Another configuration method is: ifconfig eth0 + ip
Then ifup eth0 starts!
QQ: 343331086

I installed a Linux system with VMware. I don't know how to set up the network or access the internet.

First, you need to set the Virtual Machine network connection method to bridging, and then configure the Linux OS IP address, there are at least three methods:
1. The Ifconfig command configures the network, but the network needs to be reconfigured every time the machine is restarted.
Ifconfig eth0 192.168.0.3 netmask 255.255.255.0
You do not need to switch to the root user if you have insufficient permissions.
Use the command to change the IP address and netmask

2. Run the Setup command to configure the network.
# Setup

3. Vim edit document and configure the network
Vim/etc/sysconfig/network-scripts/ifcft-eth0




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.