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