Finally I gave it up searching on my own. I've followed the instructions from many sites (most being the same instructions) to set up my FC3 box as a bridge to no avail.
I need a pointer on what I'm doing wrong:
Here is my simple network topology.
Code:
Internet
|
V
cable modem
|
V
wireless router (192.168.1.1)
|
V
FC3 box (with wireless card wlan0 and wired card eth0) (192.168.1.99)
|
V
FC4 box (with wired card eth0) (192.168.1.97)
Eventually the FC4 box will have a wireless card (very soon) but I still want to understand how to setup bridging.
Here is the situation
The FC3 box is dual boot and bridging is working correctly with Windows XP. My FC4 box can connect through it to the internet.
The FC3 box connects OK to the internet and to the FC4 box.
The FC4 box connects OK to the FC3 box (I can mutually ping and ssh)
The FC4 box cannot ping the wireless router or 'see' beyond the FC3 box.
Here is what I've done (based on instructions from the official bridge-utils HOWTO that are replicated in many sites)
Code:
On the FC3 box:
# ifconfig wlan0 down
# ifconfig eth0 down
# brctl addbr br0
# brctl addif br0 wlan0
# brctl addif br0 eth0
# ifconfig wlan0 0.0.0.0 promiscuous up
# ifconfig eth0 0.0.0.0 promiscuous up
# ifconfig br0 192.168.1.99 netmask 255.255.255.0
# route add default gw 192.168.1.1
Here is my routing table:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 br0
Here are the macs found by the bridge (in parentesis my comments)
# brctl showmacs br0
port no mac addr is local? ageing timer
1 00:06:25:9a:d1:98 no 26.58 (router's mac)
1 00:0c:76:ca:eb:1d yes 0.00 (FC3 wlan0's mac)
2 00:13:20:1e:13:42 yes 0.00 (FC3 eth0's mac)
2 00:50:ba:4c:e8:30 no 17.65 (FC4 eth0 mac)
As you can see the bridge 'sees' both ends of the network.
I've also tried setting the IP tables on the FC4 box
Code:
# iptables -I FORWARD -j ACCEPT
# iptables -A FORWARD -i br0 -j ACCEPT
# iptables -x -v --line-numbers -L FORWARD
Chain FORWARD (policy DROP 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 0 0 ACCEPT all -- any any anywhere anywhere
2 0 0 ACCEPT all -- br0 any anywhere anywhere
I've also followed the Fedora specific instructions (
http://fedoranews.org/blog/?p=620) with exactly the same results.
The FC4 interface is configured with IP 192.168.1.97 netmask 255.255.255.0 and gateway 192.168.1.1. As I said before the network in FC4 is working because I can ping the FC3 box and when I setup the bridge in WinXP I can actually browse.
So... What is the reason for the FC4 not to see the 'other' side of the bridge? Any clues?
Thank you.