From owner-freebsd-stable@FreeBSD.ORG Wed Aug 16 07:06:13 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6704916A4E7 for ; Wed, 16 Aug 2006 07:06:13 +0000 (UTC) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82F6643D46 for ; Wed, 16 Aug 2006 07:06:10 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from atlantis.dp.ua (localhost [127.0.0.1]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id k7G75tZ2058750; Wed, 16 Aug 2006 10:05:56 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Received: from localhost (dmitry@localhost) by atlantis.dp.ua (8.13.1/8.13.1/Submit) with ESMTP id k7G75sSf058746; Wed, 16 Aug 2006 10:05:55 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Date: Wed, 16 Aug 2006 10:05:54 +0300 (EEST) From: Dmitry Pryanishnikov To: Darryl Yeoh In-Reply-To: <20060815040736.2f85f090.drl@MyBSD.org.my> Message-ID: <20060816095321.S33339@atlantis.atlantis.dp.ua> References: <20060815040736.2f85f090.drl@MyBSD.org.my> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable@freebsd.org Subject: Re: Default route (IPv4) demolished by destroying clone (gif/gre) interface X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Aug 2006 07:06:13 -0000 Hello! On Tue, 15 Aug 2006, Darryl Yeoh wrote: > While destroying gif interface, I notice it also removes IPv4 default route. Has anyone else > encountered this ? > > Command: > > # netstat -rn -f inet > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 10.1.1.1 UGS 0 282 fxp0 > 10.1.1/24 link#1 UC 0 0 fxp0 > 10.1.1.1 00:02:b3:a4:40:65 UHLW 2 12 fxp0 1138 > 10.1.1.55 00:02:b3:a4:40:65 UHLW 1 2 fxp0 1137 > 127.0.0.1 127.0.0.1 UH 0 14238 lo0 > > # ifconfig gif0 create ; ifconfig gif0 destroy > # netstat -rn -f inet > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > 10.1.1/24 link#1 UC 0 0 fxp0 > 127.0.0.1 127.0.0.1 UH 0 14238 lo0 > > # uname -a > FreeBSD rogue.netif.org 6.1-STABLE FreeBSD 6.1-STABLE #0: Thu Jul 27 23:51:21 MYT 2006 > root@rogue.netif.org:/usr/obj/usr/src/sys/ROGUE i386 I can confirm this with fresh (yesterday's) RELENG_6: root@test# uname -a FreeBSD test.atlantis.dp.ua 6.1-STABLE FreeBSD 6.1-STABLE #0: Wed Aug 16 00:58:29 EEST 2006 root@test.atlantis.dp.ua:/usr/RELENG_6/obj/usr/RELENG_6/src/sys/lynx i386 root@test# netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 193.108.47.145 UGS 0 1 rl0 10.0.0.252/30 link#1 UC 0 0 fxp0 127.0.0.1 127.0.0.1 UH 0 0 lo0 193.108.47.144/29 link#2 UC 0 0 rl0 193.108.47.145 00:02:b3:8b:26:4a UHLW 2 194 rl0 48 root@test# ifconfig gif0 create ; ifconfig gif0 destroy root@test# netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 10.0.0.252/30 link#1 UC 0 0 fxp0 127.0.0.1 127.0.0.1 UH 0 0 lo0 193.108.47.144/29 link#2 UC 0 0 rl0 193.108.47.145 00:02:b3:8b:26:4a UHLW 1 4 rl0 60 Looks like a regression since 6.1-RELEASE - this doesn't happen there, though I can't be 100% sure since I've verified it under GENERIC kernel. Under 6.1-STABLE my kernel's config is this: ident LYNX machine i386 cpu I686_CPU makeoptions DEBUG=-g options INCLUDE_CONFIG_FILE options SCHED_4BSD options ADAPTIVE_GIANT options PREEMPTION device apic options COMPAT_43 options COMPAT_FREEBSD4 options COMPAT_FREEBSD5 options SYSVSHM options SYSVSEM options SYSVMSG options KDB options KDB_TRACE options DDB options DDB_NUMSYM options SYSCTL_DEBUG options KTRACE options KTRACE_REQUEST_POOL=101 options INVARIANTS options INVARIANT_SUPPORT options INET options FAST_IPSEC options IPSEC_FILTERGIF device ether device loop device bpf device ppp options PPP_BSDCOMP options PPP_DEFLATE options PPP_FILTER options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=100 options IPFIREWALL_FORWARD options IPFIREWALL_FORWARD_EXTENDED options IPDIVERT options IPSTEALTH options DUMMYNET options FFS options SOFTUPDATES options UFS_EXTATTR options UFS_ACL options UFS_DIRHASH options QUOTA device random device mem device io options _KPOSIX_PRIORITY_SCHEDULING device pty device md device crypto device pci device atkbdc device atkbd device psm options KBD_INSTALL_CDEV device vga device splash device sc options SC_HISTORY_SIZE=2000 options SC_TWOBUTTON_MOUSE device ata device atadisk options ATA_STATIC_ID device scbus device da device cd device pass device pmtimer device ppc device ppbus Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE