From owner-freebsd-pf@FreeBSD.ORG Wed Nov 17 18:06:09 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA37F16A4CE for ; Wed, 17 Nov 2004 18:06:09 +0000 (GMT) Received: from mail.secureworks.net (mail.secureworks.net [209.101.212.155]) by mx1.FreeBSD.org (Postfix) with SMTP id 2F23143D31 for ; Wed, 17 Nov 2004 18:06:09 +0000 (GMT) (envelope-from mdg@secureworks.net) Received: (qmail 11764 invoked from network); 17 Nov 2004 18:06:06 -0000 Received: from unknown (HELO HOST-192-168-8-243.internal.secureworks.net) (63.239.86.253) by mail.secureworks.net with SMTP; 17 Nov 2004 18:06:06 -0000 Date: Wed, 17 Nov 2004 13:06:05 -0500 (EST) From: Matthew George X-X-Sender: mdg@localhost To: freebsd-pf@freebsd.org Message-ID: <20041117125515.O693@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: carp observations X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical discussion and general questions about packet filter (pf) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Nov 2004 18:06:09 -0000 a couple of things I've noticed playing with carp ... 1) carp0 can't be destroyed, but there's no problem with carp[>0] mdg# ifconfig carp0 192.168.3.0/24 mdg# ifconfig carp0 destroy ifconfig: SIOCIFDESTROY: Invalid argument mdg# ifconfig carp1 create mdg# ifconfig carp1 destroy [carp1 gone] 2) here I'm trying to setup carp for a network that isn't assigned to any of my interfaces mdg# ifconfig carp0 192.168.7.0/24 ifconfig: ioctl (SIOCAIFADDR): Can't assign requested address somewhat expected, so I assign an address to dc3 and try again: mdg# ifconfig dc3 192.168.7.1/24 mdg# ifconfig carp0 192.168.7.0/24 ifconfig: ioctl (SIOCAIFADDR): Can't assign requested address interestingly enough, the same does not apply to a new carp interface. once it sees I've assigned the address to dc3, it stops complaining. mdg# ifconfig dc3 delete mdg# ifconfig carp1 create mdg# ifconfig carp1 inet 192.168.7.0/24 ifconfig: ioctl (SIOCAIFADDR): Can't assign requested address mdg# ifconfig dc3 192.168.7.1/24 mdg# ifconfig carp1 inet 192.168.7.0/24 [created no problem] so carp1 will work properly, but carp0 still won't: mdg# ifconfig carp1 delete mdg# ifconfig carp0 192.168.7.0/24 ifconfig: ioctl (SIOCAIFADDR): Can't assign requested address I find that carp0 will be fine after a reboot as long as the ethernet interface is configured before the carp interface, but a reboot does seem to be necessary to recover. -- Matthew George SecureWorks Technical Operations