<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">W dniu 2014-08-13 17:24, Fajar A.
Nugraha pisze:<br>
</div>
<blockquote
cite="mid:CAG1y0seKMoCp-BZzckT89QtPB=TYgo2e+V+GRB8oCiD6bE7gFw@mail.gmail.com"
type="cite">
<pre wrap="">On Wed, Aug 13, 2014 at 10:08 PM, m.byryn1u <a class="moz-txt-link-rfc2396E" href="mailto:m.bryn1u@gmail.com"><m.bryn1u@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
W dniu 2014-08-13 16:57, Fajar A. Nugraha pisze:
</pre>
<blockquote type="cite">
<pre wrap="">On Wed, Aug 13, 2014 at 7:34 PM, Tamas Papp <a class="moz-txt-link-rfc2396E" href="mailto:tompos@martos.bme.hu"><tompos@martos.bme.hu></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
Resending..
On 08/13/2014 02:27 PM, Tamas Papp wrote:
host machine:
auto br0
iface br0 inet static
bridge_ports eth0
bridge_stp off
bridge_maxwait 0
bridge_fd 0
address 94.23.237.216
netmask 255.255.255.0
network 94.23.237.0
broadcast 94.23.237.255
gateway 94.23.237.254
Don't setup br0:0
Remove the following entries from CONTAINER/config:
lxc.network.ipv4 = 91.121.239.228/32
lxc.network.ipv4.gateway = 91.121.239.254
guest machine:
auto eth0
iface eth0 inet static
address 91.121.239.228
netmask 255.255.255.0
gateway 94.23.237.254
This should work.
</pre>
</blockquote>
<pre wrap="">
No, that won't work.
94.23.237.254 is not part of 91.121.239.0/24.
@Bryn, how is the ROUTER (i.e. 94.23.237.254) setup? Is it configured
to route the additional IP (91.121.239.228) thru host's IP
(94.23.237.216), the way some dedicated server provider does (e.g.
serverloft)?
If yes, then the EASY way would be to put 91.121.239.228 as an alias
in host's interface (I'd just use eth0, no need to use a bridge there)
and setup a static NAT to whatever IP the container has (e.g.
10.0.3.251, connected to host's lxcbr0 bridge)
</pre>
</blockquote>
<pre wrap="">Hey,
It's server dedicated in OVH.
</pre>
</blockquote>
<pre wrap="">
Then ask OVH how to use that IP.
</pre>
<blockquote type="cite">
<pre wrap="">I have one ip like 94.23.237.216 and i bought one more called "ip failover"
like 91.121.239.228. You say as an alias and setup static NAT. But what
about 2 ip failover ?
</pre>
</blockquote>
<pre wrap="">
If my guess is right, it's similar to serverloft. They will say
"simply put it as an IP alias/additional IP on your server".
As in, the additional IP is routed to ONE of your server's IP.
Permanently. Can't be used on other server. Thus, there can be NO
failover.
It's not a standard failover setup where two or more physical servers
each have an IP in the same network segment, and you can have one or
more virtual IP for your services that can fail over to any of the
servers.
</pre>
</blockquote>
I had a server on FreeBSD-10 before and i had 2 jails with 1
failover ip per jail, work well.<br>
OVH says :<br>
<br>
<span style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none; background-color:
rgb(226, 226, 226);">post-up /sbin/ifconfig eth0:X IP.FAIL.OVER
netmask 255.255.255.255 broadcast IP.FAIL.OVER</span><br
style="color: rgb(0, 0, 0); font-family: Verdana, Geneva, Arial,
Helvetica, sans-serif; font-size: 10px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<span style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none; background-color:
rgb(226, 226, 226);">post-down /sbin/ifconfig eth0:X down<br>
<br>
Or as bridge:<br>
<br>
</span><br>
<span style="font-family: Verdana, Geneva, Arial, Helvetica,
sans-serif; font-size: 12px; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; color: blue;">/etc/network/interfaces</span><br
style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<span style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;">auto lo eth0</span><br
style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<span style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;">iface lo inet loopback</span><br
style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<span style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;">iface eth0 inet static</span><br
style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<span style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;">address<span
class="Apple-converted-space"> </span></span><span
style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; color: red;">IP.FAIL.OVER</span><br
style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<span style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;">netmask 255.255.255.255</span><br
style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<span style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;">broadcast<span
class="Apple-converted-space"> </span></span><span
style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; color: red;">IP.FAIL.OVER</span><br
style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<span style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;">post-up route add<span
class="Apple-converted-space"> </span></span><span
style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; color: red;">IP..SERWERA.254</span><span
style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;"><span
class="Apple-converted-space"> </span>dev eth0</span><br
style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<span style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;">post-up route add
default gw<span class="Apple-converted-space"> </span></span><span
style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; color: red;">IP.SERWERA.254</span><br
style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<span style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;">post-down route del<span
class="Apple-converted-space"> </span></span><span
style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; color: red;">IP..SERWERA.254</span><span
style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;"><span
class="Apple-converted-space"> </span>dev eth0</span><br
style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<span style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;">post-down route del
default gw<span class="Apple-converted-space"> </span></span><span
style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; color: red;">IP.SERWERA.254</span><br>
<br>
That's why i think that method 2 post befor should works. <br
style="color: rgb(38, 38, 38); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
</body>
</html>