From owner-freebsd-questions@FreeBSD.ORG Mon Nov 17 22:49:38 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEE8416A4CE for ; Mon, 17 Nov 2003 22:49:38 -0800 (PST) Received: from faeton1.ru (relay.faeton1.ru [217.18.136.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id 347B843FD7 for ; Mon, 17 Nov 2003 22:49:36 -0800 (PST) (envelope-from lists@avtf.org) Received: from faeton1.ru (localhost.faeton1.ru [127.0.0.1]) hAI6oNXg018267 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 18 Nov 2003 12:50:24 +0600 (OMST) Received: (from root@localhost) by relay.faeton1.ru (8.12.9-20030924/8.12.9/Submit) id hAI6oNat018266 for freebsd-questions@freebsd.org.KAV; Tue, 18 Nov 2003 12:50:23 +0600 (OMST) Received: from 217.18.136.232 (ptr-232.faeton1.ru [217.18.136.232] (may be forged)) (authenticated bits=0)hAI6oKXg018256 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 18 Nov 2003 12:50:22 +0600 (OMST) Date: Tue, 18 Nov 2003 12:47:54 +0600 From: Sergey Sysoev X-Mailer: The Bat! (v1.62r) X-Priority: 3 (Normal) Message-ID: <583143520.20031118124754@faeton1.ru> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: zebra routing and gif interface question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sergey Sysoev List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2003 06:49:38 -0000 Hello, I have coulpe of ipip tunnels at 2 near servers and trying to make backup link for each using zebra via multiple nexthop static route. So, 2 boxes: 192.168.5.1 has ipip link to host 210.210.210.1 and 192.168.5.3 also has ipip link to host 210.210.210.1 (using other uplink). Other side has network 192.168.81.0/24. Running zebra on 192.168.5.3 and has following in zebra.conf: > ip route 192.168.81.0/24 gif3 > ip route 192.168.81.0/24 192.168.5.1 As a result I want to use route to 192.168.5.1 in case of isp uplink fail on 192.168.5.3 external iface (accordingly gif3 link failed). But that is the throuble.. It seems there is no check for remote endpoint availability at gif interface and gif never will not be in DOWN state, so no route change. Trying to create gif interface and check it's state after each step. You may see: > mx2# ifconfig gif5 create > mx2# ifconfig gif5 > gif5: flags=8010 mtu 1280 - that is good > mx2# gifconfig gif5 200.200.200.1 210.210.210.1 > mx2# ifconfig gif5 > gif5: flags=8050 mtu 1280 > tunnel inet 200.200.200.1 --> 210.210.210.1 - that is good > mx2# ifconfig gif5 192.168.5.3 192.168.82.0 netmask 255.255.255.0 > mx2# ifconfig gif5 > gif5: flags=8051< -----> UP <-----,POINTOPOINT,RUNNING,MULTICAST> mtu 1280 > tunnel inet 200.200.200.1 --> 210.210.210.1 > inet 192.168.5.3 --> 192.168.82.0 netmask 0xffffff00 - is that good?? interface state has changed to UP but there is no link to remote endpoint and never will be, I have no 200.200.200.1 and 210.210.210.1 is fictitious address Any ideas? Thanks -- Best regards, Sergey [FreeBSD 4.9]