Linux - NetworkingThis 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.
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.
I have configured bridging based on information from a few web pages Google found. Traffic is being seen (using tcpdump) on both interfaces that are configured. However, the traffic is not going between them. What could be missing?
The bridging machine has 3 NICS: eth0, eth1, eth2. eth0 is configured normally with an IP address (I can login via ssh to it just fine). The bridge is named br0 and uses eth1 and eth2 (a dual NIC card for convenience identifying which NICs are the bridge).
A script executes these commands:
Code:
bash-4.1# /etc/rc.d/rc.bridge-up br0 eth1 eth2
EXECUTING brctl addbr br0
EXECUTING brctl stp br0 off
EXECUTING brctl setageing br0 100
EXECUTING ifconfig eth1 down
EXECUTING ifconfig eth2 down
EXECUTING brctl addif br0 eth1
EXECUTING brctl addif br0 eth2
EXECUTING ifconfig eth1 up 0.0.0.0
EXECUTING ifconfig eth2 up 0.0.0.0
EXECUTING brctl show br0
bridge name bridge id STP enabled interfaces
br0 8000.0025900f20e2 no eth1
eth2
bash-4.1#
Then I run tcpdump on eth1 and boot up the netbook connected to it (wireless disabled):
When I do tcpdump for eth2, I see lots of traffic of all kinds since eth2 is connected to the LAN.
The tcpdump commands show me both ethernet ports work, and I see traffic coming in from each. But I see nothing being forwarded over to the other interface within that bridge.
Here is some other info:
Code:
bash-4.1# head /proc/sys/net/bridge/*
==> /proc/sys/net/bridge/bridge-nf-call-arptables <==
1
==> /proc/sys/net/bridge/bridge-nf-call-ip6tables <==
1
==> /proc/sys/net/bridge/bridge-nf-call-iptables <==
1
==> /proc/sys/net/bridge/bridge-nf-filter-pppoe-tagged <==
0
==> /proc/sys/net/bridge/bridge-nf-filter-vlan-tagged <==
0
bash-4.1# grep brid /proc/modules
bridge 49287 0 - Live 0xffffffffa023e000
stp 1600 1 bridge, Live 0xffffffffa0238000
llc 3801 2 bridge,stp, Live 0xffffffffa0232000
bash-4.1# uname -a
Linux nano 2.6.33.4 #3 SMP Wed May 12 23:13:09 CDT 2010 x86_64 AMD Athlon(tm) II X2 220 Processor AuthenticAMD GNU/Linux
bash-4.1# cat /etc/slackware-version
Slackware 13.1.0
bash-4.1#
What more is needed to make the bridging work?
edit: Oh, and I did this with stp on, too ... no difference.
Found the answer. What was documented as "optional" to configure an IP address onto the bridge, which made sense on a machine with only 2 NICs (so you can ssh into that machine itself), is really NOT OPTIONAL, because it is needed to bring the bridge itself into a running state (something that "brctl" has no provision to do, even though it might make sense to do it there). What's optional is the IP address. My machine has 3 NICs, 1 dedicated to TCP/IP, 2 dedicated to the bridge.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.