LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Bridge in Fedora (https://www.linuxquestions.org/questions/linux-networking-3/bridge-in-fedora-530383/)

sramy 02-19-2007 07:20 AM

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:BE:DA
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:BE:DA
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:BE:DB
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.

MensaWater 02-20-2007 08:56 AM

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.


All times are GMT -5. The time now is 12:30 AM.