From owner-freebsd-net@FreeBSD.ORG Fri Jul 23 09:35:37 2010 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 4A675106566B for ; Fri, 23 Jul 2010 09:35:37 +0000 (UTC) (envelope-from grand@mindless.gr) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id DB2AE8FC08 for ; Fri, 23 Jul 2010 09:35:36 +0000 (UTC) Received: by ewy26 with SMTP id 26so1627ewy.13 for ; Fri, 23 Jul 2010 02:35:35 -0700 (PDT) Received: by 10.213.33.73 with SMTP id g9mr386267ebd.41.1279877735427; Fri, 23 Jul 2010 02:35:35 -0700 (PDT) Received: from [78.108.47.251] ([78.108.47.251]) by mx.google.com with ESMTPS id v8sm65600eeh.14.2010.07.23.02.35.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 23 Jul 2010 02:35:34 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) From: "Thodoris S." In-Reply-To: <4C494EC7.6080309@borsice.net> Date: Fri, 23 Jul 2010 12:35:30 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <4CFC3450-103C-4D90-A4D4-96FFDCA4510A@gmail.com> References: <403BAEC0-7D73-4584-9D4D-20B642DB938B@gmail.com> <4C494EC7.6080309@borsice.net> To: freebsd-net@freebsd.org X-Mailer: Apple Mail (2.1081) Subject: Re: FreeBSD + Quagga OSPFD issue 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, 23 Jul 2010 09:35:37 -0000 Michal Thank you very much, the second set of commands worked, route = delete and then ifconfig on the interface, is anyone have any idea on = fixing this? why FreeBSD is preferring the OSPF route instead of connected one? On Jul 23, 2010, at 11:11 AM, Michal Buchtik wrote: > Hi > we have this problem too, see bellow >=20 > On 2010/07/22 14:55, Thodoris S. wrote: >> Hello, i am experiencing a weird problem, >>=20 >> i have set up a FreeBSD 8.0 Release, with Quagga 0.9.15 running = ospfd and bgpd for a small network >> the router has multiple ethernet interfaces for backup in my case = 2.If i disconnect an ethernet either Physical or Logical (ifconfig em1 = down) >> when it comes up again after a while, Quagga doesnt use it as OSPF = interface below i am giving you some console outputs to undestand better = the issue >>=20 >> #1 show ip ospf interfaces: >> em1 is up >> ifindex 2, MTU 1500 bytes, BW 0 = Kbit >> Internet Address 10.10.32.34/30, Broadcast 10.10.32.35, Area = 0.0.0.0 >> MTU mismatch detection:enabled >> Router ID 10.10.32.39, Network Type BROADCAST, Cost: 10 >> Transmit Delay is 1 sec, State Backup, Priority 1 >> Designated Router (ID) 10.10.32.36, Interface Address 10.10.32.33 >> Backup Designated Router (ID) 10.10.32.39, Interface Address = 10.10.32.34 >> Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters >> Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, = Retransmit 5 >> Hello due in 0.901s >> Neighbor Count is 1, Adjacent neighbor count is 1 >>=20 >>=20 >> #2 ifconfig em1 down >> #3 ifconfig em1 up >> #4 show ip ospf interfaces: >> em1 is up >> ifindex 3, MTU 1500 bytes, BW 0 = Kbit >> OSPF not enabled on this interface >>=20 >> =20 > Check route table for prefix 10.10.32.32/30. I think, that it will be = type UG1, because quagga installed it when the interface was down (ospfd = deamon received it over another link). >> Anyone has any idea on this issue? i have searched the internet and = some people seem to have the same problem all with FreeBSD, Linux = version dosnt have this problem, some of them speaking for a patch = floating arround, but i didnt find any information on it >> i have changed the version of quagga from 0.9.15 to 0.9.16 but not = solved, i have compiled the quagga with TCP SOCKETS support but again = the problem dosnt solve, the only workaround is to reboot the whole = machine >> even if i restart quagga it doesnt work. >> =20 > Workaround is to add route manually, like this: >=20 > route delete 10.10.32.32/30; route add 10.10.32.32/30 -iface em0 > or > route delete 10.10.32.32/30; ifconfig em0 10.10.32.34/30 >=20 > I think freebsd kernel could install "connected" route when interface = goas up (and replace UG1 route) because connected could be preferred = over dynamic route. So this seems like FreeBSD bug , instead of quagga = ones. >=20 > Michal