Vmnet8 settings for MacOS version of VMware Fusion 8

Source: Internet
Author: User
Tags ftp commands time 0 vmware fusion

    • Requirements: Virtual machine using NAT mode, automatically get 10.0.0.0/24 IP address, gateway is 10.0.0.254, virtual machine can ping www.baidu.com
    • Science: Nat mode using VMNET8 Nic
      • NAT (Network address translation), Nat mode is a relatively simple way to implement virtual machine access. Simply understood, a NAT mode virtual machine is the Internet and exchange of data via a host (physical computer).
      • In NAT mode, the network card of the virtual machine is connected to the host's VMnet8. At this point the system's VMware NAT service serves as a router that sends the virtual machine to the VMNET8 package for address translation and sends it to the actual network, then addresses the packets returned on the actual network and sends them to the virtual machine via VMNET8. VMware DHCP Service is responsible for assigning IP addresses to virtual machines.
      • NAT network is particularly suitable for home computer directly connected network cable situation, of course, the Office LAN environment is also suitable, its advantage is not with other physical host IP conflicts, and in the absence of a routed environment can also be connected through SSH NAT Virtual machine learning, change the network environment virtual machine IP, etc. unaffected, This is the recommended choice for older boys.
      • Because the VMware Fusion 8 software under the MacOS platform does not have a "Virtual Network Editor" feature, the NAT mode configuration must be implemented by modifying two configuration files
        • Virtual network card Editor configuration file
          /library/preferences/vmware\ fusion/networking
        • "Vmnet8 default gateway" configuration file
          /library/preferences/vmware\ fusion/vmnet8/nat.conf
    • Fix the problem: modify two configuration files under root identity
      • 0th step: Switch to root status
        • $ sudo su
      • The first step: Modify the Virtual network Card editor configuration file
        • $ cp/library/preferences/vmware\ Fusion/networking{,.bak}
          # Back up the source files to avoid configuration file corruption after the wrong configuration
        • $ vim/library/preferences/vmware\ fusion/networking
          • The default configuration is as follows (state before modification)
            version=1,0
            Answer vnet_1_dhcp Yes
            answer Vnet_1_dhcp_cfg_hash Bbdd0cb0c52a2fff44945811ce493b7216fa3bae
            answer Vnet_1_hostonly_netmask 255.255.255.0
            answer vnet_1_hostonly_subnet 192.168.38.0
            Answer Vnet_1_virtual_adapter Yes
            Answer Vnet_2_virtual_adapter No
            Answer vnet_8_dhcp Yes
            answer Vnet_8_dhcp_cfg_hash 02cb138b4747cca0e3a6f8274e3c26a790519b77
            answer Vnet_8_hostonly_netmask 255.255.255.0
            answer vnet_8_hostonly_subnet 192.168.78.0
            Answer Vnet_8_nat Yes
            Answer Vnet_8_virtual_adapter Yes
            add_bridge_mapping En0 2
          • Change the address after answer Vnet_8_hostonly_subnet to 10.0.0.0
          • : Wq Save Exit
      • Step Two: Modify the "vmnet8 default gateway" configuration file
        • Cp/library/preferences/vmware\ Fusion/vmnet8/nat.conf{,.bak}
          # Back up the source files to avoid configuration file corruption after the wrong configuration
        • $ vim/library/preferences/vmware\ fusion/vmnet8/nat.conf
          • The default configuration is as follows (state before modification)
            # VMware NAT configuration file
            [Host]
            # NAT Gateway address
            IP = 192.168.78.2
            netmask = 255.255.255.0
            # VMnet Device if not specified in command line
            device = Vmnet8
            # Allow PORT/EPRT FTP commands (they need incoming TCP stream ...)
            activeftp = 1
            # allows the source to has any OUI. Turn the OUI
            # in the MAC address of your virtual machines.
            Allowanyoui = 1
            # Controls if (TCP) connections should is reset when the adapter they is
            # bound to goes down
            Resetconnectiononlinkdown = 1
            # Controls if (TCP) connection should is reset when guest packet ' s destination
            # is NAT ' s IP address
            resetconnectionondestlocalhost = 1
            # Controls If enable Nat IPv6
            natip6enable = 0
            # Controls If enable Nat IPv6
            Natip6prefix = fd15:4ba5:5a2b:1008::/64
            [TCP]
            # Value of timeout in TCP time_wait state, in seconds
            timewaittimeout =
            [UDP]
            # Timeout in seconds. dynamically-created UDP mappings would purged if
            # Idle for this duration of time 0 = no timeout, default = $; Real
            # value might is up to 100% longer
            Timeout =
            [NetBIOS]
            # Timeout for NBNS queries.
            nbnstimeout = 2
            # Number of retries for each NBNS query.
            nbnsretries = 3
            # Timeout for NBDs queries.
            nbdstimeout = 3
            [INCOMINGTCP]
            # Use these with Care-anyone can enter into your VM through these ...
            # The format and example are as follows:
            #<external Port number> = <vm ' s IP address>:<vm ' s port number>
            #8080 = 172.16.3.128:80
            [INCOMINGUDP]
            # UDP Port Forwarding Example
            #6000 = 172.16.3.0:6001
          • (Find the next line in the # NAT gateway address) Change the address of IP = 192.168.78.2 to 10.0.0.254
          • : Wq Save Exit
      • The third step: Shut down the running virtual machine, then exit the VMware Fusion software, then reopen the VMware Fusion software, the normal start of the virtual machine can be
      • Fourth step: Remember to log out of root status
        • $ exit
          # can also press command+r two keys, effect equivalent

Vmnet8 settings for MacOS version of VMware Fusion 8

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.