[Users] how to set main IP address for a container
coolthecold at gmail.com
Sun Jun 8 09:09:56 PDT 2014
I guess playing around with ip (utility) should to the trick with specifing
src parameter, i.e.
ip r s
10.10.100.60 dev tunkappa3 proto kernel scope link src 10.10.100.42
On Sun, Jun 8, 2014 at 7:56 PM, Scott Dowdle <dowdle at montanalinux.org>
> ----- Original Message -----
> > I've noticed that when I have multiple IP addresses bound to a
> > container, the last added (highest venet0:x number) seems to always
> > ends up being the "main" ip address for the container.
> > This means when I add another IP to the server, the main ip for the
> > server changes.
> > By main IP I mean the IP address used for outgoing traffic, the one
> > that a receiving mail server or ssh server would see the incoming
> > traffic originating from.
> > How can I change this behavior and set a fixed venet0:x as the "main"
> > IP?
> From your description, it sounds like you could just put in your preferred
> IP address last, making it the "main" one. You answered your own question.
> In the unlikely event that you are constantly adding and removing IP
> addresses to your container, you'll have to redefine the main one over and
> over, but at least there's a way to do it.
> Scott Dowdle
> 704 Church Street
> Belgrade, MT 59714
> (406)388-0827 [home]
> (406)994-3931 [work]
> Users mailing list
> Users at openvz.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users