Hi Stuart,

Thanks for the hint.

Regards,
Stefan




________________________________
From: Stuart Henderson <s...@spacehopper.org>
To: misc@openbsd.org
Sent: Thu, June 23, 2011 5:54:45 PM
Subject: Re: Question: IP NAT syntax on CARP interface

hostname.if(5) shows the format you need to use for setting aliases.

You should only set vhid/advbase/etc once for the interface.


On 2011-06-23, Stefan N <stefanbsd...@yahoo.com> wrote:
> Hi guys,
>
> I am in the midst of configuring the OpenBSD 4.9 PF using ip balancing and 
> active-passive solution.
> Every interface was configured successfully but I hit the problem when I am 
> going to add IP Alias/NAT IP on carp interface.
>
> 1)For active-passive scenario:
> Let say I am going to configure carp1 interface and I edit  
> /etc/hostname.carp1 
>
> with 172.16.2.216 as virtual IP and 172.16.2.222 as  NAT IP
> inet 172.16.2.216 255.255.255.0 172.16.2.255 vhid 2 advbase 20 advskew 0 
>carpdev 
>
> em1 pass p455w0rd
> inet 172.16.2.222 255.255.255.255 vhid 2 advbase 20 advskew 0 carpdev em1 
> pass 

> p455w0rd
>
> Then I save the config and restart carp1 interface: sh /etc/netstart carp1
> but the output is ifconfig: vhid: bad value.
>
> 2)For ip balancing scenario, carp1 will have the virtual IP and some NAT IP 
> addresses :
> Let say I am going to configure carp1 interface and I edit 
> /etc/hostname.carp1 

> with 172.16.1.216 as virtual IP and 172.16.1.222 as NAT IP
> inet 172.16.1.216 255.255.255.0 172.16.1.255 balancing ip carpnodes 3:0,4:100 
> pass p455w0rd
> inet 172.16.1.222 255.255.255.255 balancing ip carpnodes 3:0,4:100 pass 
>p455w0rd
>
> Then I save the config and restart carp1 interface: sh /etc/netstart carp1
> but the output is ifconfig: balancing: bad value.
>
> How is the right syntax to configure and add NAT IP on carp interface?
> Is the concept to add NAT IP(s) on carp interface(s) on active-active and ip 
> balancing scenario correct?
>
> Thank you in advance.
>
> Stefan

Reply via email to