From owner-freebsd-questions@freebsd.org Mon Sep 26 21:00:16 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 2548ABEB403 for ; Mon, 26 Sep 2016 21:00:16 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [IPv6:2607:f3e0:80:80::2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DEDA4FB6 for ; Mon, 26 Sep 2016 21:00:15 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (lava.sentex.ca [IPv6:2607:f3e0:0:5::11]) by smarthost2.sentex.ca (8.15.2/8.15.2) with ESMTPS id u8QL0Ecx011284 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Mon, 26 Sep 2016 17:00:15 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:5c30:ed1b:e203:c55c] ([IPv6:2607:f3e0:0:4:5c30:ed1b:e203:c55c]) by lava.sentex.ca (8.15.2/8.14.9) with ESMTP id u8QL0C8M083012 for ; Mon, 26 Sep 2016 17:00:12 -0400 (EDT) (envelope-from mike@sentex.net) To: freebsd-questions From: Mike Tancsa Subject: ppp installing unwanted route Organization: Sentex Communications Message-ID: Date: Mon, 26 Sep 2016 16:59:49 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 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 21:00:16 -0000 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 -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/