The reason for this is because you can have multiple subnets on the same L2 bcast domain. You can use ip aliasing in order to use multiple subnets on one virtual nic. For example ifconfig eth0:1 a.b.c.d/24; ifconfig eth0:2 d.e.f.g/24<div>
<br></div><div>Aaron<br><br><div class="gmail_quote">On Mon, Aug 13, 2012 at 7:52 PM, Takaaki Suzuki <span dir="ltr"><<a href="mailto:suzuki@midokura.com" target="_blank">suzuki@midokura.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all.<br>
<br>
I have one question. I prepared devstack with Qauntum V2.<br>
Now I can create Subnet for Network.<br>
And I can add multiple Subnet for one Network. VM can use multiple<br>
subnet for one virtual NIC?<br>
Why quantum v2 can create multiple subnet for one Network?<br>
<br>
quantum --os_token 1b73ace152c440ea939c2329fd115e56 --os_url<br>
<a href="http://localhost:9696/" target="_blank">http://localhost:9696/</a> net-list<br>
+----------------+--------------------------------------+-----------+--------+--------------------------------------+----------------------------------+<br>
| admin_state_up | id                                   | name      |<br>
status | subnets                              | tenant_id<br>
          |<br>
+----------------+--------------------------------------+-----------+--------+--------------------------------------+----------------------------------+<br>
| True           | d7a8106c-7ca6-4302-a065-6a87c859ed9c | test<br>
| ACTIVE | 474ea30c-9337-4f48-854c-9f572538a44c |<br>
4fb66e3355304be5a6f3340d7067b369 |<br>
|                  |<br>
           |                |              |<br>
52ffda8c-61aa-465b-ae62-1ef57e9bed85 |<br>
                        |<br>
|                  |<br>
           |                |              |<br>
9a659285-c6b1-4e6f-b3f0-c3e37341e0be |<br>
                       |<br>
<br>
quantum --os_token 1b73ace152c440ea939c2329fd115e56 --os_url<br>
<a href="http://localhost:9696/" target="_blank">http://localhost:9696/</a> subnet-list<br>
+------------------------------------------------------+------------------+---------------+--------------------------------------+------------+--------+--------------------------------------+----------------------------------+<br>

| allocation_pools                                     | cidr<br>
   | gateway_ip    | id                                   | ip_version<br>
| name   | network_id                           | tenant_id<br>
            |<br>
+------------------------------------------------------+------------------+---------------+--------------------------------------+------------+--------+--------------------------------------+----------------------------------+<br>

| {"start": "192.168.100.2", "end": "192.168.100.254"} |<br>
<a href="http://192.168.100.0/24" target="_blank">192.168.100.0/24</a> | 192.168.100.1 |<br>
474ea30c-9337-4f48-854c-9f572538a44c |          4 | test01 |<br>
d7a8106c-7ca6-4302-a065-6a87c859ed9c |<br>
4fb66e3355304be5a6f3340d7067b369 |<br>
| {"start": "192.168.210.2", "end": "192.168.210.254"} |<br>
<a href="http://192.168.210.0/24" target="_blank">192.168.210.0/24</a> | 192.168.210.1 |<br>
52ffda8c-61aa-465b-ae62-1ef57e9bed85 |          4 | test03 |<br>
d7a8106c-7ca6-4302-a065-6a87c859ed9c |<br>
4fb66e3355304be5a6f3340d7067b369 |<br>
| {"start": "192.168.200.2", "end": "192.168.200.254"} |<br>
<a href="http://192.168.200.0/24" target="_blank">192.168.200.0/24</a> | 192.168.200.1 |<br>
9a659285-c6b1-4e6f-b3f0-c3e37341e0be |          4 | test02 |<br>
d7a8106c-7ca6-4302-a065-6a87c859ed9c |<br>
4fb66e3355304be5a6f3340d7067b369 |<br>
+------------------------------------------------------+------------------+---------------+--------------------------------------+------------+--------+--------------------------------------+----------------------------------+<br>

<br>
Thanks!<br>
Suzuki<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br></div>