2 thoughts on “What is ETH0 about the virtual machine? How does the virtual machine go online”

  1. VM virtual machine configuration Internet
    The first case:
    The host uses PPPOE dial -up Internet
    Methods: NAT Method
    1, first turn off the operating system in the virtual machine, return to the virtual The main interface of the machine
    double -click the "Ethernet" at the top right of the main interface, pop up the "" dialog box, select "NAT"
    2. Start the virtual machine operating system, set the IP as dynamic acquisition, that is, obtain it through DHCP to obtain it through DHCP Essence
    The operating system in the virtual machine uses the host's IP, the host can access the Internet, so the virtual machine can also.
    Method two: Host-only method
    1. First turn off the operating system in the virtual machine, return to the main interface of the virtual machine
    double-click the "ethernet" at the top right of the main interface, and the "" pops up "" Dialog box, select "Host -only"
    2. Right -click the connection of dial -up dial -up Internet, open the PPPOE connection attribute, select "Advanced", select "Allow other network users to connect to the Internet of this computer" r r r r r r n In the "Family Network" drop -down box, select ""
    The IP of the virtual network card will automatically become 192.168.0.1
    This at this time ping192.168.0.1 can pass through.
    3. Enter the VMware, start the Linux operating system
    The use of the netconfig command
    to set the IP to 192.168.0.2 (with the virtual network card in the same network segment)
    The gateway is 192.168. 0.1 The IP address of the virtual network card
    DNS is set to the DNS of ISP, such as 61.147.37.1
    4. Restart the network:
    #
    At this time, as long as the host dials the Internet, the virtual virtual The system of the machine can access the Internet, and there is no need to dial
    Method three: Bridge method
    This method, the virtual machine is closest to a real machine
    1. Turn off the operation of the virtual machine first System, go back to the main interface of the virtual machine
    Double -click the "Ethernet" at the top right of the main interface, pop up the "" dialog box, select "Bridge"
    2. A proxy of installing Sygate or Wingate in the host host Server
    3. Set the proxy server of the virtual machine as the host's IP
    The second case:
    In in the unit's local area network
    "Ethernet" to select the "Bridge" method
    When this method is used, the virtual machine is the same as a real machine. At this time, the IP is set to another available IP in the LAN to
    The address of the LAN gateway server (or the address of the router)
    dns: Set the DNS server address of ISP

  2. There are two ways to access the Internet:
    1, the bridge method is the virtual machine and the physical computer virtual connection to a switch. Virtual machines and physical machines must be set up to access the Internet.

    2, nat mode (selected in the connection method of the final picture). As a gateway, the virtual machine is hung under the physical machine. If the virtual machine is Windows, you can access the Internet.

Leave a Comment

Shopping Cart