<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Cool, thanks. I'll try to get this into the docs.<div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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/">www.nimbisservices.com</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Jun 12, 2012, at 11:10 AM, Nathanael Burton wrote:</div><br class="Apple-interchange-newline"><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/">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><lorin@nimbisservices.com> 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">www.nimbisservices.com<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" <lorin@nimbisservices.com> 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 192.168.2.0/28 and second(aotu1Tenant) is<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">VLAN300/br300/eth2/fix_ip_range 192.168.3.0/28, 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=192.168.2.0/28 --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=192.168.3.0/28 --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">www.nimbisservices.com<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: https://launchpad.net/~openstack<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Post to     : openstack@lists.launchpad.net<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Unsubscribe : https://launchpad.net/~openstack<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">More help   : https://help.launchpad.net/ListHelp<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><br></blockquote></div></blockquote></div><br></div></body></html>