Hi,

For the project I am working on I need to find out the network IP address that is assigned to the domU which has been assigned via DHCP. I could run a command like 'pntadm' on the DHCP server and get the IP address based on the MAC address of the domU. My concern here is that I may not have control
over the DHCP server on that subnet.  So the two alternate approach are:
1)Access the domU via virsh console, run ifconfig to grep the IP address of the primary interface. However I need to do this via a script so would have to be able to run virsh console <domain name> | <command> and the return this information back on to dom0. Is this possible to do or is there an easier way?

2) The other alternate was to run a ARP or RARP to get the MAC address to IP mapping.

If anyone has a better solution or suggestion the please let me know.


Thanks,

Sagun

_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to