From nobody@FreeBSD.org  Thu Feb  1 06:00:00 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 319F116A403
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  1 Feb 2007 06:00:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 02A4313C471
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  1 Feb 2007 06:00:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l115xxaV052121
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 1 Feb 2007 05:59:59 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l115xxml052120;
	Thu, 1 Feb 2007 05:59:59 GMT
	(envelope-from nobody)
Message-Id: <200702010559.l115xxml052120@www.freebsd.org>
Date: Thu, 1 Feb 2007 05:59:59 GMT
From: Vladimir Korkodinov<newbieman@perm.raid.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [gre] bogus route after ifconfig tunnel
X-Send-Pr-Version: www-3.0

>Number:         108645
>Category:       kern
>Synopsis:       [gre] bogus route after ifconfig tunnel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 01 06:00:35 GMT 2007
>Closed-Date:    Mon Feb 05 06:47:37 GMT 2007
>Last-Modified:  Mon Feb 05 06:47:37 GMT 2007
>Originator:     Vladimir Korkodinov
>Release:        6.2-STABLE
>Organization:
ER-telecom
>Environment:
uname -a
FreeBSD test 6.2-STABLE FreeBSD 6.2-STABLE #0: Wed Jan 31 19:11:02 YEKT 2007     viper@test:/usr/src/sys/i386/compile/viper  i386

>Description:
After the creation of tunnel bogus route appears.
The tunnel does not work because of it. Temporarily it helps arp -ad.
however this route may appears again after the certain time.
I saw the similar symptoms on 6.1R and 6.2R.


>How-To-Repeat:
#ifconfig
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.100.201.100 netmask 0xffff0000 broadcast 10.100.255.255
        ether 00:05:5d:75:fd:73
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000

#arp -an
? (10.100.10.235) at 00:15:f2:5b:37:29 on vr0 [ethernet]

#ifconfig gre1 create
#arp -an
? (10.100.10.235) at 00:15:f2:5b:37:29 on vr0 [ethernet]
#ifconfig gre1 tunnel 10.100.201.100 10.100.200.120
#arp -an
? (10.100.10.235) at 00:15:f2:5b:37:29 on vr0 [ethernet]
? (10.100.200.121) at (incomplete) on vr0 [ethernet]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
10.1.12.38         127.0.0.1          UGHS        0        2    lo0
10.100/16          link#1             UC          0        0    vr0
10.100.10.235      00:15:f2:5b:37:29  UHLW        1      110    vr0   1128
10.100.200.120     00:0c:29:0e:1d:b2  UHLW        2       42    vr0   1130
10.100.200.121     link#1             UHLW        2        0    vr0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127.0.0.1          127.0.0.1          UH          1       10    lo0

# ifconfig gre1 inet 10.1.12.38 10.1.12.37 netmask 255.255.255.252
# ifconfig gre1 mtu 1450
# ifconfig gre1 up
# route add -host 10.1.12.38 127.0.0.1

# ping 10.1.12.37
PING 10.1.12.37 (10.1.12.37): 56 data bytes
^C
--- 10.1.12.37 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss

#arp -ad
10.100.10.235 (10.100.10.235) deleted
10.100.200.120 (10.100.200.120) deleted
10.100.200.121 (10.100.200.121) deleted

#ping 10.1.12.37
PING 10.1.12.37 (10.1.12.37): 56 data bytes
64 bytes from 10.1.12.37: icmp_seq=0 ttl=254 time=1.030 ms
64 bytes from 10.1.12.37: icmp_seq=1 ttl=254 time=0.605 ms
^C
--- 10.1.12.37 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.605/0.818/1.030/0.213 ms


>Fix:
Unknown
>Release-Note:
>Audit-Trail:

From: "newbieman" <newbieman@perm.raid.ru>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc:  
Subject: Re: misc/108645: [gre] bogus route after ifconfig tunnel
Date: Sat, 3 Feb 2007 17:07:20 +0500

 Sorry for the mistake open PR. This is the normal state.
 It is necessary to create gre tunnel with parameter link1.
 The issue arose after an attempt to run wccp v2.
 Strangely, nowhere written that it is possible to combine flags link1 and link2.
 I read man and searched for in the search systems.
 Best regards
 
 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Mon Feb 5 06:47:19 UTC 2007 
State-Changed-Why:  
Closed at submitter's request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108645 
>Unformatted:
