DHCP in VMWare

Hello,

I just installed openSUSE 11 on VMWare 6.0.3.

I am unable to get DHCP working with this VM.

I’m currently running bridged networking and I’m lost.

I’m new to Linux as a whole and I’m sure running it in a VM complicates things further.

I searched this forum and found a thread about some files named with the MAC address DHCP was trying to use, but when I go into /etc/sysconfig/network I do not see any such files. I’ve poked around a bit in the files but don’t see anything related to the MAC address. Is it because I’m using 11 and not 10.x?

Can someone help me please or point me somewhere that has the information I need?

Thanks!

EDIT: I do notice that when I run ifconfig the HWaddr is different from the one in my host machine. Is this the reason why?

Hi,

If you are running Open Suse as a guest on a bridged virtual network then its virtual network interface will need both things: a different ip address in the IP range corresponding to the subnet where the host is located and a MAC address different than that of the host that will be provided by Vmware when creating/installing the guest.

Assuming your host network traffic goes to the internet via the physical nic without any problem and that a DHCP server is available in your network, you only have to log in to Open Suse and, as root, configure the guest nic to get its IP stack data using Yast.

  1. Log in to Open Suse

  2. Start a root session (su - root)

  3. Run Yast:

    Yast -> Network Devices -> Network card

    Yast will detect your nic and display a window with several panels to configure it.

You go to Overview, select your nic and DHCP mode.
If your DHCP server is configured correctly, it will provide all the data needed: ip address, dns servers addresses, and default geteway.

That’s will be enough to make your guest nic get all the IP stack data needed to connect to the Internet.

Regards.

Sorry for the late reply, I was gone for part of the weekend.

I went to Network Devices > Network Settings and it does see my NIC, which is also set to DHCP but I’m still not getting an IP.

My host machine has no problem getting an IP so I know that DHCP is working.

I am running Windows Vista and I did make sure that the firewall was turned off but still no luck!

Is there anything else you can think of that I can try?