If I can log in to the guest through the console, I can of course find out what IP DHCP has assigned it. If I configure a static IP I can of course connect to the system there (if it runs services, the firewall allows it, all the usual caveats). Does there happen to be any way to determine from dom0 what IPs are participating in the network and which guests they belong to? (I'm configuring everything as bridged; basically I want to use virtualization to pretend I have a bunch of independent systems visible to the outside.) (I suppose just what the IPs are is enough; the number is small enough I could probe them until I found the system I wanted. Obviously this is for use when I'm having trouble getting in through the console but have some reason to think the rest of the system is alive.) -- David Dyer-Bennet, dd-b at dd-b.net; http://dd-b.net/ Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/ Photos: http://dd-b.net/photography/gallery/ Dragaera: http://dragaera.info
On Thu, Jul 15, 2010 at 9:03 PM, David Dyer-Bennet <dd-b at dd-b.net> wrote:> If I can log in to the guest through the console, I can of course find out > what IP DHCP has assigned it. ?If I configure a static IP I can of course > connect to the system there (if it runs services, the firewall allows it, > all the usual caveats). > > Does there happen to be any way to determine from dom0 what IPs are > participating in the network and which guests they belong to? ?(I'm > configuring everything as bridged; basically I want to use virtualization > to pretend I have a bunch of independent systems visible to the outside.) > > (I suppose just what the IPs are is enough; the number is small enough I > could probe them until I found the system I wanted. ?Obviously this is for > use when I'm having trouble getting in through the console but have some > reason to think the rest of the system is alive.) > -- > David Dyer-Bennet, dd-b at dd-b.net; http://dd-b.net/ > Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/ > Photos: http://dd-b.net/photography/gallery/ > Dragaera: http://dragaera.info > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >grep DHCP /var/log/messages or grep DHCPACK /var/log/messages -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532
On Thu, Jul 15, 2010 at 12:03 PM, David Dyer-Bennet <dd-b at dd-b.net> wrote:> If I can log in to the guest through the console, I can of course find out > what IP DHCP has assigned it. ?If I configure a static IP I can of course > connect to the system there (if it runs services, the firewall allows it, > all the usual caveats). > > Does there happen to be any way to determine from dom0 what IPs are > participating in the network and which guests they belong to? ?(I'm > configuring everything as bridged; basically I want to use virtualization > to pretend I have a bunch of independent systems visible to the outside.)Soon after I started using kvm and created guests with bridged network, I asked the same question as yours. I have not been able to find a clear answer to date. If I'm not mistaken, there is no easy solution as you suspected. The host has no knowledge of the guests' IPs because an outside DHCP server (in my case at home, it is a router/cable modem) provides the IP addresses. So, I've been using the "console" method. Akemi