Date: Mon, 16 Apr 2007 14:38:13 -0700 From: "Michael K. Smith - Adhost" <mksmith@adhost.com> To: "Steven Stremciuc" <steve@freeslacker.net>, "Max Laier" <max@love2party.net> Cc: freebsd-net@freebsd.org Subject: RE: carp not setting interfaces Message-ID: <17838240D9A5544AAA5FF95F8D5203160201805B@ad-exh01.adhost.lan> In-Reply-To: <4623E87C.50006@freeslacker.net> References: <4623C7C3.8080305@freeslacker.net><200704162305.11182.max@love2party.net> <4623E87C.50006@freeslacker.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Ahh. See below.
> -----Original Message-----
> From: owner-freebsd-net@freebsd.org [mailto:owner-freebsd-
> net@freebsd.org] On Behalf Of Steven Stremciuc
> Sent: Monday, April 16, 2007 2:20 PM
> To: Max Laier
> Cc: freebsd-net@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17838240D9A5544AAA5FF95F8D5203160201805B>
