From owner-freebsd-net@FreeBSD.ORG Thu Jul 27 15:50:20 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 24EAE16A510 for ; Thu, 27 Jul 2006 15:50:19 +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 B26E543D79 for ; Thu, 27 Jul 2006 15:50:18 +0000 (GMT) (envelope-from dionch@freemail.gr) Received: by smtp.freemail.gr (Postfix, from userid 101) id 57226B79682; Thu, 27 Jul 2006 18:50:17 +0300 (EEST) Received: from CDION (unknown [62.38.9.197])by smtp.freemail.gr (Postfix) with ESMTP id A15F3A084A5; Thu, 27 Jul 2006 18:50:16 +0300 (EEST) Date: Thu, 27 Jul 2006 18:49:59 +0300 From: Chris Dionissopoulos X-Mailer: The Bat! (v3.80.06) Professional X-Priority: 3 (Normal) Message-ID: <8210225344.20060727184959@freemail.gr> To: Luigi Rizzo In-Reply-To: <20060726091619.A99336@xorpc.icir.org> References: <20060726071232.A96367@xorpc.icir.org> <563361368.20060726190713@freemail.gr> <20060726091619.A99336@xorpc.icir.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: net@freebsd.org Subject: Re[2]: 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: Thu, 27 Jul 2006 15:50:20 -0000 Hello Luigi, Wednesday, July 26, 2006, 7:16:19 PM, you wrote: >> > >> > ------+--------------+--------------+--------------+----- >> > | | | | >> > +-[modem1] +-[modem2] +-[modem3] +-[FreeBSD/ppp] >> > DSL#1 DSL#2 DSL#3 > ... >> if your switch supports vlan and 802.1q encapsulation, you would create > it doesn't so not applicable. >> another approach is to use 3 ng_ether interfaces with custom mac >> addresses defined and linked to the same ng_bridge node with physical: > hmmm, i think this won't work either, because each PADI > frame will reach all modems so i cannot differentiate > among the replies. As long as pppoe PADI(*) using broadcast mac (ff:ff:ff:ff:ff:ff) as destination there is no solution to distinguish them using a single broadcast domain(=LAN) (only one broadcast addr for each broadcast domain). How about to patch this netgraph node? http://venus.wsb-nlu.edu.pl/~dlupinsk/ng_mangle/ Adding a "dstmac" argument which changes destination mac for each transmitted packet, makes you free to use 3 mangled ng_ether(4) virtual nics in your ppp.conf. If it doesn't breaks anything (pppoe standart) it will work. right? And off course, using 3 physicals cross linked to each modem is the (obvious) solution. (*) http://en.wikipedia.org/wiki/Pppoe#PADI -- Best regards, Chris mailto:dionch@freemail.gr ____________________________________________________________________ http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου. http://www.freemail.gr - free email service for the Greek-speaking.