Messages in this thread | | | Date | Tue, 15 Jun 1999 14:28:25 +0300 (EEST) | From | Linux Kernel list <> | Subject | Re: Bridging with 2.2.5 |
| |
I had this problem too... you made the right steps but not all of them... you should enable forwarding with ipchains:
echo 1 > /proc/sys/net/ipv4/ip_forward ipchains -P forward DENY ipchains -A forward -s 127.0.0.2/24 0:65535 -d 0.0.0.0/0 0:65535 -j MASQ -p ICMP ipchains -A forward -s 127.0.0.3/24 0:65535 -d 0.0.0.0/0 0:65535 -j MASQ -p ICMP
you may want also to forward TCP and UDP also... it would be highly recommended but it depends on your intentions/setup....
I would also reccomend to change the IP addresses of the cards to some other available class lile 192.168.xxx.xxx and to upgrade your kernel to linux-2.2.10
In the same way you describe and I added to it what it is desbribed above the bridgind works fine here at my workplace....
On Fri, 11 Jun 1999 jake@broadjump.com wrote:
> I have been unsuccessful in getting bridging to work with RedHat 6.0. I > can see network traffic on both ethernet interfaces with tcpdump, and > brcfg says bridging is enabled. My ethernet interfaces are in promiscuous > mode, and 802.1 packets are being sent out from my box. But I cannot ping > two machines separated by the bridge. I've read every HOWTO I can find, > searched DejaNews and many archives for answers, but to no avail. I have > attached my configuration below. Personal replies welcome. > > # uname -a > Linux cerberus 2.2.5-15 #7 Thu Jun 10 14:57:48 CDT 1999 i586 unknown > > # ifconfig > eth0 Link encap:Ethernet HWaddr 00:E0:29:2B:9E:67 > inet addr:127.0.0.2 Bcast:127.255.255.255 Mask:255.0.0.0 > UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 > RX packets:502186 errors:0 dropped:0 overruns:0 frame:0 > TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:100 > Interrupt:10 Base address:0xd800 > > eth1 Link encap:Ethernet HWaddr 00:20:AF:37:8C:21 > inet addr:127.0.0.3 Bcast:127.255.255.255 Mask:255.0.0.0 > UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 > RX packets:18 errors:0 dropped:0 overruns:0 frame:0 > TX packets:1137 errors:0 dropped:0 overruns:0 carrier:755 > collisions:0 txqueuelen:100 > Interrupt:5 Base address:0x300 > > lo Link encap:Local Loopback > inet addr:127.0.0.1 Mask:255.0.0.0 > UP LOOPBACK RUNNING MTU:3924 Metric:1 > RX packets:46 errors:0 dropped:0 overruns:0 frame:0 > TX packets:46 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > > # netstat -nr > Kernel IP routing table > Destination Gateway Genmask Flags MSS Window irtt Iface > 127.0.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 > 127.0.0.3 0.0.0.0 255.255.255.255 UH 0 0 0 eth1 > 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo > 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0 > 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1 > > # ./brcfg > bridging is ENABLED debugging is ENABLED prot-stats are DISABLED > bridge id 0x0080 00:e0:29:2b:9e:67 > designated root 0x0080 00:d0:58:83:fb:c1 > bridge max age 20 max age 5120 > bridge hello time 2 hello time 512 > bridge forward delay 15 forward delay 3840 > root path cost 100 root port 1 > flags NONE > --- port stats --- > port 1 port id 0x8001 port state LISTENING (0x1) > designated root 0x0080 00:d0:58:83:fb:c1 > designated bridge 0x0080 00:d0:58:83:fb:c1 > path cost 100 designated cost 0 > designated port 32787 flags NONE > port 2 port id 0x8002 port state LISTENING (0x1) > designated root 0x0080 00:d0:58:83:fb:c1 > designated bridge 0x0080 00:e0:29:2b:9e:67 > path cost 0 designated cost 100 > designated port 32770 flags NONE > Policy Accept all protocols > exempt protocols 0 > > # cat /proc/sys/net/ipv4/ip_forward > 1 > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.rutgers.edu > Please read the FAQ at http://www.tux.org/lkml/ >
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |