<div>Hi,</div><div>I create a virtual network named network-xenbr0,and I can see that it has leased an ip to a VM.</div><div><br></div><div>---------------------</div><div>root@server images]# onevnet list</div><div> ID USER NAME TYPE BRIDGE #LEASES</div>
<div> 6 root network-xenbr0 Fixed xenbr0 <b>1</b></div><div>[root@server images]# onevnet show 6</div><div>VIRTUAL NETWORK 6 INFORMATION </div><div>ID: : 6 </div>
<div>UID: : 0 </div><div><br></div><div>VIRTUAL NETWORK TEMPLATE </div><div>BRIDGE=xenbr0</div><div>LEASES=[ IP=192.168.1.11 ]</div><div>LEASES=[ IP=192.168.1.12 ]</div>
<div>LEASES=[ IP=192.168.1.13 ]</div><div>NAME=network-xenbr0</div><div>TYPE=FIXED</div><div><br></div><div>LEASES INFORMATION </div><div>LEASE=[ IP=192.168.1.11, MAC=00:03:c0:a8:01:0b, USED=1, VID=5 ]</div>
<div>LEASE=[ IP=192.168.1.12, MAC=00:03:c0:a8:01:0c, USED=1, VID=-1 ]</div><div>LEASE=[ IP=192.168.1.13, MAC=00:03:c0:a8:01:0d, USED=0, VID=-1 ]</div><div><br></div><div>[root@server images]# onevm list</div><div> ID USER NAME STAT CPU MEM HOSTNAME TIME</div>
<div> 5 root vm-1 runn 0 524068 server 00 00:37:51</div><div>[root@server images]# onevm show 5</div><div>VIRTUAL MACHINE 5 INFORMATION </div><div>ID : 5 </div>
<div>NAME : vm-1 </div><div>STATE : ACTIVE </div><div>LCM_STATE : RUNNING </div><div>START TIME : 12/24 10:37:08 </div><div>END TIME : - </div>
<div>DEPLOY ID: : one-5 </div><div><br></div><div>VIRTUAL MACHINE TEMPLATE </div><div>CPU=1</div><div>DISK=[</div><div> READONLY=no,</div><div> SOURCE=/srv/cloud/images/centos.5-3.x86-64.img,</div>
<div> TARGET=sda ]</div><div>MEMORY=512</div><div>NAME=vm-1</div><div><b>NIC=[</b></div><div><b> BRIDGE=xenbr0,</b></div><div><b> IP=192.168.1.11,</b></div><div><b> MAC=00:03:c0:a8:01:0b,</b></div><div><b> NETWORK=network-xenbr0,</b></div>
<div><b> VNID=6 ]</b></div><div>OS=[</div><div> KERNEL=/boot/vmlinuz-2.6.18.8-xenU,</div><div> ROOT=sda ]</div><div>VMID=5</div><div>---------------------------------</div><div><br></div><div>It seems that the ip 192.168.1.11 has leased to VM whose ID is 5,but I can not communicate with this address,and if I log in the VM using order 'xm console',I can see the VM's address is not 192.168.1.11,but 192.168.11.254.</div>
<div>------</div><div>[root@server images]# xm console 1</div><div><br></div><div>-bash-3.2# ifconfig</div><div>eth0 Link encap:Ethernet HWaddr 00:03:C0:A8:01:0B </div><div> inet addr:192.168.11.254 Bcast:192.168.11.255 Mask:255.255.255.0</div>
<div> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</div><div> RX packets:92094 errors:0 dropped:0 overruns:0 frame:0</div><div> TX packets:50 errors:0 dropped:0 overruns:0 carrier:0</div><div>
collisions:0 txqueuelen:1000 </div><div> RX bytes:9145285 (8.7 MiB) TX bytes:5836 (5.6 KiB)</div><div><br></div><div>---------------</div><div>Besides, the deployment.0 file used by xen and created by Opennebula is as follow,and no IP address in vif there.</div>
<div>-------</div><div>name = 'one-11'</div><div>#O CPU_CREDITS = 256</div><div>memory = '512'</div><div>kernel = '/boot/vmlinuz-2.6.18.8-xenU'</div><div>root = '/dev/sda'</div><div>disk = [</div>
<div> 'tap:aio:/srv/cloud/one/var/11/images/disk.0,sda,w',</div><div>]</div><div>vif = [</div><div> 'mac=00:03:c0:a8:01:0c,bridge=xenbr0',</div><div>]</div><div>------</div><div>Is anyone know why it is ,and where is the address 192.168.1.11?</div>
<div>BTW,xen should be configed to use bridge networking or router networking?</div><div>Thanks in advance.</div><div>Atlas.</div><div><br></div>