[PVE-User] Persistent static routes inside a container
Shain Miley
smiley at npr.org
Tue Jul 12 22:03:51 CEST 2011
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/c3ec3df2/attachment.htm>
More information about the pve-user
mailing list