LinuxQuestions.org
Review your favorite Linux distribution.
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 02-19-2007, 07:20 AM   #1
sramy
LQ Newbie
 
Registered: Feb 2007
Posts: 6

Rep: Reputation: 0
Question Bridge in Fedora


Hello,
I am trying to make a bridge between 2 interfaces eth0 and eth1. I am using fedora and used the follwing commands to setup bridge.

brctl addbr br0
brctl stp br0 on
brctl addif br0 eth0
brctl addif br0 eth1
(ifdown eth0 1>/dev/null 2>&1
(ifdown eth1 1>/dev/null 2>&1
ifconfig eth0 0.0.0.0 up
ifconfig eth1 0.0.0.0 up
ifconfig br0 66.36.242.152 broadcast 66.36.243.255 netmask 255.255.254.0 up
route add default gw 66.36.242.1
for file in br0 eth0 eth1
do
echo "1" > /proc/sys/net/ipv4/conf/${file}/proxy_arp
echo "1" > /proc/sys/net/ipv4/conf/${file}/forwarding
done;
echo "1" > /proc/sys/net/ipv4/ip_forward

when i do ifconfig, i get this
br0 Link encap:Ethernet HWaddr 00:E0:81:44:BEA
inet addr:66.36.242.152 Bcast:66.36.243.255 Mask:255.255.254.0
inet6 addr: fe80::2e0:81ff:fe44:beda/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:157944 errors:0 dropped:0 overruns:0 frame:0
TX packets:1959 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9293243 (8.8 MiB) TX bytes:261400 (255.2 KiB)

eth0 Link encap:Ethernet HWaddr 00:E0:81:44:BEA
inet6 addr: fe80::2e0:81ff:fe44:beda/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:204701 errors:0 dropped:0 overruns:0 frame:0
TX packets:2454 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16924697 (16.1 MiB) TX bytes:319082 (311.6 KiB)
Interrupt:169

eth1 Link encap:Ethernet HWaddr 00:E0:81:44:BEB
inet6 addr: fe80::2e0:81ff:fe44:bedb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:528 errors:0 dropped:0 overruns:0 frame:0
TX packets:199334 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:47452 (46.3 KiB) TX bytes:16326981 (15.5 MiB)
Interrupt:169

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:42 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8431 (8.2 KiB) TX bytes:8431 (8.2 KiB)


we had connected a server(66.36.242.226) to the eth1 of( 66.36.242.152) with a cross over cable. so when we try to ping 66.36.242.226 from the outside world, then the ping failes. but if i ping from 66.36.242.152 to 66.36.242.226 then it works.

Could anyone please tell me how to test the bridge whether its working fine or is it some network issue.

The same above setup and commands with REDHAT Enterprise AS4 works but not in fedora.

awaiting your reply..
thanks in advance..

Ramy.
 
Old 02-20-2007, 08:56 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
What is "brctl"? I don't have it on my RedHat/Fedora systems.

Question - do you perhaps need to make a route from your primary NIC to your secondary? Is this the purpose of brctl? I've done the route addition by hand for a server that had internal and external NICs but haven't done any really "bridge" setup.
 
  


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 Core 5: Bridge, only allows pings to specific IP address. No other traffic big_ginge21 Linux - Networking 7 01-04-2007 07:49 PM
bridge doesn't work on fedora virtual machine Yuri1312 Linux - Networking 3 11-21-2005 05:41 AM
bridge configuration CARLiCiOUS Linux - Networking 2 03-15-2005 01:17 PM
What exactly is a bridge. zaicheke Linux - Networking 7 10-23-2004 06:12 PM
bridge Cubiq Linux - Networking 9 08-10-2002 11:13 AM

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

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