From owner-freebsd-net@FreeBSD.ORG Thu Jun 16 16:48:59 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D14916A41C for ; Thu, 16 Jun 2005 16:48:59 +0000 (GMT) (envelope-from raglon@packetfront.com) Received: from mail.packetfront.com (mail.packetfront.com [212.247.6.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 438F643D49 for ; Thu, 16 Jun 2005 16:48:58 +0000 (GMT) (envelope-from raglon@packetfront.com) Received: from localhost (localhost [127.0.0.1]) by mail.packetfront.com (Postfix) with ESMTP id 05DB3A3F73 for ; Thu, 16 Jun 2005 18:48:57 +0200 (CEST) Received: from mail.packetfront.com ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16827-04 for ; Thu, 16 Jun 2005 18:48:56 +0200 (CEST) Received: from [192.168.1.159] (pf-raglon.int.packetfront.com [192.168.1.159]) by mail.packetfront.com (Postfix) with ESMTP id BC2E8A3F71 for ; Thu, 16 Jun 2005 18:48:56 +0200 (CEST) Message-ID: <42B1AD6E.8010600@packetfront.com> Date: Thu, 16 Jun 2005 18:48:46 +0200 From: Ragnar Lonn User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <20050615114556.6df96e8c.lists@yazzy.org> <1118925438.91936.2.camel@realtime.exit.com> <20050616144707.18bfa000.lists@yazzy.org> <18857.130.76.32.16.1118934349.squirrel@www.frob.org> In-Reply-To: <18857.130.76.32.16.1118934349.squirrel@www.frob.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at packetfront.com Subject: PPPoE on virtual interfaces inside vimages? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2005 16:48:59 -0000 Yet another complex question regarding vimage/netgraph :-) I'm trying to use the ppp program to do PPPoE on an ngeth interface without much luck. I'm using the following Netgraph tree setup: upper---link0 [fxp0] [ng_bridge] link2---ds [ng_vlan] vlan101--- ether [ngeth0@vimage1] lower---link1 The physical ethernet interface fxp0 has setautosrc=0 configured and the ngeth interface has its own unique MAC address set. Packets sent out are thus tagged with VLAN id 101 and gets a certain MAC address. All of this behaviour is a necessity for the application we run (client simulations - The VLAN node actually has hundreds of upstream VLAN hooks connected to hundreds of ngeth interfaces in hundreds of vimages). Now, the ppp program uses Netgraph to connect to the "orphan" hook of a real ethernet interface, so when I try to run it in a vimage on the ngeth0 interface there it complains that the interface type is wrong (I have patched the kernel so it is possible to create ng_sockets inside any vimage so that's not a problem at least). It wants an ng_ether interface, with an "orphans" hook. Is it possible to have ppp connect to the ng_eiface (ngeth) interface instead of a real physical interface, and how should I do that? Or if not, what would be the best way to be able to do PPPoE inside a vimage, while simultaneously forcing VLAN-tagging and MAC address overwriting? Regards, /Ragnar