LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 04: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, 04:02 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,727

Rep: Reputation: 143Reputation: 143
Do you set tap interface permission?
 
Old 08-23-2013, 03: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 03:36 AM. Reason: Added detail
 
Old 08-23-2013, 03:29 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,727

Rep: Reputation: 143Reputation: 143
How about broadcast packet, such as ARP request? Can tap interface receive broadcast packet?
 
Old 08-27-2013, 03: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, 03:11 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,727

Rep: Reputation: 143Reputation: 143
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, 03: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, 03:43 PM   #8
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,727

Rep: Reputation: 143Reputation: 143
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, 03: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, 10: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:24 AM
Need help with injecting raw ethernet frames using TAP interface knonaka Programming 1 04-29-2010 03:31 AM
Problem Bridging Wired Interface to Wireless Interface. JivanAmara Linux - Networking 0 08-17-2009 02:25 AM
Bridge between ethernet interface and tap interface jayadhanesh Linux - Networking 3 04-13-2009 12:32 AM
how can i shutdown the PHYSICAL interface of an ethernet interface markraem Linux - Networking 2 04-12-2007 03:29 PM

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

All times are GMT -5. The time now is 01:13 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration