Ethernet Bridge development
 help / color / mirror / Atom feed
* [Bridge] which interface for IP address?
@ 2010-05-05  8:06 Lars Täuber
  2010-05-05 15:20 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Täuber @ 2010-05-05  8:06 UTC (permalink / raw)
  To: bridge

Hi there,

why do all the howtos set the ip address to the brigde? Isn't it also possible to assign the address the real interface?
What's the difference between assigning the address to the bridge and assigning the address to the real interface contained by the bridge?

The situation:

virtual machine host:
eth0
vif0 (for virtual machine)
...
vifx (for virtual machine)
br0  (contains eth0 and vif*)

Whats the difference between

eth0 192.168.1.4
br0  0.0.0.0

and

eth0 0.0.0.0
br0  192.168.1.4

??

Thanks
Lars

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bridge] which interface for IP address?
  2010-05-05  8:06 [Bridge] which interface for IP address? Lars Täuber
@ 2010-05-05 15:20 ` Stephen Hemminger
  2010-05-06  7:08   ` Lars Täuber
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2010-05-05 15:20 UTC (permalink / raw)
  To: Lars Täuber; +Cc: bridge

On Wed, 5 May 2010 10:06:04 +0200
Lars Täuber <taeuber@bbaw.de> wrote:

> Hi there,
> 
> why do all the howtos set the ip address to the brigde? Isn't it also possible to assign the address the real interface?

No. packets get diverted to the bridge before IP processing.

> What's the difference between assigning the address to the bridge and assigning the address to the real interface contained by the bridge?
> 

You end up with partial connectivity (send but not receive).

-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bridge] which interface for IP address?
  2010-05-05 15:20 ` Stephen Hemminger
@ 2010-05-06  7:08   ` Lars Täuber
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Täuber @ 2010-05-06  7:08 UTC (permalink / raw)
  To: bridge

Stephen Hemminger <shemminger@linux-foundation.org> schrieb:
> On Wed, 5 May 2010 10:06:04 +0200
> Lars Täuber <taeuber@bbaw.de> wrote:
> 
> > Hi there,
> > 
> > why do all the howtos set the ip address to the brigde? Isn't it also possible to assign the address the real interface?
> 
> No. packets get diverted to the bridge before IP processing.

Oh, I see. That's a reason to do it like it is written everywhere.

 
> > What's the difference between assigning the address to the bridge and assigning the address to the real interface contained by the bridge?
> > 
> 
> You end up with partial connectivity (send but not receive).


Thanks
Lars

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-06  7:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-05  8:06 [Bridge] which interface for IP address? Lars Täuber
2010-05-05 15:20 ` Stephen Hemminger
2010-05-06  7:08   ` Lars Täuber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox