From owner-freebsd-virtualization@FreeBSD.ORG Wed Dec 2 22:55:10 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 703DC1065703 for ; Wed, 2 Dec 2009 22:55:10 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [IPv6:2001:4068:10::3]) by mx1.freebsd.org (Postfix) with ESMTP id 1E1078FC16 for ; Wed, 2 Dec 2009 22:55:08 +0000 (UTC) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 90F7941C69F; Wed, 2 Dec 2009 23:55:06 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([192.168.74.103]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id LL31R9JCDnWa; Wed, 2 Dec 2009 23:55:06 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id EDA0941C6A7; Wed, 2 Dec 2009 23:55:05 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id 77A8F4448EC; Wed, 2 Dec 2009 22:52:06 +0000 (UTC) Date: Wed, 2 Dec 2009 22:52:06 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Justin Wong In-Reply-To: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> Message-ID: <20091202224841.O83957@maildrop.int.zabbadoz.net> References: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD virtualization mailing list Subject: Re: ppp in vimages? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2009 22:55:10 -0000 On Wed, 2 Dec 2009, Justin Wong wrote: Hi. > I am having trouble getting ppp to work within vimages. Without vimages, my > box is able to connect (via vr0 interface) and assign it to tun0. With Which version of FreeBSD are you using? > vimages, I assign vr0 to it (continuing with the name vr0 instead of eth0) > and ppp cannot detect it therefore I am unable to request for an IP. I am > wondering whether this is a limitation on vimages/jails running ppp. > > Here is the error I am receiving: > > Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: PPPoE: unknown host > Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: PPPoE: unknown host > Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: Device (PPPoE:vr0) > must bee > gin with a '/', a '!' or contain at least one ':' This sounds more like if you had some special charater in the config file somewhere? > Dec 1 09:24:53 n2 ppp[1481]: tun0: Phase: deflink: Enter pause (0) for > redialinn > g. > > Here is my ppp.conf: which I just started inside a vimage (with a different interface name) and it started just fine in -foreground, even though I don't have a single netgraph module loaded (in base system). > I also attempted to assign tun0 to a vimage, but it seems to lose its IP. What you would do if you have ppp running in base and want the data inside a vimage is to use a bridge. If you move an interface between network stacks basically all upper layer configuration is reset and initialized as if the interface was just created. -- Bjoern A. Zeeb It will not break if you know what you are doing.