Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 2006 10:05:54 +0300 (EEST)
From:      Dmitry Pryanishnikov <dmitry@atlantis.dp.ua>
To:        Darryl Yeoh <drl@MyBSD.org.my>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Default route (IPv4) demolished by destroying clone (gif/gre) interface
Message-ID:  <20060816095321.S33339@atlantis.atlantis.dp.ua>
In-Reply-To: <20060815040736.2f85f090.drl@MyBSD.org.my>
References:  <20060815040736.2f85f090.drl@MyBSD.org.my>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060816095321.S33339>