From owner-freebsd-net@FreeBSD.ORG Wed Jul 26 16:07:50 2006 Return-Path: X-Original-To: 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 C7B3816A4E1 for ; Wed, 26 Jul 2006 16:07:50 +0000 (UTC) (envelope-from dionch@freemail.gr) Received: from smtp.freemail.gr (smtp.freemail.gr [81.171.104.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3175443D99 for ; Wed, 26 Jul 2006 16:07:38 +0000 (GMT) (envelope-from dionch@freemail.gr) Received: by smtp.freemail.gr (Postfix, from userid 101) id 008ECA084AD; Wed, 26 Jul 2006 19:07:36 +0300 (EEST) Received: from CDION (unknown [62.38.9.197])by smtp.freemail.gr (Postfix) with ESMTP id 31388A084A6; Wed, 26 Jul 2006 19:07:35 +0300 (EEST) Date: Wed, 26 Jul 2006 19:07:13 +0300 From: Chris Dionissopoulos X-Mailer: The Bat! (v3.80.06) Professional X-Priority: 3 (Normal) Message-ID: <563361368.20060726190713@freemail.gr> To: Luigi Rizzo In-Reply-To: <20060726071232.A96367@xorpc.icir.org> References: <20060726071232.A96367@xorpc.icir.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: net@freebsd.org Subject: Re: multiple DSL modems and pppoe sessions on the same ethernet ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Chris Dionissopoulos List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jul 2006 16:07:50 -0000 Hello Luigi, Wednesday, July 26, 2006, 5:12:32 PM, you wrote: > hi, > i am trying to run, on a single FreeBSD box, multiple (3 in my case) > pppoe instances talking to as many DSL modems on the same ethernet cable > > ------+--------------+--------------+--------------+----- > | | | | > +-[modem1] +-[modem2] +-[modem3] +-[FreeBSD/ppp] > DSL#1 DSL#2 DSL#3 > Ideally, in /etc/ppp/ppp.conf i can write something like > > modem1: > set device PPPoE:rl0:dsl1 > ... > > modem2: > set device PPPoE:rl0:dsl2 > ... > > modem3: > set device PPPoE:rl0:dsl3 > ... > Any better ideas ? > > cheers > luigi if your switch supports vlan and 802.1q encapsulation, you would create 3 different vlans (100,200,300) with one port each and plug each modem, then, a trunk port with 3 vlans encapsulated (AKA tagged) and plug rl0 interface. then create vlan100,vlan200,vlan300 in physical rl0. and do the same ppp config: modem1: set device PPPoE:vlan100:dsl1 ... modem2: set device PPPoE:vlan200:dsl2 ... modem3: set device PPPoE:vlan300:dsl3 ... another approach is to use 3 ng_ether interfaces with custom mac addresses defined and linked to the same ng_bridge node with physical: rl0:upper-------| |-----upper:ngeth0 rl0:lower----ng_bridge-----lower:ngeth0 | | | |-----lower:ngeth1 | | |--------upper:ngeth1 | |----------lower:ngeth0 |------------upper:ngeth1 and use (only) ngeth0,ngeth1,ngeth2 as pppoe devices in ppp.conf. All untested and just in theory only. Let us know your experiences. -- Best regards, Chris mailto:dionch@freemail.gr ____________________________________________________________________ http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου. http://www.freemail.gr - free email service for the Greek-speaking.