Virtual Machine Network Configuration (Bridge Mode)

*experiment platform:
            PC system-windows10;
           virtual machine version-VMware Workstation Pro;
           ubuntu version-17.04
           development board-FS210 (arm8)
*Experimental steps:
 1. First, Baidu understands the three network modes of virtual machines:
  Conclusion: development boards and virtual machines are only Can ping through bridge mode!
 2. Set the virtual machine network mode to bridge mode:
  you don't need to modify a little thing, just use the default configuration of the virtual machine!
 3. After the PC is wirelessly connected to the network, in the network adapter, check the host's ip address, gateway, DNS and other information (mine is as follows):
  IPv4 address 192.168.1.129 (host ip)
  ......
  IPv4 default gateway 192.168 .1.1
  ......
  IPv4DNS server 211.82.8.5
  ...... 
 4. View virtual machine network configuration:
  $ifconfig (without this command use apt-get tool to download net-tools)
   ens33: ..... .(note ens33 for defining gateway)
                               …
                               ......  lo:                                ......
   (Gateway for each host)
                               ......  5. Configure the virtual machine network environment according to the relevant information of process 3 (add The contents are as follows):   $sudo vim /etc/network/interfaces    auto ens33 (existing gateway)    iface ens33 inet static    address 192.168.1.131 (virtual machine ip, make sure the first three digits are the same as the host ip, so that you can access the Internet!)    netmask 255.255.255.0 (mask)     gateway 192.168.1.1 (gateway IP)    network 192.168.1.    dns-nameservers 211.82.8.5  6. Restart the service:   $sudo /etc/init.d/networking restart  7. Use after restarting the service Ifconfig view is still not modified, ubuntu must be restarted! 













  

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326805929&siteId=291194637