Hi Yaniv
Please refer to the following .
[root@localhost images]# virsh net-dumpxml dhcp
<network connections='2'>
<name>dhcp</name>
<uuid>066f0d89-67a6-42c8-bdeb-ed9420aaaf4f</uuid>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
</forward>
<bridge name='virbr4' stp='on' delay='0'/>
<mac address='52:54:00:c8:29:9f'/>
<ip address='192.168.123.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.123.2' end='192.168.123.254'/>
</dhcp>
</ip>
<ip family='ipv6' address='2001:db8:ca2:2::1' prefix='64'>
<dhcp>
<range start='2001:db8:ca2:2:1::10' end='2001:db8:ca2:2:1::ff'/>
</dhcp>
</ip>
</network>
[root@localhost images]# virsh dumpxml rhel7.1|grep /interface -B7
<interface type='network'>
<mac address='52:54:00:82:49:b1'/>
<source network='dhcp' bridge='virbr4'/>
<target dev='vnet1'/>
<model type='virtio'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
</interface>
[root@localhost images]# virsh domifaddr rhel7.1 --source lease
Name MAC address Protocol Address
-------------------------------------------------------------------------------
vnet1 52:54:00:82:49:b1 ipv4 192.168.123.171/24
- - ipv6 2001:db8:ca2:2:1::1a/64
[root@localhost images]# cat /var/lib/libvirt/dnsmasq/virbr4.status
[
{
"ip-address": "192.168.123.171",
"mac-address": "52:54:00:82:49:b1",
"expiry-time": 1452594968
},
{
"iaid": "8538545",
"ip-address": "2001:db8:ca2:2:1::1a",
"mac-address": "52:54:00:82:49:b1",
"client-id":
"00:04:ee:53:b7:a8:c7:46:ab:95:d0:86:88:ee:6e:51:a0:2a",
"server-duid": "",
"expiry-time": 1452594971
}
]
Login guest to check ipv6 address . It is the same as the result
returned by "domifaddr"
Thanks
Hongming
On 01/11/2016 03:24 PM, Min Zhan wrote:
@shyu,
Could you help have a look and reply this question?
Regards,
Min Zhan
----- Forwarded Message -----
From: "Yaniv Kaul" <ykaul@xxxxxxxxxx>
To: libvirt-list@xxxxxxxxxx
Sent: Friday, January 8, 2016 5:40:09 PM
Subject: DNS for IPv6 addresses?
Is there a way to define DNS for IPv6 addresses?
Something like:
<dns forwardPlainNames =" yes " >
<host ip =" 192.168.200.4 " >
<hostname> lago_basic_suite_3_6_storage-iscsi </hostname>
</host>
</dns>
Only for IPv6?
I reckon I can't just use an IPv6 address in the 'IP' attribute?
TIA,
Y.
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list