All of lore.kernel.org
 help / color / mirror / Atom feed
[parent not found: <40D08A26.1040907@tuxdriver.com>]
* [Bridge] Bridging between user processes
@ 2004-06-16  4:04 Derek Smalls
  0 siblings, 0 replies; 6+ messages in thread
From: Derek Smalls @ 2004-06-16  4:04 UTC (permalink / raw)
  To: bridge

Hi, 

What is the easiest way to bridge between two
user-space processes that talk directly to Ethernet
interfaces? 

I have two applications that write/read Ethernet
frames to/from Linux Ethernet ports (e.g. eth0). The
applications can successfully talk to each other when
they run on two machines connected over Ethernet. I
would like to be able to test them on a single machine
without employing the physical network. Would TAP +
bridging do the job? 

If so, what am I doing wrong?  Linux 2.4.20, root
user. I set up tap interfaces like this: 

>tunctl tap4 
>ifconfig tap4 4.4.4.4 promisc up 
>tunctl tap5 
>ifconfig tap5 5.5.5.5 promisc up 

I then set up the bridge and add the tap interfaces to
it: 

>brctl addbr tapbr 
>brctl setfd tapbr 0 
>brctl sethello tapbr 0 
>brctl stp tapbr off 
>ifconfig tapbr 7.7.7.7 netmask 255.255.255.0 up
>brctl addif tapbr tap4 
>brctl addif tapbr tap5 

I then do a ping over tap4: 
>ping -I tap4 8.8.8.8 

and tcpdump on tap5: 
>tcpdump -i tap5 

and see nothing. Shouldn't I see the ping requests on
tap5 now? 

BTW, if I enable STP on the bridge I start seeing the
STP frames on tap5. 

Thanks! 

Derek 




		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-06-17 22:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <C060DFCD9697A842B3189B458524FDC205D2D3@AIMAIL1.ai.aiinet.com>
2004-06-16 22:17 ` [Bridge] Bridging between user processes Derek Smalls
2004-06-17  4:34   ` Michael Renzmann
2004-06-17 22:29     ` [Bridge] Bridging between user processes - TAP question Derek Smalls
2004-06-17 22:52       ` Stephen Hemminger
     [not found] <40D08A26.1040907@tuxdriver.com>
2004-06-16 22:12 ` [Bridge] Bridging between user processes Derek Smalls
2004-06-16  4:04 Derek Smalls

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.