Quantcast

Problem with carp and "inet alias"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem with carp and "inet alias"

Christiano Liberato
Hi,

fw1: 200.200.200.168
fw2: 200.200.200.172

carp0 (for twho fw)
inet 200.200.200.162 255.255.255.240 200.200.200.175 vhid 1 advskew 0 carpd=
ev em0 pass senha
inet alias 200.200.200.163 255.255.255.255
inet alias 200.200.200.164 255.255.255.255
inet alias 200.200.200.165 255.255.255.255
inet alias 200.200.200.166 255.255.255.255
inet alias 200.200.200.167 255.255.255.255

After restart the fw, I can not access the router (gateway). I think it has=
 problems default route in between.

Searching the internet, I found the post http://openbsd.7691.n7.nabble.com/=
Carp-with-aliases-route-problem-td84179.html, Todd T. Fries-2, saying that =
in /etc/netstart interface carp rises after the physical and do not know if=
 it is necessary to change this sequence.

Anyone have an environment with carp and alias working to give an opinion?

Thanks.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem with carp and "inet alias"

Sebastian John
Hello,

try to use the correct network mask in alias configuration:

inet alias 200.200.200.163 255.255.255.240
..

Sebastian


On Tue, Nov 19, 2013 at 02:55:45AM -0800, Christiano Liberato wrote:

> Hi,
>
> fw1: 200.200.200.168
> fw2: 200.200.200.172
>
> carp0 (for twho fw)
> inet 200.200.200.162 255.255.255.240 200.200.200.175 vhid 1 advskew 0 carpd=
> ev em0 pass senha
> inet alias 200.200.200.163 255.255.255.255
> inet alias 200.200.200.164 255.255.255.255
> inet alias 200.200.200.165 255.255.255.255
> inet alias 200.200.200.166 255.255.255.255
> inet alias 200.200.200.167 255.255.255.255
>
> After restart the fw, I can not access the router (gateway). I think it has=
>  problems default route in between.
>
> Searching the internet, I found the post http://openbsd.7691.n7.nabble.com/=
> Carp-with-aliases-route-problem-td84179.html, Todd T. Fries-2, saying that =
> in /etc/netstart interface carp rises after the physical and do not know if=
>  it is necessary to change this sequence.
>
> Anyone have an environment with carp and alias working to give an opinion?
>
> Thanks.
>
--

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem with carp and "inet alias"

Christiano Liberato
Sebastian,

my mask is /28 and 255.255.255.240 is fake for post in the list.
My first ip is x.x.x.160 (network) and last x.x.x.175 (broadcast).
Not understand what is wrong.


2013/11/19 Sebastian John <[hidden email]>
Hello,

try to use the correct network mask in alias configuration:

inet alias 200.200.200.163 255.255.255.240
.

Sebastian


On Tue, Nov 19, 2013 at 02:55:45AM -0800, Christiano Liberato wrote:
> Hi,
>
> fw1: 200.200.200.168
> fw2: 200.200.200.172
>
> carp0 (for twho fw)
> inet 200.200.200.162 255.255.255.240 200.200.200.175 vhid 1 advskew 0 carpd=
> ev em0 pass senha
> inet alias 200.200.200.163 255.255.255.255
> inet alias 200.200.200.164 255.255.255.255
> inet alias 200.200.200.165 255.255.255.255
> inet alias 200.200.200.166 255.255.255.255
> inet alias 200.200.200.167 255.255.255.255
>
> After restart the fw, I can not access the router (gateway). I think it has=
>  problems default route in between.
>
> Searching the internet, I found the post http://openbsd.7691.n7.nabble.com/=
> Carp-with-aliases-route-problem-td84179.html, Todd T. Fries-2, saying that =
> in /etc/netstart interface carp rises after the physical and do not know if=
>  it is necessary to change this sequence.
>
> Anyone have an environment with carp and alias working to give an opinion?
>
> Thanks.
>

--

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem with carp and "inet alias"

Stuart Henderson-6
In reply to this post by Christiano Liberato
On 2013/11/19 02:55, Christiano Liberato wrote:

> Hi,
>
> fw1: 200.200.200.168
> fw2: 200.200.200.172
>
> carp0 (for twho fw)
> inet 200.200.200.162 255.255.255.240 200.200.200.175 vhid 1 advskew 0 carpd=
> ev em0 pass senha
> inet alias 200.200.200.163 255.255.255.255
> inet alias 200.200.200.164 255.255.255.255
> inet alias 200.200.200.165 255.255.255.255
> inet alias 200.200.200.166 255.255.255.255
> inet alias 200.200.200.167 255.255.255.255
>
> After restart the fw, I can not access the router (gateway). I think it has=
>  problems default route in between.
>
> Searching the internet, I found the post http://openbsd.7691.n7.nabble.com/=
> Carp-with-aliases-route-problem-td84179.html, Todd T. Fries-2, saying that =
> in /etc/netstart interface carp rises after the physical and do not know if=
>  it is necessary to change this sequence.
>
> Anyone have an environment with carp and alias working to give an opinion?
>
> Thanks.

It's probably best if you post the routing table ("netstat -rnfinet" if you
are only concerned with ipv4) from when it's failing, also "ifconfig -A"
might be helpful. And of course which OS, which version, and exactly what
you see (just packets dropped? or is there an error message?)...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem with carp and "inet alias"

Henning Brauer-2
In reply to this post by Sebastian John
* Sebastian John <[hidden email]> [2013-11-19 19:00]:
> try to use the correct network mask in alias configuration:
> inet alias 200.200.200.163 255.255.255.240

try to not give wrong advice. all-ones netmask is EXACTLY the right
thing here.
probably even for the first ("main") address, unless carpdev is
unnumbered.

--
Henning Brauer, [hidden email], [hidden email]
BS Web Services GmbH, AG Hamburg HRB 128289, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting

attachment0 (203 bytes) Download Attachment
Loading...