<div dir="ltr">I guess playing around with ip (utility) should to the trick with specifing src parameter, i.e.<br>ip r s<br>10.10.100.60 dev tunkappa3 proto kernel scope link src 10.10.100.42<br><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Jun 8, 2014 at 7:56 PM, Scott Dowdle <span dir="ltr"><<a href="mailto:dowdle@montanalinux.org" target="_blank">dowdle@montanalinux.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Greetings,<br>
<div class=""><br>
----- Original Message -----<br>
> I've noticed that when I have multiple IP addresses bound to a<br>
> container, the last added (highest venet0:x number) seems to always<br>
> ends up being the "main" ip address for the container.<br>
><br>
> This means when I add another IP to the server, the main ip for the<br>
> server changes.<br>
><br>
> By main IP I mean the IP address used for outgoing traffic, the one<br>
> that a receiving mail server or ssh server would see the incoming<br>
> traffic originating from.<br>
><br>
> How can I change this behavior and set a fixed venet0:x as the "main"<br>
> IP?<br>
<br>
</div>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.<br>
<br>
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.<br>
<br>
TYL,<br>
<span class="HOEnZb"><font color="#888888">--<br>
Scott Dowdle<br>
704 Church Street<br>
Belgrade, MT 59714<br>
(406)388-0827 [home]<br>
(406)994-3931 [work]<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>[COOLCOLD-RIPN]
</div>