carp not setting interfaces
Michael K. Smith - Adhost
mksmith at adhost.com
Mon Apr 16 21:38:11 UTC 2007
Ahh. See below.
> -----Original Message-----
> From: owner-freebsd-net at freebsd.org [mailto:owner-freebsd-
> net at freebsd.org] On Behalf Of Steven Stremciuc
> Sent: Monday, April 16, 2007 2:20 PM
> To: Max Laier
> Cc: freebsd-net at freebsd.org
> Subject: Re: carp not setting interfaces
>
> Hi Max,
>
> >
> > You didn't say, can you configure the carp interfaces by manual
> ifconfig?
> > That would indicate a problem in the netstart/rc.d part. Maybe
> > mergemaster again?
>
> I get an error when trying to configure it manually via ifconfig. I
> don't know what this means.
>
> test# ifconfig carp0 create
> test# ifconfig
> fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> options=8<VLAN_MTU>
> inet 10.1.0.201 netmask 0xffffff00 broadcast 10.1.0.255
> ether 00:30:48:11:64:85
> media: Ethernet autoselect (100baseTX <full-duplex>)
> status: active
> fxp1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
> options=8<VLAN_MTU>
> ether 00:30:48:11:6f:68
> media: Ethernet autoselect (none)
> status: no carrier
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
> inet6 ::1 prefixlen 128
> inet 127.0.0.1 netmask 0xff000000
> carp0: flags=8<LOOPBACK> mtu 1500
>
> and then:
>
> test# ifconfig carp0 vhid 801 pass mekmitasdigoat 10.1.0.101/24
> ifconfig: SIOCSVH: Invalid argument
>
>From 'man ifconfig' - Looks like your vhid must be from 1 to 255, so 801
is probably what's breaking it.
The following parameters are specific to carp(4) interfaces:
advbase seconds
Specifies the base of the advertisement interval in
seconds. The
acceptable values are 1 to 255. The default value is 1.
advskew interval
Specifies the skew to add to the base advertisement
interval to
make one host advertise slower than another host. It is
speci-
fied in 1/256 of seconds. The acceptable values are 1 to
254.
The default value is 0.
pass phrase
Set the authentication key to phrase.
vhid n Set the virtual host ID. This is a required setting.
Acceptable
values are 1 to 255.
Regards,
Mike
More information about the freebsd-net
mailing list