LinuxQuestions.org
Help answer threads with 0 replies.
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 12-27-2005, 12:35 AM   #1
rarsa
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Puppy Linux/ Mint
Posts: 211

Rep: Reputation: 31
Bridging in FC3 not forwarding.


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.
 
Old 12-27-2005, 01:21 AM   #2
enthusiast_abdul
LQ Newbie
 
Registered: Oct 2005
Location: India
Distribution: Redhat 9.0
Posts: 20

Rep: Reputation: 0
try things in this order and see if they work. The logic here is to bring UP the interfaces before adding them to your bridge.

#ifconfig wlan0 0.0.0.0 up
# ifconfig eth0 0.0.0.0 up
# brctl addbr br0
# brctl addif br0 wlan0
# brctl addif br0 eth0
# ifconfig br0 192.168.1.99 netmask 255.255.255.0
# route add default gw 192.168.1.1
 
  


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
Fedora Bridging AndrOvr Linux - Software 1 07-28-2006 07:31 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 01:08 PM
X forwarding not working on FC3 bakwas_internet Fedora 2 02-26-2006 04:15 AM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 11:37 AM
Bridging? JapaneseKamikaz Linux - Networking 0 03-11-2003 04:30 AM

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

All times are GMT -5. The time now is 08:02 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