VMware Communities
mtw999
Contributor
Contributor

Static IP, DHCP Range, etc.

Hello,

Using VM Fusion 5

I reviewed a number of the posts and knowledgebase articles related to setting up static IP, but I'm still running into something. I have one VM that I want to use static IP for and for my others, dynamically assigned IP is fine. So, I added my static IP to dhcpd.conf (below is my config). After adding my host and restarting VMFusion, my host has static IP, that works great. However, networking does not work for any of my hosts with Dynamic IP's. I tried removing Network Adaptor & re-addind, etc. DHCP does not work.

Also, if I comment out MYWIN2K01, I have to reboot my Mac in order for DHCP to start working for those hosts. Am I missing something? I can have both static & dynamic IP's, correct? My hosts using DHCP are Centos.

Mike

host MYWIN2K01 {

    hardware ethernet 00:0C:29:EB:F5:3A;

    fixed-address 172.16.210.64;

}

###### VMNET DHCP Configuration. Start of "DO NOT MODIFY SECTION" #####

# Modification Instructions: This section of the configuration file contains

# information generated by the configuration program. Do not modify this

# section.

# You are free to modify everything else. Also, this section must start

# on a new line

# This file will get backed up with a different name in the same directory

# if this section is edited and you try to configure DHCP again.

# Written at: 03/15/2013 12:07:34

allow unknown-clients;

default-lease-time 1800;                # default is 30 minutes

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

subnet 172.16.210.0 netmask 255.255.255.0 {

        range 172.16.210.128 172.16.210.254;

        option broadcast-address 172.16.210.255;

        option domain-name-servers 172.16.210.2;

        option domain-name localdomain;

        default-lease-time 1800;                # default is 30 minutes

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

        option netbios-name-servers 172.16.210.2;

        option routers 172.16.210.2;

}

host vmnet8 {

        hardware ethernet 00:50:56:C0:00:08;

        fixed-address 172.16.210.1;

        option domain-name-servers 0.0.0.0;

        option domain-name "";

        option routers 0.0.0.0;

}

Reply
0 Kudos
1 Reply
WoodyZ
Immortal
Immortal

First of all you're misusing the term "hosts"as Virtual Machine's are called Guests not Hosts. Smiley Wink

Only edit the file if VMware Fusion is closed and the target VM is shutdown, not suspended! Smiley Wink

If your dhcpd.conf file is truly as you said "(below is my config)" you need to place and static assignments at the end of the file after "####### VMNET DHCP Configuration. End of "DO NOT MODIFY SECTION" #######", not at the top of the file! Smiley Wink

Reply
0 Kudos