This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring Boot in Practice and have Somnath Musib on-line!
See this thread for details.
Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

how to find ip address

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I created one virtual machine(using like xp os).I was power on the machine from it's server by following command

"xm create /mnt/1/vm.hvm"

the machine was powered on.In the above command /mnt/1/vm.hvm is the path of the virtual machine in server.
Now my question is before go to the console how to find ip address of the virtual machine?
 
Saloon Keeper
Posts: 25850
184
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A server can have multiple NICs and therefore can have multiple IP addresses. Or, for that matter, you can configure a NIC to respond to multiple IP addresses, and I have machines that do so.

The IP addresses are defined via the virtual NIC configuration in the /mnt/1/vm.hvm config file. I think if you don't explicitly specify one, Xen may create a single NIC and expect the IP address to be supplied by DHCP. In that case, the IP address will be variable, and the easiest way in a Linux VM to find out what it is is to start the VM (since it won't even have an IP address if it's not running), "xm console" to connect to the started VM's console, log in and issue the /sbin/ifconfig command to see what address was assigned by DHCP. You could also do this from outside, but that requires being able to look at the DHCP log and figure out which lease corresponds to the VM.

For a Windows VM the process is the same except that the command-line way to determine your IP address is by using the "IPCONFIG" command.
 
rama ilango
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i know the mac address of all machines in a network. how to find ip address of all the machines using mac.
i am using rarp and dhcp to find ip address.but it shows commands not found.
how can i access the rarp or dhcp?. or
any other way to find ip address from mac in a network?
 
Tim Holloway
Saloon Keeper
Posts: 25850
184
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

rama ilango wrote:i know the mac address of all machines in a network. how to find ip address of all the machines using mac.
i am using rarp and dhcp to find ip address.but it shows commands not found.
how can i access the rarp or dhcp?. or
any other way to find ip address from mac in a network?



You asked that as a separate question in a new message thread, and I answered it there. But please don't do that. If you ask a question more than once, it confuses people. You get multiple answer threads which don't know what the others are saying.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic