如何在宿主机上查看kvm虚拟机的IP

时间:2023-03-08 15:40:05
# arp -a
? (10.100.0.91) at :3c:ce::f2: [ether] on br0
gateway (10.100.0.1) at 3a:8c::c8:ac:d5 [ether] on br0
? (10.100.0.122) at b4:0b::d4:fc: [ether] on br0
? (10.100.0.123) at :::a7:: [ether] on br0
? (10.100.0.171) at b8::ac:e6:c5: [ether] on br0
? (10.100.0.38) at ac:c3:ee:c0:: [ether] on br0
? (10.100.0.121) at fc:::f9:c0:6b [ether] on br0
? (10.100.0.36) at c0:9f::e1:cf: [ether] on br0
? (10.100.0.174) at :da:e9:e2:e7:8f [ether] on br0
? (10.100.0.220) at :::fb:: [ether] on br0
[root@ profile-pro]# virsh dumpxml c01|grep mac
<partition>/machine</partition>
<type arch='x86_64' machine='pc-i440fx-rhel7.0.0'>hvm</type>
<mac address='51:54:00:fb:81:56'/>
[root@ profile-pro]# ssh 10.100.0.220
root@10.100.0.220's password: