<p>It would probably be a good idea to get the patch made to master for using dnsmasq tags to customize the dhcp server configuration. Maybe I'll submit a patch in my down time.</p>
<p>Thanks,</p>
<p>Nate </p>
<div class="gmail_quote">On Jun 12, 2012 12:03 PM, "Lorin Hochstein" <<a href="mailto:lorin@nimbisservices.com">lorin@nimbisservices.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Cool, thanks. I'll try to get this into the docs.<div><br><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<div>Take care,</div><div><br></div><div>Lorin</div><div>--</div><div>Lorin Hochstein</div><div>Lead Architect - Cloud Services</div><div>Nimbis Services, Inc.</div><div><a href="https://www.nimbisservices.com/" target="_blank">www.nimbisservices.com</a></div>
<div><br></div></div></span><br></div></span><br></span><br>
</div>
<br><div><div>On Jun 12, 2012, at 11:10 AM, Nathanael Burton wrote:</div><br><blockquote type="cite"><div>Lorin, Diego,<br><br>I wrote up a pastebin of setting up an example dnsmasq.conf file,<br>setting it within nova.conf, patching linux_net.py (in stable/essex),<br>
and showing the example dhcp leases file which set custom values for<br>the router, ntp-server, and dns-server using the dnsmasq conf and tags<br>based on the network label field within the network defined within<br>nova.  The same process should work with both FlatDHCP or VLANManager.<br>
<br><a href="http://paste.openstack.org/show/18471/" target="_blank">http://paste.openstack.org/show/18471/</a><br><br>Thanks,<br><br>Nate<br><br>On Mon, Jun 11, 2012 at 10:17 PM, Lorin Hochstein<br><<a href="mailto:lorin@nimbisservices.com" target="_blank">lorin@nimbisservices.com</a>> wrote:<br>
<blockquote type="cite">Hey Nate:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Jun 11, 2012, at 2:17 PM, Nathanael Burton wrote:<br></blockquote><blockquote type="cite"><br></blockquote>
<blockquote type="cite">dnsmasq supports setting parameters such as the gateway IP and other<br></blockquote><blockquote type="cite">settings based on tag. I have run a patched version of nova-network in the<br></blockquote>
<blockquote type="cite">Diablo time that used the network DB label field as the network tag in<br></blockquote><blockquote type="cite">dnsmasq. This then allows you to set custom configs by modifying the<br></blockquote><blockquote type="cite">
dnsmasq.conf file. This was done with VLANmanager.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Are you able to share an exampleof a dnsmasq.conf file that uses tags to<br>
</blockquote><blockquote type="cite">handle different config settings per network/VLAN?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Take care,<br>
</blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Lorin<br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Lorin Hochstein<br></blockquote><blockquote type="cite">
Lead Architect - Cloud Services<br></blockquote><blockquote type="cite">Nimbis Services, Inc.<br></blockquote><blockquote type="cite"><a href="http://www.nimbisservices.com" target="_blank">www.nimbisservices.com</a><br></blockquote>
<blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">
Nate<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Jun 11, 2012 2:09 PM, "Lorin Hochstein" <<a href="mailto:lorin@nimbisservices.com" target="_blank">lorin@nimbisservices.com</a>> wrote:<br>
</blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">On Jun 4, 2012, at 8:22 PM, romi zhang wrote:<br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Hi,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">
<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I am using VLAN network mode and will connect eth1 and eth2 of my compute<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">
node to the LAN Switch, and LAN switch will create individual VLAN IP<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">interface for each Tenant/VLAN and then route to the NAT equipment,through<br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">SNAT/DNAT to touch internet. So, that needs I can set the default gateway of<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">
each Tenant VLAN to the different IP address of VLAN interface on the<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">switch.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">
<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I have the same question, I would love to know if you can set the gateways<br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">in VLAN mode.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">
<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">For example, my first tenant(auto0Tenant) is at VLAN200/br200/eth1/fix_ip<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">
range is <a href="http://192.168.2.0/28" target="_blank">192.168.2.0/28</a> and second(aotu1Tenant) is<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">VLAN300/br300/eth2/fix_ip_range <a href="http://192.168.3.0/28" target="_blank">192.168.3.0/28</a>, the VLAN interface ip<br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">address for them on switch is 192.168.2.9 and 192.168.3.9, I want to set the<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">
default gateway of VMs in auto0Tenant to 192.168.2.9 and 192.168.3.9 for<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">aotu1Tenant’s VMs.<br></blockquote></blockquote><blockquote type="cite">
<blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I try to use two methods, the first is to use nova-command:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">
<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">nova-manage network create --label=auto0Tenat<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">--fixed_range_v4=<a href="http://192.168.2.0/28" target="_blank">192.168.2.0/28</a> --num_networks=1 --gateway=192.168.2.9<br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">--dns1=61.139.2.69 --vlan=200 --bridge=br200 --bridge_interface=eth1<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">--network_size=16 --multi_host=T<br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">--project_id=5f9281bca6854fe3974a457d81afd78c<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote>
<blockquote type="cite"><blockquote type="cite">nova-manage network create --label=aotu1Tenant<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">--fixed_range_v4=<a href="http://192.168.3.0/28" target="_blank">192.168.3.0/28</a> --num_networks=1 --gateway=192.168.3.9<br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">--dns1=61.139.2.69 --vlan=300 --bridge=br300 --bridge_interface=eth2<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">--network_size=16 --multi_host=T<br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">--project_id=5f9281bca6854fe3974a457d81afd78c<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote>
<blockquote type="cite"><blockquote type="cite">but the result is the newest created VM default gateway is still the IP<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">address of br200 or br300 by the system, that means the factor of “gateway”<br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">and “dns1” in nova-mange network command did not work.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote>
</blockquote><blockquote type="cite"><blockquote type="cite">The second way is to use dnsmasq.conf that Vish told me, that I set just<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">dhcp_option=3,192.168.2.9. Yes it is useful for auto0Tenat VLAN, it can set<br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">auto0Tenant gateway to 192.168.2.9, but how to set others at the same time?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">
<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Then I tried to use:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite">
<blockquote type="cite">Interface=vlan200<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">dhcp_option=3,192.168.2.9<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">
<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Interface=vlan300<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">dhcp_option=3,192.168.3.9<br></blockquote></blockquote>
<blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote>
</blockquote><blockquote type="cite"><blockquote type="cite">Does it actually work to specify multiple interfaces in the dnsmasq conf<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">file like that? I would have thought that the second values would override<br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">the first ones.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite">
<blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Take care,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite">
<blockquote type="cite">Lorin<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">--<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Lorin Hochstein<br></blockquote></blockquote>
<blockquote type="cite"><blockquote type="cite">Lead Architect - Cloud Services<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Nimbis Services, Inc.<br></blockquote></blockquote><blockquote type="cite">
<blockquote type="cite"><a href="http://www.nimbisservices.com" target="_blank">www.nimbisservices.com</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite">
<blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite">
<blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br></blockquote></blockquote><blockquote type="cite">
<blockquote type="cite">More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br>
</blockquote></blockquote><blockquote type="cite"><br></blockquote></div></blockquote></div><br></div></div></blockquote></div>