<div dir="ltr"><div style>Thanks Sylvain,</div><div style><br></div><div style>I will check and get back to you on this.</div><div style><br></div><div style>I have got one question on this. Does quantum directly request leases from the gateway of the physical network before reserving them to allocate to VMs?</div>

<div style><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 March 2013 10:53, Sylvain Bauza <span dir="ltr"><<a href="mailto:sylvain.bauza@digimind.com" target="_blank">sylvain.bauza@digimind.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>The basic troubleshooting steps for L3
      mapping are :<br>
      1. make sure your DNAT/SNAT entries have been populated correctly
      (using 'iptables -t nat -L -n )<br>
      2. monitor your qg-XXXXX interface making sure SNAT is working
      properly (using 'tcpdump -i qg-XXXX -nn) and checking that you
      actually have *two* TCP requests with the same id (the first one
      with the private IP, the second one with the public IP)<br>
      3. make sure you activated ip_forward in /etc/sysctl.conf and
      either reboot or sysctl -w the value (and restart quantum-l3-agent
      in this case)<br>
      <br>
      <br>
      If these 3 steps are OK, then you have a gateway issue, not
      related to Quantum.<br>
      <br>
      -Sylvain<br>
      <br>
      Le 24/03/2013 15:49, Chathura M. Sarathchandra Magurawalage a
      écrit :<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">Thanks Sylvain,
        <div><br>
        </div>
        <div>I have tried this, but does not seem to work. I
          can allocate the floating ip to the VM but it is not
          accessible from the physical network. I can not ping to it
          from the controller or any other physical nodes.</div>
        <div><br>
        </div>
        <div>Any idea?</div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On 19 March 2013 16:14, Sylvain Bauza
            <span dir="ltr"><<a href="mailto:sylvain.bauza@digimind.com" target="_blank">sylvain.bauza@digimind.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF">
                <div>As per <a href="http://docs.openstack.org/folsom/openstack-network/admin/content/demo_logical_network_config.html" target="_blank">http://docs.openstack.org/folsom/openstack-network/admin/content/demo_logical_network_config.html</a>
                  but slightly modified as per CLI help,<br>
                  <br>
                  <pre>quantum net-create ext_net --tenant-id $TENANT_ID --router:external=True
quantum subnet-create --ip_version 4 --allocation-pool start=192.168.2.151,end=192.168.2.240 \
 --gateway 192.168.2.253 <id_of_ext_net> <a href="http://192.168.2.0/24" target="_blank">192.168.2.0/24</a> -- --enable_dhcp=False
</pre>
                  <br>
                  It will create ext_net subnet with preallocated IP
                  range. For each VM, allocate floating IP from this
                  pool and then associate it with the internal port.<br>
                  <br>
                  Hope it can helps,<br>
                  -Sylvain<br>
                  <br>
                  Le 19/03/2013 13:44, Chathura M. Sarathchandra
                  Magurawalage a écrit :<br>
                </div>
                <div>
                  <div>
                    <blockquote type="cite">
                      <div dir="ltr">Thanks.
                        <div><br>
                        </div>
                        <div>its <a href="http://192.168.2.0/24" target="_blank">192.168.2.0/24</a></div>
                        <div><br>
                        </div>
                        <div>free ip range: 192.168.2.151 192.168.2.240 </div>
                        <div><br>
                        </div>
                        <div>gw/dhcp server: 192.168.2.253</div>
                        <div><br>
                        </div>
                        <div class="gmail_extra"><br>
                          <div class="gmail_quote">On 19 March 2013
                            08:28, Sylvain Bauza <span dir="ltr"><<a href="mailto:sylvain.bauza@digimind.com" target="_blank">sylvain.bauza@digimind.com</a>></span>
                            wrote:<br>
                            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                              <div text="#000000" bgcolor="#FFFFFF">
                                <div>In that case, please refer to my
                                  previous e-mail : use floating IPs
                                  bound to the same physical network.<br>
                                  That's up to you to know which IP
                                  pools are available inside your
                                  network. Once you get one, create a
                                  external Quantum subnet defined with
                                  this IP range.<br>
                                  <br>
                                  Sorry, I have feeling to explain again
                                  and again. If you still don't catch
                                  the point, could you please then tell
                                  me your physical net/CIDR, your free
                                  IP range and your gateway, and I'll
                                  mix you up the command to issue.<br>
                                  <br>
                                  -Sylvain<br>
                                  <br>
                                  Le 18/03/2013 18:02, Chathura M.
                                  Sarathchandra Magurawalage a écrit :<br>
                                </div>
                                <div>
                                  <div>
                                    <blockquote type="cite">
                                      <div dir="ltr">
                                        <div>Thanks Sylvain,</div>
                                        <div><br>
                                        </div>
                                        There must be a way of doing
                                        this without having to do
                                        anything with my default gateway
                                        of my physical network? . Even
                                        if I have to I do not wan to do
                                        anything to the physical
                                        gateway. All I need is a way to
                                        let the VMs get a dynamic IP
                                        from the physical network. How
                                        can I do this. For example this
                                        can be done on virtual box using
                                        a bridge adapter which maps the
                                        VM in to the physical network.
                                        <div>
                                          <div class="gmail_extra"><br>
                                            <div class="gmail_quote">On
                                              18 March 2013 16:05,
                                              Sylvain Bauza <span dir="ltr"><<a href="mailto:sylvain.bauza@digimind.com" target="_blank">sylvain.bauza@digimind.com</a>></span>
                                              wrote:<br>
                                              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                                <div text="#000000" bgcolor="#FFFFFF">
                                                  <div>Could you please
                                                    tell me your
                                                    "physical network"
                                                    CIDR ?<br>
                                                    Anyway, what you
                                                    need is not
                                                    requiring having a
                                                    floating IP pool
                                                    inside the same
                                                    network, you can
                                                    also play with
                                                    static routing : if
                                                    your physical host
                                                    does have a default
                                                    gw, you can create a
                                                    static route from
                                                    this gw to the VM
                                                    network gateway. And
                                                    on the VM network
                                                    gateway, do the
                                                    same...<br>
                                                    <br>
                                                    -Sylvain<br>
                                                    <br>
                                                    Le 18/03/2013 16:53,
                                                    Chathura M.
                                                    Sarathchandra
                                                    Magurawalage a
                                                    écrit :<br>
                                                  </div>
                                                  <div>
                                                    <div>
                                                      <blockquote type="cite">
                                                        <div dir="ltr">
                                                          <div class="gmail_extra">
                                                          <div>
                                                          <div>Hey
                                                          Sylvain,</div>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>Basically
                                                          what I need is
                                                          to have the
                                                          VMs mapped to
                                                          my physical
                                                          network so
                                                          that my
                                                          physical hosts
                                                          can directly
                                                          access the
                                                          VMs. How can I
                                                          do this?</div>
                                                          <div><br>
                                                          </div>
                                                          <div>Thanks.</div>
                                                          <br>
                                                          <br>
                                                          <div class="gmail_quote">On

                                                          18 March 2013
                                                          15:50, Sylvain
                                                          Bauza <span dir="ltr"><<a href="mailto:sylvain.bauza@digimind.com" target="_blank">sylvain.bauza@digimind.com</a>></span>
                                                          wrote:<br>
                                                          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                                          <div text="#000000" bgcolor="#FFFFFF">
                                                          <div>Hi,<br>
                                                          <br>
                                                          I don't
                                                          understand
                                                          your business.
                                                          Should you
                                                          have a <a href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a> network
                                                          for
                                                          management,
                                                          you could also
                                                          assign an
                                                          external
                                                          network with
                                                          Quantum based
                                                          on the same
                                                          subnet (ie. <a href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a>).
                                                          <br>
                                                          When creating
                                                          a floating IP
                                                          pool, Quantum
                                                          does require
                                                          at least 3
                                                          things : <br>
                                                           - the CIDR<br>
                                                           - the
                                                          beginning and
                                                          ending IPs <br>
                                                           - the
                                                          external
                                                          gateway <br>
                                                          <br>
                                                          So, based on
                                                          what I
                                                          previously
                                                          said, you only
                                                          need to create
                                                          a <a href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a> in
                                                          Quantum with
                                                          .1-.100 (for
                                                          example) as
                                                          the range,
                                                          .254 being the
                                                          external
                                                          gateway.<br>
                                                          <br>
                                                          Thanks,<br>
                                                          -Sylvain<br>
                                                          <br>
                                                          Le 18/03/2013
                                                          16:29,
                                                          Chathura M.
                                                          Sarathchandra
                                                          Magurawalage a
                                                          écrit :<br>
                                                          </div>
                                                          <blockquote type="cite">
                                                          <div>
                                                          <div>
                                                          <div dir="ltr">anyone?


                                                          <div class="gmail_extra"><br>
                                                          <div class="gmail_quote">On


                                                          17 March 2013
                                                          21:33,
                                                          Chathura M.
                                                          Sarathchandra
                                                          Magurawalage <span dir="ltr"><<a href="mailto:77.chathura@gmail.com" target="_blank">77.chathura@gmail.com</a>></span>
                                                          wrote:<br>
                                                          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                                          <div dir="ltr">After


                                                          reading a
                                                          little bit
                                                          more, I think
                                                          I have found
                                                          what I need.
                                                          It is  a
                                                          provider
                                                          network that I
                                                          need for the
                                                          VMs so that
                                                          they can get
                                                          access to the
                                                          other
                                                          resources in
                                                          my main
                                                          network ( such
                                                          as other
                                                          physical hosts
                                                          that are
                                                          connected to
                                                          the same
                                                          network ).
                                                          <div> <br>
                                                          </div>
                                                          <div>My
                                                          question is,
                                                          is it possible
                                                          to do this
                                                          alongside the
                                                          use case that
                                                          I have
                                                          followed (
                                                          Provider
                                                          router with
                                                          private
                                                          networks)?</div>
                                                          <div><br>
                                                          </div>
                                                          <div>If so how
                                                          can I do this?</div>
                                                          <div> <br>
                                                          </div>
                                                          <div>Thanks.</div>
                                                          <div>
                                                          <div>
                                                          <div class="gmail_extra"><br>
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div><br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          <div class="gmail_quote">On


                                                          16 March 2013
                                                          01:46,
                                                          Chathura M.
                                                          Sarathchandra
                                                          Magurawalage <span dir="ltr"><<a href="mailto:77.chathura@gmail.com" target="_blank">77.chathura@gmail.com</a>></span>
                                                          wrote:<br>
                                                          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                                          <div dir="ltr">
                                                          <div>
                                                          <div>Hello,</div>
                                                          <div><br>
                                                          </div>
                                                          <div>I want to
                                                          know how I can
                                                          allocate a
                                                          dynamic IP to
                                                          the VM from
                                                          the same
                                                          network as the
                                                          openstack
                                                          hosts
                                                          (controller/network-node/compute
                                                          node)
                                                          network/management
                                                          network . For
                                                          example, in
                                                          virtual box
                                                          you can give
                                                          your VM an IP
                                                          from the
                                                          host's network
                                                          using a Bridge
                                                          adapter. How
                                                          can I do this
                                                          in openstack?</div>
                                                          <div><br>
                                                          </div>
                                                          <div>From what
                                                          I understand
                                                          floating IP's
                                                          are used when
                                                          you have a
                                                          public IP </div>
                                                          <div> (which
                                                          is static) to
                                                          be allocated
                                                          to VM's.</div>
                                                          <div> </div>
                                                          <div>My
                                                          openstack
                                                          installation
                                                          architecture:</div>
                                                          <div dir="ltr"><a href="http://docs.openstack.org/folsom/basic-install/content/basic-install_architecture.html" target="_blank">http://docs.openstack.org/folsom/basic-install/content/basic-install_architecture.html</a><br>


                                                          </div>
                                                          </div>
                                                          <div dir="ltr">
                                                          <br>
                                                          </div>
                                                          <div>Quantum
                                                          use case:</div>
                                                          <div dir="ltr"><a href="http://docs.openstack.org/trunk/openstack-network/admin/content/use_cases_single_router.html" target="_blank">http://docs.openstack.org/trunk/openstack-network/admin/content/use_cases_single_router.html</a><br>


                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                          <br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                          <br>
                                                          </div>
                                                          </div>
                                                          <br>
                                                          <fieldset></fieldset>
                                                          <br>
                                                          </div>
                                                          </div>
                                                          <pre>_______________________________________________
Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>
Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a>
</pre>
                                                          </blockquote>
                                                          <br>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                          <br>
                                                          </div>
                                                        </div>
                                                      </blockquote>
                                                      <br>
                                                    </div>
                                                  </div>
                                                </div>
                                              </blockquote>
                                            </div>
                                            <br>
                                          </div>
                                        </div>
                                      </div>
                                    </blockquote>
                                    <br>
                                  </div>
                                </div>
                              </div>
                            </blockquote>
                          </div>
                          <br>
                        </div>
                      </div>
                    </blockquote>
                    <br>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div></div>