From owner-freebsd-net Sat Jan 5 19:58:30 2002 Delivered-To: freebsd-net@freebsd.org Received: from granger.mail.mindspring.net (granger.mail.mindspring.net [207.69.200.148]) by hub.freebsd.org (Postfix) with ESMTP id CE6B637B402 for ; Sat, 5 Jan 2002 19:58:26 -0800 (PST) Received: from user-uiveql9.dsl.mindspring.com ([165.247.106.169] helo=mindspring.com) by granger.mail.mindspring.net with esmtp (Exim 3.33 #1) id 16N4S1-00088x-00; Sat, 05 Jan 2002 22:58:25 -0500 Message-ID: <3C372238.F529FB40@mindspring.com> Date: Sat, 05 Jan 2002 10:56:40 -0500 From: Naga R Narayanaswamy X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.4-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@freebsd.org, drwilco@drwilco.net Subject: Re: Bridging and 'pseudo-device tap' and PPPoE Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > From: Rogier R. Mulhuijzen > To: Naga R Narayanaswamy > Cc: freebsd-net@freebsd.org > Sent: Friday, January 04, 2002 8:26 PM > Subject: Re: Bridging and 'pseudo-device tap' and PPPoE > > At 07:39 3-1-2002 -0500, you wrote: > >> Hello: >> >> I want to create pseudo ethernet devices to simulate many NICs on >> a PC. In Solaris, we can do "ifconfig hme0:1 10.1.1.1 up" >> hme0:2 etc to create logival interfaces. I am trying to do a similar thing >> on FreeBSD. But after searching the archives, I find that I have to use >> tap device. Is there any other way than the approach I am using below. > Doing that on Solaris gives you additional MAC addresses? No, but I can configure my own MAC address as in freebsd by changing the mac address using ifconfig lladdr option. > I've used bridging with tap devices plenty. Works fine for me. What bridging method do you use with tap device ? option BRIDGE in kernel method OR netgraph bridging method? > TAP devices don't actually work unless there's a process that has the /dev/ entry > opened and reads from it (well, they'll buffer a little). So, just let a process like "cat /dev/tap0" read the tap device, I assume. Thanks Naga To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message