Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
08-22-2013, 04:02 AM
|
#1
|
LQ Newbie
Registered: Aug 2013
Posts: 6
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
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
|
|
|
08-22-2013, 04:02 PM
|
#2
|
Senior Member
Registered: Apr 2009
Posts: 1,892
Rep: ![Reputation: 163](https://www.linuxquestions.org/questions/images/reputation/reputation_pos.gif)
|
Do you set tap interface permission?
|
|
|
08-23-2013, 03:33 AM
|
#3
|
LQ Newbie
Registered: Aug 2013
Posts: 6
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
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
|
|
|
08-23-2013, 03:29 PM
|
#4
|
Senior Member
Registered: Apr 2009
Posts: 1,892
Rep: ![Reputation: 163](https://www.linuxquestions.org/questions/images/reputation/reputation_pos.gif)
|
How about broadcast packet, such as ARP request? Can tap interface receive broadcast packet?
|
|
|
08-27-2013, 03:30 AM
|
#5
|
LQ Newbie
Registered: Aug 2013
Posts: 6
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
The tap interface is receiving ARP requests, nini09.
|
|
|
08-27-2013, 03:11 PM
|
#6
|
Senior Member
Registered: Apr 2009
Posts: 1,892
Rep: ![Reputation: 163](https://www.linuxquestions.org/questions/images/reputation/reputation_pos.gif)
|
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.
|
|
|
08-28-2013, 03:32 AM
|
#7
|
LQ Newbie
Registered: Aug 2013
Posts: 6
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Hi again nini09,
Do you mean someone has reported this issue on linuxquestions before?
Thanks
|
|
|
08-28-2013, 03:43 PM
|
#8
|
Senior Member
Registered: Apr 2009
Posts: 1,892
Rep: ![Reputation: 163](https://www.linuxquestions.org/questions/images/reputation/reputation_pos.gif)
|
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.
|
09-02-2013, 03:28 AM
|
#9
|
LQ Newbie
Registered: Aug 2013
Posts: 6
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Thanks for your help nini09,
I will have another look into that then and see if that fixes my issue.
|
|
|
09-13-2013, 10:29 AM
|
#10
|
LQ Newbie
Registered: Aug 2013
Posts: 6
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Hi again nini09,
Just wanted to say thanks for you help! Your command worked perfectly.
Thanks
|
|
|
All times are GMT -5. The time now is 11:15 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|