From nobody@FreeBSD.org  Wed Sep  4 09:01:57 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 5786FBAB
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  4 Sep 2013 09:01:57 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 457592076
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  4 Sep 2013 09:01:57 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8491u2B024949
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 4 Sep 2013 09:01:56 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8491uXV024940;
	Wed, 4 Sep 2013 09:01:56 GMT
	(envelope-from nobody)
Message-Id: <201309040901.r8491uXV024940@oldred.freebsd.org>
Date: Wed, 4 Sep 2013 09:01:56 GMT
From: Pavel <pawel401@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: amd64
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         181800
>Category:       kern
>Synopsis:       problem with router and vlan interface
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ae
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 04 09:10:00 UTC 2013
>Closed-Date:    Thu Sep 05 08:29:16 UTC 2013
>Last-Modified:  Thu Sep 05 08:29:16 UTC 2013
>Originator:     Pavel
>Release:        
>Organization:
>Environment:
>Description:
The problem is that when adding a router to vlan interface with the number 100 is added to the interface 10 when added to the 110 it is added to the 11, if you add to it will add 998 to 99, 4000 if you add it to add 40.

netstat -rn
10.1.1.195/32 00:24:81:7d:9d:2b US 0 0 em2.94
10.1.1.196/32 00:24:81:7d:9d:2b US 0 0 em2.95
10.1.1.197/32 00:24:81:7d:9d:2b US 0 0 em2.96
10.1.1.198/32 00:24:81:7d:9d:2b US 0 0 em2.97
10.1.1.199/32 00:24:81:7d:9d:2b US 0 0 em2.98
10.1.1.200/32 00:24:81:7d:9d:2b US 0 0 em2.99
10.1.1.201/32 00:24:81:7d:9d:2b US 0 0 em2.10
10.1.1.202/32 00:24:81:7d:9d:2b US 0 0 em2.10
10.1.1.203/32 00:24:81:7d:9d:2b US 0 0 em2.10
>How-To-Repeat:
ifconfig em2.94 create inet 10.0.0.1/32 up
ifconfig em2.95 create inet 10.0.0.1/32 up
ifconfig em2.96 create inet 10.0.0.1/32 up
ifconfig em2.97 create inet 10.0.0.1/32 up
ifconfig em2.98 create inet 10.0.0.1/32 up
ifconfig em2.99 create inet 10.0.0.1/32 up
ifconfig em2.100 create inet 10.0.0.1/32 up
ifconfig em2.101 create inet 10.0.0.1/32 up
ifconfig em2.102 create inet 10.0.0.1/32 up

route delete 10.0.0.1/32

route add -host 10.1.1.195 -iface em2.94
route add -host 10.1.1.196 -iface em2.95
route add -host 10.1.1.197 -iface em2.96
route add -host 10.1.1.198 -iface em2.97
route add -host 10.1.1.199 -iface em2.98
route add -host 10.1.1.200 -iface em2.99
route add -host 10.1.1.201 -iface em2.100
route add -host 10.1.1.202 -iface em2.101
route add -host 10.1.1.203 -iface em2.102
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Sep 5 02:08:57 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181800 
State-Changed-From-To: open->closed 
State-Changed-By: ae 
State-Changed-When: Thu Sep 5 08:25:17 UTC 2013 
State-Changed-Why:  
Actually the kernel uses right interfaces. 
Use -W key with netstat(1) and it will not truncate interface 
names in the output. 


Responsible-Changed-From-To: freebsd-net->ae 
Responsible-Changed-By: ae 
Responsible-Changed-When: Thu Sep 5 08:25:17 UTC 2013 
Responsible-Changed-Why:  
Take it. 

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