From owner-freebsd-current@FreeBSD.ORG Sat Aug 21 11:15:09 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E0451065670 for ; Sat, 21 Aug 2010 11:15:09 +0000 (UTC) (envelope-from hyama99@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9D37D8FC15 for ; Sat, 21 Aug 2010 11:15:08 +0000 (UTC) Received: by fxm4 with SMTP id 4so2585829fxm.13 for ; Sat, 21 Aug 2010 04:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=/AlGhXz9gU0QTPuV6oC1ExSeEZIIvDmvRaY7p9pdwnU=; b=bJNJBB8KGKIysmCN4Ksn1LgwNQwv7U5ZbJi1hTxBdsJqfHeKAEodHaLfQiiPeBJc5q svdbHY38gCVUxnx4sRtpUbXrF2EXCUQWePP8j6Yv2OuGj+JLc9+2m6HPqVdsIivRNcUz /mDi0Tj4fBCwxh/AvExSALwBAJMnGgjp/avvw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=sidHcCYLGk5rFJxem2c9WiS1ydugRWrKgVIblnk8aS2TF1G0vym8JFRzIRY4vSYqZh XPQXWGsjmDI1ZoZGhh11sGfFwaeVv0MLPMRZFbBRQfUXJFZ+7cYk9PbLrgx0GmG7tDws ZMSFncsiYjmCvh937gGjBTcEG9tRhoSKB5SJY= MIME-Version: 1.0 Received: by 10.223.122.198 with SMTP id m6mr2044031far.87.1282387479306; Sat, 21 Aug 2010 03:44:39 -0700 (PDT) Received: by 10.223.114.138 with HTTP; Sat, 21 Aug 2010 03:44:39 -0700 (PDT) Date: Sat, 21 Aug 2010 19:44:39 +0900 Message-ID: From: Hideki Yamamoto To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: vimage problem? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Aug 2010 11:15:09 -0000 Hi, I tried vimage and jail today. I have encountered the problem. In the vimage in Jail, I can not reach the internet server. It seems that routing table is incorrect. I do not know the real reason. This is the procedure I did. At first, I created the jail environment. # jail -c vnet host.hostname=vnet1.example.net path=/ persist # jexec 1 ifconfig lo0 inet 127.0.0.1/8 # jexec 1 ifconfig lo0 inet6 ::1 prefixlen 128 # ifconfig em0 vnet 1 # jexec 1 ifconfig em0 em0: flags=8842 metric 0 mtu 1500 options=219b ether 00:1c:c0:60:e7:2d media: Ethernet autoselect (100baseTX ) status: active In jail 1, IPv4 and IPv6 address seemed to be assigned by dhclient and rtsol. # jexec 1 dhclient em0 DHCPREQUEST on em0 to 255.255.255.255 port 67 DHCPACK from 192.168.1.1 bound to 192.168.1.4 -- renewal in 43200 seconds. # jexec 1 rtsol -F em0 # jexec 1 ifconfig em0 em0: flags=8843 metric 0 mtu 1500 options=219b ether 00:1c:c0:60:e7:2d inet6 fe80::21c:c0ff:fe60:e72d%em0 prefixlen 64 scopeid 0x2 inet 192.168.1.4 netmask 0xffffff00 broadcast 192.168.1.255 inet6 2001:c90:48d:7139:21c:c0ff:fe60:e72d prefixlen 64 autoconf nd6 options=23 media: Ethernet autoselect (100baseTX ) status: active At this moment, the routing table is as follows. It seems no problem. # jexec 1 netstat -rn -f inet Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.1.1 UGS 0 0 em0 127.0.0.1 link#1 UH 0 0 lo0 192.168.1.0/24 link#2 U 0 5 em0 192.168.1.4 link#2 UHS 0 0 lo0 # But I cannot reach a server in the Internet. # jexec 1 ping an-internet-host And I cannot detach em0 correctly. # ifconfig em0 -vnet 1 # ifconfig em0 em0: flags=8843 metric 0 mtu 1500 options=219b ether 00:1c:c0:60:e7:2d media: Ethernet autoselect (100baseTX ) status: active After detaching, IPv4 can be assigned by dhclient but IPv6 cannot. # dhclient em0 DHCPREQUEST on em0 to 255.255.255.255 port 67 DHCPACK from 192.168.1.1 bound to 192.168.1.4 -- renewal in 43200 seconds. # rtsol -F em0 get_llflag() failed, anyway I'll try sendmsg on em0: Can't assign requested address sendmsg on em0: Can't assign requested address sendmsg on em0: Can't assign requested address # And IPv4 address assigned by dhclient cannot be used to connect a server in the Internet. Dose anyone knows any resolution or something? My kernel is as follows. # uname -a FreeBSD 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Sat Aug 21 08:23:45 JST 2010 root@:/usr/obj/usr/src/sys/vimage i386 Best regards, Hideki Yamamoto