Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have created a bridge using to existing network interfaces:

$ brctl addif br0 eth1
$ brctl addif br0 eth2

Why do eth1 and eth2 lose their IP addresses? What's the reasoning behind it?

PS this is on Ubuntu Linux.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

When a device is part of a bridge the IP address is set on the bridge rather than on the individual devices, because that is where packets can enter from the host system or exit to the host system.

A bridge is basically just a virtual ethernet switch with both the bridge device, and each device that is added to it, being a port on that switch. The bridge device (br0 in this case) is then the switch port which is connected to your computer and which can be given an address and used to send and receive packets.

share|improve this answer
    
Thanks for the answer. –  fazineroso Dec 13 '12 at 10:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.