Discussion:
Problem with carp and "inet alias"
Christiano Liberato
11 years ago
Permalink
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.
Sebastian John
11 years ago
Permalink
Hello,

try to use the correct network mask in alias configuration:

inet alias 200.200.200.163 255.255.255.240
..

Sebastian
...
--
Christiano Liberato
11 years ago
Permalink
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.
...
Henning Brauer
11 years ago
Permalink
Post by Sebastian John
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, ***@bsws.de, ***@openbsd.org
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
Stuart Henderson
11 years ago
Permalink
...
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?)...
Loading...