Find your vm's IP with virsh and arp

Basically use virsh commands to get the VMs' MAC address first and then use arp to get the IPs.

$ virsh domiflist $DOM
$ arp -i $BRIDGE

For example:

$ virsh list --all
 Id    Name                           State
----------------------------------------------------
 2     suse_13_2                      running

$ virsh domiflist suse_13_2
Interface  Type       Source     Model       MAC
-------------------------------------------------------
vnet0      network    default    rtl8139     52:54:00:d2:cd:5d

$ arp -i virbr0
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.122.22                   (incomplete)                              virbr0
192.168.122.222          ether   52:54:00:d2:cd:5d   C                     virbr0
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc閱讀 2,993評論 0 0
  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,089評論 0 23
  • 又到了下班的時間,又是一個人在路上走著。拿出手機(jī)看了微信,沒有人找,打開朋友圈,看到一好友發(fā)了跟男朋友出去玩的恩愛...
    許諾a閱讀 400評論 2 0
  • 看著你睡熟的模樣,我不禁莞爾一笑。輕微的呼吸,長長的睫毛會微微動一下,嘴角還帶著淺淺的笑意。我的小寶貝,睡得真香...
    楊家有女閱讀 416評論 0 0
  • 杭州雄邁召回產(chǎn)品 上周五美國DNS服務(wù)商受到攻擊,網(wǎng)絡(luò)癱瘓,網(wǎng)絡(luò)攝像頭等設(shè)備為主要攻擊來源之一。很多消費者保留這些...
    coffeecoder閱讀 341評論 1 0

友情鏈接更多精彩內(nèi)容