Find the IP address of a machine I just booted

I am booting VMs via qemu (no libvirt) and sometimes they don't tell me what IP address they got when booted.  To figure it out, considering I know the IP address, I can query the network via the Address Resolution Protocol (ARP)

I know they get address in sequence, so:


ayoung@sut11sys-r112:~/devel/ampvirt$ arp -n | grep -i "52:54:00:70:0c:"
10.76.112.154            ether   52:54:00:70:0c:02   C                     virbr0
10.76.112.153            ether   52:54:00:70:0c:04   C                     virbr0
10.76.112.155            ether   52:54:00:70:0c:03   C                     virbr0

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.