LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-14-2006, 07:22 PM   #1
big_ginge21
LQ Newbie
 
Registered: Jun 2006
Posts: 12

Rep: Reputation: 0
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

Last edited by big_ginge21; 06-14-2006 at 08:00 PM.
 
Old 06-14-2006, 08:02 PM   #2
big_ginge21
LQ Newbie
 
Registered: Jun 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Oh aye, also edited:

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

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

Cheers
 
Old 06-15-2006, 06:02 PM   #3
big_ginge21
LQ Newbie
 
Registered: Jun 2006
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 06-21-2006, 07:15 AM   #4
big_ginge21
LQ Newbie
 
Registered: Jun 2006
Posts: 12

Original Poster
Rep: Reputation: 0
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!
 
Old 06-21-2006, 07:31 AM   #5
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

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

$ nslookup google.com
 
Old 06-21-2006, 08:35 AM   #6
intel_ro
Member
 
Registered: Jun 2006
Location: Romania
Distribution: RH 9, FD 2,3,4,5 Debian
Posts: 37

Rep: Reputation: 15
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
 
Old 06-21-2006, 02:21 PM   #7
big_ginge21
LQ Newbie
 
Registered: Jun 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks a million!!!! It works! Was getting well P!ssed for a bit there!

Much appreciated
 
Old 01-04-2007, 07:49 PM   #8
filex
Member
 
Registered: Sep 2004
Posts: 56

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


Reply



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
Findinf IP address on Fedora Core 4 ssmaitra Linux - Software 2 01-23-2006 01:44 PM
Getting the environment address? (Fedora Core 4) ComPort Linux - Security 2 11-01-2005 09:32 PM
Low send traffic in Fedora Core 3 Skull Linux - Networking 1 08-26-2005 04:09 AM
Low outgoing traffic in Fedora Core 3 Skull Fedora 0 08-24-2005 03:58 AM
Drop pings from specific IP address GUIPenguin Linux - Networking 10 10-13-2004 10:18 PM

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

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