If your eth0 (public interface) can access Internet, with the ip_forward your instance should be able too...<br>
<br><br><div class="gmail_quote">On Wed, Aug 8, 2012 at 12:05 PM, Leander Bessa Beernaert <span dir="ltr"><<a href="mailto:leanderbb@gmail.com" target="_blank">leanderbb@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 class="gmail_quote">So i have set up a small proof of concept, one controller node and two compute nodes. Since the switches do not support VLAN i'm using flat dhcp. Each machine has two network interfaces. Eth0 is connected to the public switch and eth1 to the private switch. The private switch has no access to the internet.</div>


<div class="gmail_quote"><br></div><div class="gmail_quote">Both compute nodes have the value of cat /proc/sys/net/ipv4/ip_forward set to 1. However, i still can't make an instance connect to the outside.</div><div class="gmail_quote">


<br></div><div class="gmail_quote"> Any thoughts?</div><div class="HOEnZb"><div class="h5"><div class="gmail_quote">On Tue, Aug 7, 2012 at 11:32 PM, Sébastien Han <span dir="ltr"><<a href="mailto:han.sebastien@gmail.com" target="_blank">han.sebastien@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It's part of the operating system<br>
<br>
# echo 1 > /proc/sys/net/ipv4/ip_forward<br>
<br>
Then edit your /etc/sysctl.conf and uncomment net.ipv4.ip_forward=1 to<br>
make this persistent after reboot.<br>
<br>
Finally run --> # sysctl -p<br>
<br>
That's all, cheers!<br>
<br>
<br>
On Tue, Aug 7, 2012 at 11:50 PM, Leander Bessa Beernaert<br>
<div><div><<a href="mailto:leanderbb@gmail.com" target="_blank">leanderbb@gmail.com</a>> wrote:<br>
> Is there a flag in the nova.conf file or is this something that needs to be<br>
> done on the operating system?<br>
><br>
><br>
> On Tue, Aug 7, 2012 at 8:26 PM, Sébastien Han <<a href="mailto:han.sebastien@gmail.com" target="_blank">han.sebastien@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> If eth0 is connected to the public switch and if eth1 is connected to<br>
>> the private switch you can enable the ipv4 forwarding on the compute<br>
>> node. Thanks to this the VMs will have access to the outside world and<br>
>> the packet will be routed from eth1 to eth0 :).<br>
>><br>
>> Cheers!<br>
>><br>
>> On Tue, Aug 7, 2012 at 5:18 PM, Leander Bessa Beernaert<br>
>> <<a href="mailto:leanderbb@gmail.com" target="_blank">leanderbb@gmail.com</a>> wrote:<br>
>> > Hello,<br>
>> ><br>
>> > I have a question regarding the use of two network interfaces. According<br>
>> > to<br>
>> > the official documentation, one of the interfaces is used for public<br>
>> > access<br>
>> > and the other for internal access (inter-vm communication). What i'd<br>
>> > like to<br>
>> > know is how does an instance connect to the outside world (internet<br>
>> > access)?<br>
>> > Is it done through the switch connected to the private interface or the<br>
>> > public interface?<br>
>> ><br>
>> > --<br>
>> > Cumprimentos / Regards,<br>
>> > Leander<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" target="_blank">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>
>> ><br>
><br>
><br>
><br>
><br>
> --<br>
> Cumprimentos / Regards,<br>
> Leander<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Cumprimentos / Regards,</div>Leander<br>
</div></div></blockquote></div><br>