From owner-freebsd-net Fri Jan 4 16:41:23 2002 Delivered-To: freebsd-net@freebsd.org Received: from blount.mail.mindspring.net (blount.mail.mindspring.net [207.69.200.226]) by hub.freebsd.org (Postfix) with ESMTP id BAD5E37B41D for ; Fri, 4 Jan 2002 16:41:16 -0800 (PST) Received: from user-11202ba.dsl.mindspring.com ([66.32.9.106] helo=compaq) by blount.mail.mindspring.net with smtp (Exim 3.33 #1) id 16Metc-00014R-00 for freebsd-net@freebsd.org; Fri, 04 Jan 2002 19:41:12 -0500 Message-ID: <006f01c19453$aad27440$6a092042@compaq> From: "Naga R Narayanaswamy" To: Subject: Bridging and 'pseudo-device tap' and PPPoE Date: Thu, 3 Jan 2002 07:39:20 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_006C_01C19429.C1B1A7A0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 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 This is a multi-part message in MIME format. ------=_NextPart_000_006C_01C19429.C1B1A7A0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hello: I want to create pseudo ethernet devices to simulate many NICs on=20 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=20 tap device. Is there any other way than the approach I am using below. I reconfigured the kernel and I have configured the tap device. =20 ifconfig tap0 shows a MAC address and UP status. I assigned a IP address also. I want to make fxp0 and tap0 in one bridge group.=20 I tried both approaches, using "option BRIDGE" and ng_bridge example in /usr/share/examples. Is bridging supposed to work with tap devices? I do not see the bridging happen between tap0 and fxp0.=20 I can see the packet written on tap device when I do a =20 "hexdump /dev/tap0", but not on fxp0 (using ethereal).=20 (I am doing a ping out of tap interface). And when I have bridging turned on using ng_bridge, if I initiate a PPPoE session, I get socket already connected warning, but I do not see the PADI packet on the fxp0 interface at all. The goal is that I want to use tap0 device in ppp.conf and initiate a ppp -ddial =20 The goal is to have 100 tap devices and initiate pppoe sessions over each of the tap sessions=20 to simulate a 100 NIC cards with different mac addresses. Thanks Naga ------=_NextPart_000_006C_01C19429.C1B1A7A0 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
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=20 thing
on FreeBSD. But after searching the archives, I find that I have to = use=20
tap device. Is there any other way than the approach I am using=20 below.
 
I reconfigured the kernel and I have configured the tap = device. =20
ifconfig tap0 shows a MAC address and UP status.
I assigned a IP address also.
I want to make fxp0 and tap0 in one bridge group.
I tried both approaches, using "option BRIDGE"
and ng_bridge example in /usr/share/examples.
Is bridging supposed to work with tap devices?
 
I do not see the bridging  happen between tap0 and fxp0. =
I can see the packet written on tap device when I do a 
"hexdump /dev/tap0", but not on fxp0 (using ethereal).
(I am doing a ping out of tap interface).
And when I have bridging turned on using ng_bridge,
if I initiate a PPPoE session, I get socket already connected
warning, but I do not see the PADI packet on the fxp0 = interface
at all.
 
The goal is that I want to use tap0 device in ppp.conf
and initiate a ppp -ddial <service>
The goal is to have 100 tap devices and initiate
pppoe sessions over each of the tap sessions
to simulate a 100 NIC cards with different mac = addresses.
 
Thanks
Naga
------=_NextPart_000_006C_01C19429.C1B1A7A0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message