Skip to contentSkip to conversation

which interface for IP address?

Bridge Lars Täuber 2 participants 3 messages May 5, 2010 – May 6, 2010 Ethernet bridge

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 3 lines · On Wed, 5 May 2010 10:06:04 +0200 Lars Täuber <[email protected]> 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.

Quoted 2 lines

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).

#2 lore raw
Quoted 8 lines · Stephen Hemminger
Quoted 3 lines · On Wed, 5 May 2010 10:06:04 +0200 Lars Täuber <[email protected]> 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.

Quoted 4 lines
Quoted 2 lines

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