LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-21-2009, 11:03 AM   #1
Dims
Member
 
Registered: Feb 2009
Posts: 151

Rep: Reputation: 15
Will bridge work without IP address?


If I have a machine with two NICs eth0 and eth 1 with different IPs, can I just do

brctl addbr br0
brctl addif eht0
brctl addif eht1

to make ethernet packets forwarding between subnets? I.e. may I not to assign IP address to the bridge?
 
Old 05-21-2009, 11:20 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
yess because bridge is working in layer2
 
Old 05-21-2009, 12:18 PM   #3
Dims
Member
 
Registered: Feb 2009
Posts: 151

Original Poster
Rep: Reputation: 15
I undertood now: bridge is working, but IPs of interfaces are unpingeable since linux does not see interfaces.
 
Old 05-21-2009, 02:01 PM   #4
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
What do you mean?
Quote:
since linux does not see interfaces
you can assign IPs for interfaces and it can ping & ssh
 
Old 05-24-2009, 01:12 AM   #5
Dims
Member
 
Registered: Feb 2009
Posts: 151

Original Poster
Rep: Reputation: 15
My interfaces already had IPs.

After commands

brctl addbr br0
brctl addif eht0
brctl addif eht1
ifconfig br0 up

linux became inaccessible, but the bridge was working (since device behind it was accessible).

How do you explain this?
 
Old 05-24-2009, 01:16 AM   #6
Dims
Member
 
Registered: Feb 2009
Posts: 151

Original Poster
Rep: Reputation: 15
My explanation is follow:

1) bridge wa "eating" all data from network to eth0 or eth1, so linux received nothing from eth0 and eth1
2) br0 had no IP, so linux expected nothing from it

Hence, linux was not "feel" network existence.
 
  


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
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
WETG54 Bridge not receiving IP Address Piney Woods Linux - Networking 1 02-14-2006 02:30 PM
bridge doesn't work on fedora virtual machine Yuri1312 Linux - Networking 3 11-21-2005 05:41 AM
bridge port mac address fssengg Linux - Networking 3 05-30-2005 07:41 AM
Wireless Linux through a bridge: Will it work? NSFrankenstein Linux - Wireless Networking 3 09-15-2004 06:31 PM

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

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