<font><font face="arial,helvetica,sans-serif">My OpenStack environment is running under traditional VLAN model. Currently, I have two VMs which is running Ubuntu 12.04 server and their Fixed IP is:</font></font><div><font><font face="arial,helvetica,sans-serif"><br>
</font></font></div><div><font><font face="arial,helvetica,sans-serif">Host 1: eth0: 172.16.0.3</font></font></div><div><font><font face="arial,helvetica,sans-serif">Host 2: eth0: </font></font><font face="arial, helvetica, sans-serif">172.16.0.5</font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Then I add a subinterface to each VM like this:</font></div><div><font face="arial, helvetica, sans-serif"><br>
</font></div><div><font face="arial, helvetica, sans-serif">Host 1: eth0:1 192.168.2.2</font></div><div>Host 2: eth0:1 192.168.2.3</div><div><br></div><div>My network configuration looks like: </div><div><div>auto eth0</div>
<div>iface eth0 inet dhcp</div><div><br></div><div>auto eth0:1</div><div>iface eth0:1 inet static</div><div>address <b>192.168.2.3</b></div><div>netmask 255.255.255.0</div></div><div><br></div><div>Also in the access & security I open icmp there, but I don't think this is related to my issue. Then I try to run ping host2 from host1, and it works.</div>
<div><br></div><div>Then on Host1, I run:</div><div><br></div><div>ping 172.16.0.5 -I 192.168.2.2 -> <b>NO RESPONSE</b></div><div><br></div><div>ping 192.168.2.3 -> <b>Destination Host Unreachable</b></div><div><b><br>
</b></div><div>I didn't modify the route table, and it looks like:</div><div><div>Kernel IP routing table</div><div>Destination Gateway Genmask Flags Metric Ref Use Iface</div><div>default 172.16.0.4 0.0.0.0 UG 100 0 0 eth0</div>
<div>172.16.0.0 * 255.255.255.0 U 0 0 0 eth0</div><div>192.168.2.0 * 255.255.255.0 U 0 0 0 eth0</div></div><div><br></div><div>Anyone know how can I access the host2 through my subinterface? Thanks a lot.</div>
<div><br></div><div><div><div><br></div><div><span style="font-family:'courier new',monospace">- Ray</span></div><font face="'courier new', monospace">Yours faithfully, Kind regards.<br><br>CIeNET Technologies (Beijing) Co., Ltd<br>
Email: <a href="mailto:qsun01185@cienet.com.cn" target="_blank">qsun01185@cienet.com.cn</a></font><div><font face="'courier new', monospace">Office Phone: +86-01081470088-7079<br>Mobile Phone: +86-13581988291</font></div>
</div>
</div>