From owner-freebsd-net@FreeBSD.ORG Thu Nov 27 14:16:50 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07BEF16A4CE for ; Thu, 27 Nov 2003 14:16:50 -0800 (PST) Received: from shellma.zin.lublin.pl (shellma.zin.lublin.pl [212.182.126.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7321443F3F for ; Thu, 27 Nov 2003 14:16:45 -0800 (PST) (envelope-from pawmal-posting@freebsd.lublin.pl) Received: by shellma.zin.lublin.pl (Postfix, from userid 1018) id 3B9955F103; Thu, 27 Nov 2003 23:23:39 +0100 (CET) Date: Thu, 27 Nov 2003 23:23:39 +0100 From: Pawel Malachowski To: Spyou Message-ID: <20031127222339.GB78866@shellma.zin.lublin.pl> References: <6.0.0.22.0.20031127222359.03cf8800@212.43.217.14> <20031127215426.GA78866@shellma.zin.lublin.pl> <6.0.0.22.0.20031127225400.04464cc0@plouf.absolight.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6.0.0.22.0.20031127225400.04464cc0@plouf.absolight.com> User-Agent: Mutt/1.4.1i cc: freebsd-net@freebsd.org Subject: Re: FreeBSD 4.9 / VRRP / vlan X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2003 22:16:50 -0000 On Thu, Nov 27, 2003 at 10:56:58PM +0100, Spyou wrote: > This solution (w/o vlans) works .. the downtime is something like 3/4 > seconds .. wich is acceptable for my applications :) > > but i can't work w/o vlans :( R1: % ifconfig vlan0 create vlan 1 vlandev de0 % ifconfig vlan0 inet add 10.255.255.1/24 % ifconfig vlan0 mtu 1500 % ifconfig vlan0 vlan0: flags=8843 mtu 1500 inet 10.255.255.1 netmask 0xffffff00 broadcast 10.255.255.255 inet6 fe80::250:fcff:fe5e:5b40%vlan0 prefixlen 64 scopeid 0xa ether 00:00:e8:41:cd:10 media: Ethernet autoselect (100baseTX ) status: active vlan: 1 parent interface: de0 [VRID] serverid = 1 interface = vlan0 priority = 255 addr = 192.168.1.1/24 R2: % ifconfig vlan0 create vlan 1 vlandev xl0 % ifconfig vlan0 inet add 10.255.255.2/24 % ifconfig vlan0 vlan0: flags=8843 mtu 1500 inet 10.255.255.2 netmask 0xffffff00 broadcast 10.255.255.255 inet6 fe80::202:44ff:fe23:82c4%vlan0 prefixlen 64 scopeid 0x13 ether 00:50:04:ed:d4:be media: Ethernet autoselect (100baseTX ) status: active vlan: 1 parent interface: xl0 [VRID] serverid = 1 interface = vlan0 priority = 2 addr = 192.168.1.1/24 R1: starting freevrrpd freevrrpd[86670]: send ip = 10.255.255.1, eth = 0:0:5e:0:1:1 freevrrpd[86670]: send ip = 192.168.1.1, eth = 0:0:5e:0:1:1 freevrrpd[86670]: server state vrid 1: master % ifconfig vlan0 vlan0: flags=8843 mtu 1500 inet 10.255.255.1 netmask 0xffffff00 broadcast 10.255.255.255 inet6 fe80::250:fcff:fe5e:5b40%vlan0 prefixlen 64 scopeid 0xa inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:00:5e:00:01:01 media: Ethernet autoselect (100baseTX ) status: active vlan: 1 parent interface: de0 R2: starting freevrrpd send ip = 10.255.255.2, eth = 0:50:4:ed:d4:be freevrrpd[21984]: server state vrid 1: backup Now R1 fails: % killall freevrrpd freevrrpd[86670]: restoring real MAC address: 00:00:E8:41:CD:10 for interface vlan0 R2 works as a master now: freevrrpd[21984]: server state vrid 1: master % ifconfig vlan0 vlan0: flags=8843 mtu 1500 inet 10.255.255.2 netmask 0xffffff00 broadcast 10.255.255.255 inet6 fe80::202:44ff:fe23:82c4%vlan0 prefixlen 64 scopeid 0x13 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:00:5e:00:01:01 media: Ethernet autoselect (100baseTX ) status: active vlan: 1 parent interface: xl0 R1 can probe R2 (using other interface and address): % ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1): 56 data bytes 64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=0.356 ms 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.306 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.265 ms ^C --- 192.168.1.1 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.265/0.309/0.356/0.037 ms However, I have no more computers on this vlan and I can't touch other vlans right now. cheers, -- Paweł Małachowski