Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a Ubuntu system with 2 NICs where I want to create a bridge br0 and bind both NICs to that bridge using the bridge_ports eth0 eth1 option.

I also want to configure the bridge to get an IP address from the local DHCP server.

I think I know how to do this, but I wonder which MAC address(es) will the bridge send out when requesting IP settings from the DHCP server? The MAC address of eht0, eth1, both?

Thanks, Carsten

share|improve this question
    
I'd suspect its the first in the order you name them when creating the bridge, or there is a command to designate/override. –  SpacemanSpiff Dec 3 '10 at 4:36

1 Answer 1

up vote 2 down vote accepted

The brctl command used to set up the bridge creates a virtual interface that shows up in ifconfig. The default address is the interface with the lowest MAC address. Thus, a NIC with a mac starting with 00:50 will be picked over one starting with 00:6f. It may be possible to change the MAC address by way of ifconfig, but you may need to turn off Spanning Tree first.

share|improve this answer

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.