How to specify the virtual machine IP address in VMware Fusion DHCP mode

Source: Internet
Author: User
Tags vmware fusion

By default, virtual machines in VMware Fusion are assigned an IP address when the network adapter is set to DHCP (dynamic Assignment), but this IP is often difficult to remember, and if we want to pick a good IP address for a virtual machine, you can do so as follows:

Under command line, enter

sudo vi/library/preferences/vmware\ fusion/vmnet8/dhcpd.conf

This file records the dynamically assigned IP address segment, as well as the IP of a MAC address binding, as modified by the following:

------------------------------------------------------------------------

Allow unknown-clients;

Default-lease-time 1800; # Default is minutes

Max-lease-time 7200; # default is 2 hours

Subnet 192.168.187.0 netmask 255.255.255.0 {

Range 192.168.187.100 192.168.187.110;

Option broadcast-address 192.168.187.255;

Option Domain-name-servers 192.168.187.2;

Option Domain-name Localdomain;

Default-lease-time 1800; # Default is minutes

Max-lease-time 7200; # default is 2 hours

Option Netbios-name-servers 192.168.187.2;

Option routers 192.168.187.2;

}

Host Vmnet8 {

Hardware Ethernet 00:50:56:c0:00:08;

Fixed-address 192.168.187.1;

Option domain-name-servers 0.0.0.0;

Option Domain-name "";

Option routers 0.0.0.0;

}

Host centos.01{

Hardware Ethernet 00:50:56:3c:30:4b;

Fixed-address 192.168.187.101;

}

Host centos.02{

Hardware Ethernet 00:50:56:38:33:7b;

Fixed-address 192.168.187.102;

}

Host centos.03{

Hardware Ethernet 00:0c:29:d3:29:77;

Fixed-address 192.168.187.103;

}

Host centos.04{

Hardware Ethernet 00:50:56:3a:93:0d;

Fixed-address 192.168.187.104;

}

Note the red highlight, and the range row is the dynamically assigned IP address segment. In this way, we have centos.01~04 four machines bound IP (note: The MAC address of the virtual machine, can be found in the network card Configuration advanced option of the virtual machine, or ifconfig/ipconfig view), this file is modified, save exit, and then completely exit Vmare Fusion, restart VMware Fusion, and start the virtual machines, and then you can assign the ideal IP address.

Finally in the Mac main system, as well as the hosts file of each virtual machine to do the next mapping, to postscript up more convenient.

How to specify the virtual machine IP address in VMware Fusion DHCP mode

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.