Dag Richards wrote:
> Am I correct in inferring ( not assuming no! ) that once a carp iface is
> created we can not add aliases to them?
> 
> 
> I can add alia to a carp iface by adding alias statements to hostname.carp
> 
> 
> 
> fw1:root:/etc #ifconfig carp1
> carp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         description: virtual if for all internal traffic
>         carp: MASTER carpdev em1 vhid 15 advbase 1 advskew 100
>         groups: carp
>         inet 198.160.35.1 netmask 0xffffff00 broadcast 198.160.35.255
>         inet 198.160.35.24 netmask 0xffffff00 broadcast 255.255.255.0
>         inet 198.160.35.25 netmask 0xffffff00 broadcast 255.255.255.0
>         inet 198.160.35.30 netmask 0xffffff00 broadcast 255.255.255.0
>         inet 172.17.9.34 netmask 0xffff0000 broadcast 172.17.255.255
> 
> but afterwards when I ... well this:
> 
> 
> fw1:root:/etc #ifconfig carp1 alias  123.32.217.21  netmask 255.255.255.0
> ifconfig: SIOCAIFADDR: Can't assign requested address
> 
> 
> 
> 
> Is there a way to add addrs without having to destroy and recreate the
> iface?
> 

I guess you are missing the address family in your ifconfig command:
#ifconfig carp1 inet alias  123.32.217.21  netmask 255.255.255.0

Not 100% sure if that is really required, but I always use it anyways

Reply via email to