LinuxQuestions.org
Review your favorite Linux distribution.
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 11-03-2005, 12:47 AM   #1
paddyjoy
Member
 
Registered: Apr 2005
Location: Sydney
Distribution: FC5
Posts: 174

Rep: Reputation: 30
Network bridge problem


I have two network cards in my pc, eth0 and eth1, both connected to a router/DHCP server. I'm using the following commands to set up a network bridge between eth1 and tap0 (openvpn device).

Starting with all interfaces down:

I run the following commands
Code:
openvpn --mktun --dev tap0

brctl addbr br0
brctl addif br0 eth1
brctl addif br0 tap0

ifconfig tap0 0.0.0.0 promisc up

ifconfig eth1 0.0.0.0 promisc up

ifconfig br0 192.168.17.146 netmask 255.255.255.0 broadcast 192.168.17.155
This bit works fine but it seems like the bridge isn't working, basically I can't ping anything.

Now for the strange bit If I bring up eth0 with ifup eth0 everything starts working fine, even if I bring eth0 back down and pull the cable out of the network card everything continues to work!

My theory is that when I bring up eth0 using the DHCP server in the router it gets extra information gateway etc.. that isn't present when I just bring the bridge up with

Code:
ifconfig br0 192.168.17.146 netmask 255.255.255.0 broadcast 192.168.17.155
Does this make sense? Does anyone have any ideas how I can get around this problem?

Paddy
 
Old 11-03-2005, 12:52 AM   #2
Interlaced
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Rep: Reputation: 0
Thats an interesting broadcast address u have there, set it to .255 on the last octet and see if that helps.
 
Old 11-03-2005, 01:00 AM   #3
paddyjoy
Member
 
Registered: Apr 2005
Location: Sydney
Distribution: FC5
Posts: 174

Original Poster
Rep: Reputation: 30
Smile

Thanks I would have never noticed that What does the broadcast address do? I'll have to try it out later and see if it fixes anything.
 
Old 11-03-2005, 01:02 AM   #4
Interlaced
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Rep: Reputation: 0
Well my memory isnt serving me to well so i cant remember but i no its some sort of ip address broadcast (yea of course duh) im not to sure if it is related to an arp broadcast or not, but it may well be the problem, either way the address u were setting for the broadcast, the last octet was not an actual address reserved for broadcasting like 255, not sure if it would make a difference or not, but yea give it a shot

Last edited by Interlaced; 11-03-2005 at 01:04 AM.
 
Old 11-03-2005, 05:46 AM   #5
paddyjoy
Member
 
Registered: Apr 2005
Location: Sydney
Distribution: FC5
Posts: 174

Original Poster
Rep: Reputation: 30
Thanks for the idea but unfortunately it didn't work, still have to bring up eth0 before I can get the bridge to work.

Paddy
 
  


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
Bridge simulating Network Lag, for developing network code for games intripoon Linux - Networking 18 10-27-2005 05:04 PM
Network bridge problem nocif Linux - Networking 0 01-13-2005 11:14 PM
network bridge Ryan450 Linux - Networking 1 08-26-2004 03:55 AM
Network bridge eqxro Linux - Networking 2 08-21-2004 07:46 PM
Bridge or internal network? What should i do? kokolisso Linux - Networking 3 01-13-2002 10:25 PM

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

All times are GMT -5. The time now is 09:07 PM.

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