From owner-freebsd-questions@freebsd.org Mon Sep 26 23:06:43 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 23E18BEA5F5 for ; Mon, 26 Sep 2016 23:06:43 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-io0-x230.google.com (mail-io0-x230.google.com [IPv6:2607:f8b0:4001:c06::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E2AF5825 for ; Mon, 26 Sep 2016 23:06:42 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-io0-x230.google.com with SMTP id r145so198577170ior.0 for ; Mon, 26 Sep 2016 16:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=uw6hTTGIwKdAmoyBBy4+oD6GhMHtDkPAJl+/+kev3mo=; b=bpwMEkeZ95RmmlKrH4qmUX4yFnJ8abq6gO0M4z/otujit6xx/xGKuUgsPtfwR3dzs/ FlT4hiuQlGZ5u9Sv24LJY1F0ZvWpSkQYqQRri/YLwCb82I01Jult7Ja5EI9yCHWxVyj0 EWtyixB+26+2nYjIZi6FyckEqg1dwYEJOR7sDOdWQ1EPYz/GhgJ6uxfTNhu4spBeC2bB PXIgyfXNRoQMsrm69r4Tm6XX/NY3ugYGHekZsJrXTReIPz6e4AhLA+CvY0LtRrrwNLg4 zi8GM7l7YgMp9D/R3WeCuS0Eon4Lm8PgJtYNhoV7jGLa68Xmm1OmCwu/W53KFyspCcfE gJxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=uw6hTTGIwKdAmoyBBy4+oD6GhMHtDkPAJl+/+kev3mo=; b=IDWv859RNvgluN3LyNryrCjHY5WF6VtOUvoW5pUd9dQYB8EcTlQsH5FH25IWYjABI7 j9UDTrNQcAG9lY6x9c5nH2IMBK9smTDVnw9azpgsqWcEBBmwlZoF8AC4gs6OY5eEAc1X yiP7TnC+vr5KzxmyL+LoGwC1mBvNAPfJR4f8rKQ34tEV+xERjcSrEw1GWxkRxcuTRlm1 8NrmMnbF5gXTl62/GL1jotl9gr2slGkAs7Qo8syZyMgz3Ny4e7uHIRa0orr7dK7je6hU GNfmE76R0B7h1HJ7vHU2ZXqqq1wy5/9JpJSAinfPKeMvgL2Gl6jq2DO4q+dhtZVZrK4X m8ew== X-Gm-Message-State: AE9vXwP9vTsXCli27rLcZ88wW/lxMPT33yuqrw414DeLvRf1RASSqrDkFbMvZVwlKD0oxw== X-Received: by 10.107.32.82 with SMTP id g79mr25217570iog.136.1474931202170; Mon, 26 Sep 2016 16:06:42 -0700 (PDT) Received: from [10.0.10.3] (cpe-24-165-201-26.neo.res.rr.com. [24.165.201.26]) by smtp.googlemail.com with ESMTPSA id n92sm9114712ioi.25.2016.09.26.16.06.40 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Sep 2016 16:06:41 -0700 (PDT) Message-ID: <57E9AA0D.4050505@gmail.com> Date: Mon, 26 Sep 2016 19:06:53 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Mike Tancsa CC: freebsd-questions Subject: Re: ppp installing unwanted route References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2016 23:06:43 -0000 Mike Tancsa wrote: > This seems like a bit of deja vu, but I cant seem to recall if the > problem went away in the past or I worked around it. > > I am trying to manage failover via an ethernet connection, and a PPPoE > connection as a backup route. Dynamic routing happens via quagga / BGP. > The problem is, ppp seems to inject a default route, even when its not > configured to. My ppp stanza looks like > > > pppoe: > add 192.168.153.2 HISADDR > set device PPPoE:igb2 > set server /var/run/vdsl-internet "" 0177 > set speed sync > enable echo > disable vjcomp > set cd 15 > set dial > set login > set timeout 0 > set lqrperiod 10 > set authname spare2@domain > set authkey the password > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 255.255.255.0 > > > there are no ppp.link[up|down] files. > > If I start the box without ppp running, the routing table according to > quagga looks as expected > > >> sh ip route > Codes: K - kernel route, C - connected, S - static, R - RIP, > O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, > > - selected route, * - FIB route > > B>* 0.0.0.0/0 [20/0] via 10.255.255.1, igb0, 00:00:46 > > the default route is picked up from its configured peer via bgp via the > ethernet connection learned over bgp. > > >> sh ip bgp > BGP table version is 0, local router ID is 192.168.254.12 > Status codes: s suppressed, d damped, h history, * valid, > best, = > multipath, > i internal, r RIB-failure, S Stale, R Removed > Origin codes: i - IGP, e - EGP, ? - incomplete > > Network Next Hop Metric LocPrf Weight Path > *> 0.0.0.0 10.255.255.1 102 65060 i > *> 172.30.84.0/24 0.0.0.0 0 32768 i > > Displayed 2 out of 2 total prefixes > > > The shell confirms as well > > # netstat -nr | grep def > default 10.255.255.1 UG1 85 1500 igb0 > # > > Then I start up ppp > > # ppp -ddial pppoe > Working in ddial mode > Using interface: tun0 > > and the default route is gone > > but quagga sees some kernel route across tun0, but its not really there. > >> sh ip route > Codes: K - kernel route, C - connected, S - static, R - RIP, > O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, > > - selected route, * - FIB route > > K>* 0.0.0.0/0 via 67.43.128.14, tun0 > B 0.0.0.0/0 [20/0] via 10.255.255.1, igb0, 00:04:49 > > if I kill off ppp, the default route gets re-added, and I see that old > kernel route as an inactive stale entry > >> sh ip route > Codes: K - kernel route, C - connected, S - static, R - RIP, > O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, > > - selected route, * - FIB route > > K 0.0.0.0/0 via 67.43.128.14 inactive > B>* 0.0.0.0/0 [20/0] via 10.255.255.1, igb0, 00:07:02 > > > Any ideas whats going on ? > > ---Mike > > > Try adding these two lines disable iface-alias iface clear