From owner-freebsd-net@FreeBSD.ORG Mon Apr 16 21:38:11 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ADD1F16A400 for ; Mon, 16 Apr 2007 21:38:11 +0000 (UTC) (envelope-from mksmith@adhost.com) Received: from mail-in03.adhost.com (mail-in03.adhost.com [216.211.128.143]) by mx1.freebsd.org (Postfix) with ESMTP id 9243313C465 for ; Mon, 16 Apr 2007 21:38:11 +0000 (UTC) (envelope-from mksmith@adhost.com) Received: from ad-exh01.adhost.lan (unknown [216.211.143.69]) by mail-in03.adhost.com (Postfix) with ESMTP id 38B292A683C; Mon, 16 Apr 2007 14:38:07 -0700 (PDT) (envelope-from mksmith@adhost.com) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Mon, 16 Apr 2007 14:38:13 -0700 Message-ID: <17838240D9A5544AAA5FF95F8D5203160201805B@ad-exh01.adhost.lan> In-Reply-To: <4623E87C.50006@freeslacker.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: carp not setting interfaces Thread-Index: AceAbNAjsOfUD4tETQGneUUjv+4o9wAApDNg References: <4623C7C3.8080305@freeslacker.net><200704162305.11182.max@love2party.net> <4623E87C.50006@freeslacker.net> From: "Michael K. Smith - Adhost" To: "Steven Stremciuc" , "Max Laier" Cc: freebsd-net@freebsd.org Subject: RE: carp not setting interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Apr 2007 21:38:11 -0000 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 >=20 > Hi Max, >=20 > > > > 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? >=20 > I get an error when trying to configure it manually via ifconfig. I > don't know what this means. >=20 > test# ifconfig carp0 create > test# ifconfig > fxp0: flags=3D8843 mtu 1500 > options=3D8 > inet 10.1.0.201 netmask 0xffffff00 broadcast 10.1.0.255 > ether 00:30:48:11:64:85 > media: Ethernet autoselect (100baseTX ) > status: active > fxp1: flags=3D8802 mtu 1500 > options=3D8 > ether 00:30:48:11:6f:68 > media: Ethernet autoselect (none) > status: no carrier > lo0: flags=3D8049 mtu 16384 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 > carp0: flags=3D8 mtu 1500 >=20 > and then: >=20 > test# ifconfig carp0 vhid 801 pass mekmitasdigoat 10.1.0.101/24 > ifconfig: SIOCSVH: Invalid argument >=20 >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