Linux network settings 2 -- Linux and Windows network interconnection settings in virtual machines

Source: Internet
Author: User
Linux network settings 2 & mdash; & mdash, choose either of the two to connect to the VM. choose VMnet8 here. Through... linux network settings 2-Linux and Windows network interconnection settings in virtual machines 1. after the IP address is viewed in ipconfig in windows, the virtual machine is installed, and the network neighbors are added with VMnet8 and VMnet1 adapters, choose either of the two to connect to the VM. choose VMnet8 here. If VMnet8 is found to be 192.168.11.11 through ipconfig, you must set the IP address of the VM to make it in the same network segment, such as 192.168.11.12. 2. in Linux, you must first set the network bridging mode of the virtual machine. choose virtual machine> Settings> Custom Virtual Network> VMnet8. Method 1 1. log on with the root user and enter the setup command ② select Network configuration to enter the Configure TCP/IP interface ③ The first []. if the cursor is here, press the space to display the * sign, automatically allocate IP ④ if you want to manually assign an IP, press the tab key, enter the IP address, and press the tab key all the time. the following content is automatically filled in. Select OK ⑤ and return to the command interface. enter/etc/rc. d/init. d/network restart to take effect. Method 2 ① enter the command ifconfig eth0 X. x. x. x, set the Nic ② enter the command ifconfig eth0 network X. x. x. x, set subnet mask ③ use the default settings for the broadcast address and dns so that the network configuration will take effect immediately, but will take effect temporarily. Once restarted, the error message is invalid. Method 3 ① vi/etc/sysconfig/network-scripts/ifcfg-eth0, open the file and modify ② run/etc/rc. d/init. d/network restart. this method takes effect permanently. 3. verify that you can ping 192.168.11.12 on windows or 192.168.11.11 on Linux.
Related Article

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.