From owner-freebsd-net@FreeBSD.ORG Fri May 30 09:58:11 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92E70106567D for ; Fri, 30 May 2008 09:58:11 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.235]) by mx1.freebsd.org (Postfix) with ESMTP id 5A3998FC1C for ; Fri, 30 May 2008 09:58:11 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so4583650rvf.43 for ; Fri, 30 May 2008 02:58:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=HPkKJmHJrPDJyWC7y9HU1f5Uz/mAYh2SeaVMpHXeACg=; b=FX3a4oR21bp3LnliR+KuyB24voI/Rna6rdlK01uLsrxxRIXMwMTE3vrh7fnLN0SjcUuJtrU9GPHUxLUQJARNZxRM1qkI9xwb86PU7pNMK/xgmw6P/vZwTAQR3MaqxCnz60bj26E5RA70lOu4bLJVV18EqSURkNjiFt+wBCAHavw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=HUxts21bSyhWQaDn0dLHv+rF6v5j7CJsbb4eJOVswPss5u0I7hstRwmUZAzCGGf025NzkLdYZUEmPg1sl+Tz+H2LjqOr+hAEg+oyZgisUOC2V955060dvPk+FpiU/cIfrWU66vr8KNLRc65L5abfKsFUTk5I2zHM0WfM04Od5v0= Received: by 10.141.18.14 with SMTP id v14mr2879834rvi.125.1212141491224; Fri, 30 May 2008 02:58:11 -0700 (PDT) Received: by 10.140.207.1 with HTTP; Fri, 30 May 2008 02:58:11 -0700 (PDT) Message-ID: <2e77fc10805300258t313e62e2p2c8ffd5e97959f85@mail.gmail.com> Date: Fri, 30 May 2008 12:58:11 +0300 From: "Niki Denev" Sender: ndenev@gmail.com To: Rudy In-Reply-To: <483FCC95.5060401@monkeybrains.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <483FCC95.5060401@monkeybrains.net> X-Google-Sender-Auth: 2b7fc6449ce6c6ce Cc: freebsd-net@freebsd.org Subject: Re: carp and vlan at the same time? 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: Fri, 30 May 2008 09:58:11 -0000 Hi Rudy, On Fri, May 30, 2008 at 12:44 PM, Rudy wrote: > > Dear NET, > > I have some questions! > > [1] vlan & carp > I have 10.3.1.1/24 10.3.2.1/25 and a 10.3.3.129/25 as gateway IPs each in > their own vlan. > How do I get CARP working, or are people using another method to get > failover working? > I'm currently using carp over VLANs over lagg and if works without problems. So I think you should have no problems running carp over vlan interfaces. > [2] carp > Is there a way to get around the requirement to already have an IP in the > same network as the IP you want to put on a carp device? I don't think > freevrrp required another IP... For example, this command fails: > # ifconfig carp1 vhid 31 advbase 1 pass TEST 10.3.3.1/24 > ifconfig: ioctl (SIOCAIFADDR): Can't assign requested address > > Unless I put a 10.3.3.2/24 IP on my em0, and then make the carp IP > 10.3.3.1/32. > Yes, you need IP's for each of the gateways, and one "virtual" IP for the carp interface. This is the way carp works. > [3] vlan > Final questions: is there any documentation on the "ifconfig em0.99 create" > syntax? > Didn't find the dot notation in the man page. Also, how do you set that up > in your rc.conf? > > cloned_interfaces="em0.99" # works.. clone is created > ifconfig_em0.99="10.99.0.1/24" # doesn't work... /etc/rc.d/netif start > em0.99 doesn't work... > You must use underscore instead of the dot. i.e. : ifconfig_em0_99="" should work. > > > Thanks in advance, > Rudy > Regards, Niki