From owner-freebsd-jail@FreeBSD.ORG Fri Apr 10 10:20:24 2009 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EB25106566B for ; Fri, 10 Apr 2009 10:20:24 +0000 (UTC) (envelope-from goya@eik.bme.hu) Received: from mono.eik.bme.hu (mono.eik.bme.hu [IPv6:2001:738:2001:2001::2001]) by mx1.freebsd.org (Postfix) with ESMTP id 65D008FC08 for ; Fri, 10 Apr 2009 10:20:23 +0000 (UTC) (envelope-from goya@eik.bme.hu) Received: from localhost (localhost [127.0.0.1]) by mono.eik.bme.hu (Postfix) with ESMTP id 8922326B for ; Fri, 10 Apr 2009 12:20:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at eik.bme.hu Received: from mono.eik.bme.hu ([127.0.0.1]) by localhost (mono.eik.bme.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id K8Gp2c1Atzg7 for ; Fri, 10 Apr 2009 12:20:22 +0200 (CEST) Received: by mono.eik.bme.hu (Postfix, from userid 884) id 55EA89D5; Fri, 10 Apr 2009 12:20:22 +0200 (CEST) Date: Fri, 10 Apr 2009 12:20:22 +0200 (CEST) From: JAKO Andras X-X-Sender: goya@mono To: freebsd-jail@freebsd.org Message-ID: Organization: Budapest University of Technology and Economics - Division of Telecommunications and Informatics X-GPG-public_key: http://splash.eik.bme.hu/JakoAndras-pubkey.asc X-GPG-fingerprint: 59B59365 - 6A25 5EEC C11D 41FB 2EE8 F171 F77C F862 59B5 9365 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: lo0's IPv6 address overwritten X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2009 10:20:24 -0000 Hi, Starting a jail with one IPv4 and one IPv6 address on a few days old RELENG_7 overwrites lo0's ::1 with the jail's IPv6 address. (The jail's addresses are preconfigured on lo1.) Is this expected behaviour? Or did I made something the wrong way? Here's ifconfig(8)'s output before and after executing jail(8), and also from inside of the jail. Thanks, Andras [root@splash /usr/home/goya]# uname -a FreeBSD splash.eik.bme.hu 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #8: Tue Apr 7 23:15:27 CEST 2009 root@splash.eik.bme.hu:/usr/obj/usr/src/sys/SPLASH amd64 [root@splash /usr/home/goya]# ifconfig -a bge0: flags=8802 metric 0 mtu 1500 options=9b ether 00:23:7d:d5:46:58 media: Ethernet autoselect (none) status: no carrier bge1: flags=8802 metric 0 mtu 1500 options=9b ether 00:23:7d:d5:46:59 media: Ethernet autoselect (10baseT/UTP ) status: active em0: flags=8843 metric 0 mtu 1500 options=19b ether 00:1b:21:30:ee:7e inet6 fe80::21b:21ff:fe30:ee7e%em0 prefixlen 64 scopeid 0x3 inet 152.66.115.62 netmask 0xffffff00 broadcast 152.66.115.255 inet6 2001:738:2001:2001::62 prefixlen 64 media: Ethernet autoselect (1000baseTX ) status: active lo0: flags=8049 metric 0 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 lo1: flags=8049 metric 0 mtu 16384 inet 152.66.116.116 netmask 0xffffffff inet6 2001:738:2001:1000::2 prefixlen 128 [root@splash /usr/home/goya]# jail -l -U root -i /usr/jail/ro.noc r-noc.net.bme.hu "152.66.116.116,2001:738:2001:1000::2" /bin/sh /etc/rc 1 Loading configuration files. /etc/rc: WARNING: $hostname is not set -- see rc.conf(5). Creating and/or trimming log files:. ln: /dev/log: Operation not permitted Starting syslogd. ELF ldconfig path: /lib /usr/lib /usr/lib/compat 32-bit compatibility ldconfig path: /usr/lib32 Clearing /tmp (X related). Starting local daemons:. Updating motd. Starting cron. Local package initialization:. Fri Apr 10 11:42:40 CEST 2009 [root@splash /usr/home/goya]# ifconfig bge0: flags=8802 metric 0 mtu 1500 options=9b ether 00:23:7d:d5:46:58 media: Ethernet autoselect (none) status: no carrier bge1: flags=8802 metric 0 mtu 1500 options=9b ether 00:23:7d:d5:46:59 media: Ethernet autoselect (10baseT/UTP ) status: active em0: flags=8843 metric 0 mtu 1500 options=19b ether 00:1b:21:30:ee:7e inet6 fe80::21b:21ff:fe30:ee7e%em0 prefixlen 64 scopeid 0x3 inet 152.66.115.62 netmask 0xffffff00 broadcast 152.66.115.255 inet6 2001:738:2001:2001::62 prefixlen 64 media: Ethernet autoselect (1000baseTX ) status: active lo0: flags=8049 metric 0 mtu 16384 inet6 2001:738:2001:1000::2 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 lo1: flags=8049 metric 0 mtu 16384 inet 152.66.116.116 netmask 0xffffffff inet6 2001:738:2001:1000::2 prefixlen 128 [root@splash /usr/home/goya]# jexec 1 /bin/sh # ifconfig bge0: flags=8802 metric 0 mtu 1500 options=9b ether 00:23:7d:d5:46:58 media: Ethernet autoselect (none) status: no carrier bge1: flags=8802 metric 0 mtu 1500 options=9b ether 00:23:7d:d5:46:59 media: Ethernet autoselect (10baseT/UTP ) status: active em0: flags=8843 metric 0 mtu 1500 options=19b ether 00:1b:21:30:ee:7e media: Ethernet autoselect (1000baseTX ) status: active lo0: flags=8049 metric 0 mtu 16384 inet6 2001:738:2001:1000::2 prefixlen 128 lo1: flags=8049 metric 0 mtu 16384 inet 152.66.116.116 netmask 0xffffffff inet6 2001:738:2001:1000::2 prefixlen 128 #