<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#003333" bgcolor="#FFFFFF">
Is it possible to configure 2 virtual nics in the same ip range ? <br>
<br>
Here is what I am trying. <br>
<br class="Apple-interchange-newline">
<pre class="bz_comment_text
bz_wrap_comment_text" id="comment_text_4" style="font-size: small; font-family: monospace; white-space: pre-wrap; word-wrap: break-word; width: 50em; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><font size="+1">**** This works ****************
cat nw1.xml
<network>
<name>nw1</name>
<domain name='nw1' />
<forward mode='nat' dev='eth2'/>
<ip address='192.168.101.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.101.128' end='192.168.101.254'/>
</dhcp>
</ip>
</network>
[root@localhost nw]# virsh net-create nw1.xml
Network nw1 created from nw1.xml
[root@localhost nw]# virsh net-list --all
Name State Autostart Persistent
----------------------------------------------------------
nw1 active no no
default active yes yes
<b>****** FAILS when given the same ip address range of an</b><b> </b><b>existing virtual interface *******</b>
[root@localhost nw]# cat nw2.xml
<network>
<name>nw2</name>
<domain name='nw2' />
<forward mode='nat' dev='eth2'/>
<ip address='192.168.101.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.101.128' end='192.168.101.254'/>
</dhcp>
</ip>
</network>
[root@localhost nw]# virsh net-create nw2.xml
error: Failed to create network from nw2.xml
error: internal error: Network is already in use by interface virbr1
****** PASS - on giving diff ip range *******
[root@localhost nw]# cat nw3.xml
<network>
<name>nw3</name>
<domain name='nw3' />
<forward mode='nat' dev='eth2'/>
<ip address='192.168.102.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.102.128' end='192.168.102.254'/>
</dhcp>
</ip>
</network>
[root@localhost nw]# virsh net-create nw3.xml
Network nw3 created from nw3.xml
[root@localhost nw]# virsh net-list --all
Name State Autostart Persistent
----------------------------------------------------------
nw1 active no no
nw3 active no no
default active yes yes
Any suggestions on what could be wrong here ?
Thanks,
G
</font></pre>
</body>
</html>