LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 11-29-2010, 02:25 AM   #1
knottygal
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Rep: Reputation: 0
Debian VM unable to get IP address from DHCP


I have a Debian VM on Windows that is not getting an IP address assigned by the DHCP. I tried, ifdown eth0 and then ifup eth0 and still no IP address. my interfaces file looks like this:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface

auto lo

iface lo inet loopback

# The primary network interface

allow-hotplug eth0

iface eth0 inet dhcp

I am totally new to VM and linux. I don't know what to do about this issue. any help will be appreciated.

-Jocelyn
 
Old 11-29-2010, 02:43 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964
OK, you've not said anything about what kind of VM this is, or what networking model is being used. Where is the DHCP service for the machine? Are you expecting the virtualization system to provide this? If so, is it configured?
 
Old 11-29-2010, 03:11 AM   #3
knottygal
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you Chris for responding. This VM file was given to me by the customer as a .vmx and .vmdk file. Basically, I need to find out the IP address of the VM for my testing purposes and when I ran ifconfig -a, I realised that there is no ip address assigned to eth0. Its a vmware VM and I am using VM Player to play it.The ip address is supposed to be assigned by my network's DHCP.

-Jocelyn
 
Old 11-29-2010, 03:18 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964
ok, well if I remember right vmplayer uses nat networking, so it's not on the same network as the phsyical network your box is connected to. You can probably change that in the vmware player settings though.
 
Old 11-29-2010, 04:21 AM   #5
knottygal
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
ok, well if I remember right vmplayer uses nat networking, so it's not on the same network as the phsyical network your box is connected to. You can probably change that in the vmware player settings though.
That did it.. I changed the network adapter to NAT in the VM settings. thank you so much for the help,Chris.

-Jocelyn
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian/Squeeze fails to get DHCP address on startup garydale Linux - Networking 5 03-04-2010 12:10 PM
Unable to resolve address with DHCP enabled DaJohnson Slackware 4 09-14-2007 01:08 PM
Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address blackfish Linux - Server 3 08-17-2007 12:54 AM
Realtek 8139 network not working - DHCP unable to get IP address duryodhan Slackware 18 02-03-2007 08:28 AM
unable to obtain ip address from dhcp server (Fedora Core 1) zero79 Linux - Hardware 5 11-15-2003 01:42 PM


All times are GMT -5. The time now is 01:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration