From nobody@FreeBSD.org  Wed Mar 24 09:23:06 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id CBE46106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Mar 2010 09:23:06 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id BAE168FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Mar 2010 09:23:06 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o2O9N6mQ066951
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Mar 2010 09:23:06 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o2O9N6Cx066944;
	Wed, 24 Mar 2010 09:23:06 GMT
	(envelope-from nobody)
Message-Id: <201003240923.o2O9N6Cx066944@www.freebsd.org>
Date: Wed, 24 Mar 2010 09:23:06 GMT
From: Robert Kapitany <kapitany.robert@telekom.hu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: jailed interface lost the ip settings
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         145001
>Category:       kern
>Synopsis:       jailed interface lost the ip settings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 24 09:30:05 UTC 2010
>Closed-Date:    Wed Mar 24 15:52:00 UTC 2010
>Last-Modified:  Wed Mar 24 15:52:00 UTC 2010
>Originator:     Robert Kapitany
>Release:        FreeBSD 8.0-STABLE (VIMAGE) #0 r204860M
>Organization:
Hungarian Telekom
>Environment:
FreeBSD virt.lab.t-online.private 8.0-STABLE FreeBSD 8.0-STABLE #0 r204860M: Tue Mar 23 17:14:39 CET 2010     root@bootm.lab.t-online.private:/usr/obj/usr/src/sys/VIMAGE  amd64

>Description:
When I add an previously configured network interface to a jail with vnet.
It lose the ip settings.
Is it the good and expected behavior?
>How-To-Repeat:
ifconfig pub0
pub0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=1bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,
TSO4>   
        ether 00:18:fe:7a:02:98
        inet 10.0.1.1 netmask 0xffffff00 broadcast 10.0.1.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active

jail -c vnet path=/ jid=666 name=test host.hostname=test.virtlab persist

ifconfig pub0 vnet 666

jexec 666 ifconfig
lo0: flags=8008<LOOPBACK,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
pub0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=1bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4>   
        ether 00:18:fe:7a:02:98
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active

>Fix:


>Release-Note:
>Audit-Trail:

From: "Bjoern A. Zeeb" <bz@FreeBSD.org>
To: Robert Kapitany <kapitany.robert@telekom.hu>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/145001: jailed interface lost the ip settings
Date: Wed, 24 Mar 2010 09:50:22 +0000 (UTC)

 On Wed, 24 Mar 2010, Robert Kapitany wrote:
 
 > When I add an previously configured network interface to a jail with vnet.
 > It lose the ip settings.
 > Is it the good and expected behavior?
 
 This is the expected behaviour.
 
 /bz
 -- 
 Bjoern A. Zeeb         It will not break if you know what you are doing.
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Wed Mar 24 15:51:59 UTC 2010 
State-Changed-Why:  
This is intended behaviour as Bjoern mentioned, in any case questions 
are not PR tickets.. Thanks for trying to make FreeBSD Better! 

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