Development Board-PC Machine (host)-network communication between virtual machines (VMS) How to set up and the problems needing attention

Source: Internet
Author: User

1. Do not use router switches

Hardware connection:
Connecting the Development Board to the PC using a network cable

Serial cable connects the PC and the Development Board

Use the command:

Ifconfig-a

Serial port control to view the network configuration of the Development Board

Route-n

Serial Console view gateway settings for the Development Board


If the Development Board:

ip:192.168.1.8

subnet_mask:255.255.248.0

PC corresponding configuration: (the same subnet can be)

ip:192.168.1.10

subnet_mask:255.255.248.0

The VM uses the corresponding configuration of the bridging mode: (same subnet is available)

ip:192.168.1.11

subnet_mask:255.255.248.0


2. Using the switch

Use two network cable to connect PC with switcher, development Board and Switcher, others are same as 1


3. Using Routers and switches

Hardware connection, connect the router (how to connect, looks like a lot of ways ah ...) )

Set the respective default gateway as the IP address of the router, that is: 192.168.1.1, the remaining configuration is the same as in 2


Change the DNS address of the VM

sudo gedit/etc/resolv.conf

NameServer xxxx.xxxx.xxxx.xxxx (replace xxxx.xxxx.xxxx.xxxxwith a valid DNS address)

Note: Finally, sometimes you have to turn off the firewall

Development Board-PC Machine (host)-network communication between virtual machines (VMS) How to set up and the problems needing attention

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.