LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Fedora Core 5: Bridge, only allows pings to specific IP address. No other traffic (https://www.linuxquestions.org/questions/linux-networking-3/fedora-core-5-bridge-only-allows-pings-to-specific-ip-address-no-other-traffic-454849/)

big_ginge21 06-14-2006 07:22 PM

Fedora Core 5: Bridge, only allows pings to specific IP address. No other traffic
 
First bash at setting a Bridge up.

All seems to be going ok, however my bridge is set up, the Linux box can ping www sites, the modem router and the Windows machine. The Box is bridging between Windows and the modem router.

Problem: The windows machine can ping the router, Linux and google's IP addy, however can not ping using google.com or do anything more exiting!

Windows machine cannot seem to renew IP address from router either, i have done the following on my Linux box:

# yum install bridge-utils bridge-utils-devel

Ran ok and Updated.

Then configured the bridge: all interfaces were down before starting

--Comments are so you can all let me know if i am misunderstanding what i am doing ;) )----

# ifconfig eth0 0.0.0.0 (Setting IP addy)
# ifconfig eth1 0.0.0.0
# brctl addbr Home (Bridge name)
# brctl addif Home eth0 (Adding interface)
# brctl addif Home eth1
# dhclient Home (Allowing it to turn off the 30 sec delay for DHCP)
# ifconfig Home up (Brining interface up)

Linux was getting an IP addy assigned from the Router etc.

Sorry for the Full blown Rant, just not sure how much info everyone might need :)

Any help much appreciated!

Thanx

big_ginge21 06-14-2006 08:02 PM

Oh aye, also edited:

/etc/sysconfig/network-scripts/ifcfg-eth0 and eth1 to:

DEVICE=eth0 (or eth1)
HWADDR= bla bla bla
ONBOOT=no

Cheers :)

big_ginge21 06-15-2006 06:02 PM

Evening all!

Thought that ebtables might be throwing up some problems, so i tried telling it to Accept everything. Cleared all the settings and started with:

ebtables -F INPUT
ebtables -F OUTPUT
ebtables -F FORWARD

ebtables -P INPUT ACCEPT
ebtables -P OUTPUT ACCEPT
ebtables -P FORWARD ACCEPT

Then entered all of the above, but swaped # ifconfig Home up with dhclient Home - which i now know tells it to accept a DHCP assigned addy.

I did a little more testing and i can connect to google through my browser on the windows machine using Google's IP address and other sites, but still no browsing!

Any suggestions welcome :)

big_ginge21 06-21-2006 07:15 AM

Any Suggestions? Do you need more information?

Ive now created a logon script contaning the following:

ebtables -F INPUT
ebtables -F OUTPUT
ebtables -F FORWARD

ebtables -P INPUT ACCEPT
ebtables -P OUTPUT ACCEPT
ebtables -P FORWARD ACCEPT

ifconfig eth0 0.0.0.0
ifconfig eth1 0.0.0.0

brctl addbr Home
brctl addif Home eth0
brctl addif Home eht1
brctl setfd Home 0
brctl setbridgeprio Home 1
brctl sethello Home 1

dhclient Home
ifconfig Home up

And the files in /etc/sysconfig/network-scripts/ifcfg-eth0 or eth1 is now

DEVICE=eth0 (or eth1)
BOOTPTOT=static
ONBOOT=no
TYPE=Ethernet

Any suggestions welcome! This is being wide!

Crito 06-21-2006 07:31 AM

If you can connect by IP but not by FQDN, then most likely it's a name resolution problem. Try:

$ nslookup google.com

intel_ro 06-21-2006 08:35 AM

i think u still ned to enable ip_forward
echo "1" >/proc/sys/net/ipv4/ip_forward if u wana to let the traffic pass tru

big_ginge21 06-21-2006 02:21 PM

Thanks a million!!!! It works! Was getting well P!ssed for a bit there!

Much appreciated :D

filex 01-04-2007 07:49 PM

I tested on my opensuse 10.2 and it's working after I STOP the firewall.


All times are GMT -5. The time now is 02:21 AM.