LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-22-2013, 03:02 AM   #1
rjm1
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Rep: Reputation: Disabled
Bridging tap interface with ethernet interface


Hi everyone,

I am currently trying to set up a tap interface on my system. I have created a bridge between an ethernet interface and this tap interface using brctl. I set both the ethernet and tap interfaces to 0.0.0.0 and promisc before adding them to the bridge, and set the bridge to an IP of 192.168.10.2.

I then tried to ping the bridge from another box on the 192.168.10.X network. Using tcpdump I am able to see the packets entering both the bridge, and the ethernet interfaces. However, tcpdump shows no packets reaching the tap interface. I need to be able to ping this tap interface from another box on the same interface.

I am mistaken in thinking that the bridge should send the packets to both interfaces? Any help on fixing this porblem would be much appreciated.

Thanks
 
Old 08-22-2013, 03:02 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
Do you set tap interface permission?
 
Old 08-23-2013, 02:33 AM   #3
rjm1
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi nini09,

Thanks for your reply.
Yes I have the permissions set correctly. Everyone has read/write permissions to /dev/net/tun.

Edit: I am also running tcpdump as root

Last edited by rjm1; 08-23-2013 at 02:36 AM. Reason: Added detail
 
Old 08-23-2013, 02:29 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
How about broadcast packet, such as ARP request? Can tap interface receive broadcast packet?
 
Old 08-27-2013, 02:30 AM   #5
rjm1
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
The tap interface is receiving ARP requests, nini09.
 
Old 08-27-2013, 02:11 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
Someone report this kind of the behavior. The bridge is like switch, not hub. The switch only broadcast the broadcast packet, such as ARP request, doesn't broadcast unicast packet. The Hub broadcast every packet.
 
Old 08-28-2013, 02:32 AM   #7
rjm1
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi again nini09,

Do you mean someone has reported this issue on linuxquestions before?

Thanks
 
Old 08-28-2013, 02:43 PM   #8
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
Someone get same behavior, broadcast packet is different from unicast.
By default, bridge on Linux is like switch. But if you want to change the behavior, like Hub, a side affect command could make it.
brctl setageing <bridgename> 0
 
1 members found this post helpful.
Old 09-02-2013, 02:28 AM   #9
rjm1
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks for your help nini09,

I will have another look into that then and see if that fixes my issue.
 
Old 09-13-2013, 09:29 AM   #10
rjm1
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi again nini09,

Just wanted to say thanks for you help! Your command worked perfectly.

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ethernet Bridging with a TAP-Device jubi4d Linux - Networking 1 01-28-2012 06:24 AM
Need help with injecting raw ethernet frames using TAP interface knonaka Programming 1 04-29-2010 02:31 AM
Problem Bridging Wired Interface to Wireless Interface. JivanAmara Linux - Networking 0 08-17-2009 01:25 AM
Bridge between ethernet interface and tap interface jayadhanesh Linux - Networking 3 04-12-2009 11:32 PM
how can i shutdown the PHYSICAL interface of an ethernet interface markraem Linux - Networking 2 04-12-2007 02:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration