[PVE-User] Persistent static routes inside a container
Shain Miley
smiley at npr.org
Tue Jul 12 22:14:25 CEST 2011
Just an FYI.../etc/network/interfaces.tail did not work for me...so I
just added a script to /etc/rc2.d which works fine.
I was hoping for a global way to add routes to a container on
startup...but this per VM script option is not bad I guess.
Thanks,
Shain
On 07/12/2011 04:03 PM, Shain Miley wrote:
> Benjamin,
>
> Well since /etc/network/interfaces is generated dynamically...it does
> not appear that you can simply add it there...which is why I asked.
>
> However I see that the interfaces file reference
> /etc/network/interfaces.head and /etc/network/interfaces.tail...so it
> really looks like that is where this needs to
> be added (/etc/network/interfaces.tail).
>
> So...I think you were right...more reading was required on my part :-/
>
> Thanks,
>
> Shain
>
> On 07/12/2011 03:56 PM, Benjamin Griese wrote:
>> Hi,
>>
>> this is clearly not a proxmox specific topic but as I'm a kind person
>> I'll answer you anyway with a hint to google such questions next time
>> please. :)
>>
>> http://www.itsyourip.com/networking/add-persistent-static-routes-in-debian-linux/
>>
>> or
>>
>> http://unixfoo.blogspot.com/2009/05/configuring-persistent-static-route-in.html
>>
>> Bye.
>>
>>
>> On Tue, Jul 12, 2011 at 21:52, Shain Miley <smiley at npr.org
>> <mailto:smiley at npr.org>> wrote:
>>
>> Hello all,
>> What is the best place to add a static route so that when a VM
>> boots and reboots the route is added automatically?
>>
>> Here is the command that I use inside the running VM:
>>
>> route add -net 10.11.11.0 netmask 255.255.255.0 venet0:1
>>
>>
>> However this route is clearly lost after I start/stop the VM.
>>
>> Thanks,
>>
>> Shain
>>
>> _______________________________________________
>> pve-user mailing list
>> pve-user at pve.proxmox.com <mailto:pve-user at pve.proxmox.com>
>> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>>
>>
>>
>>
>> --
>> To be or not to be -- Shakespeare | To do is to be -- Nietzsche | To
>> be is to do -- Sartre | Do be do be do -- Sinatra
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-user/attachments/20110712/42176e1e/attachment.htm>
More information about the pve-user
mailing list