Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bridge-hw eth0 is ignored #290

Open
albert-a opened this issue Jan 20, 2024 · 2 comments
Open

bridge-hw eth0 is ignored #290

albert-a opened this issue Jan 20, 2024 · 2 comments

Comments

@albert-a
Copy link

Bridge is assigned arbitrary address, not the slave interface address. I want the hardware address to be inherited from the interface it enslaves (like in ifupdown package):

auto eth0
iface eth0 inet manual

auto br0
iface br0 inet dhcp
    bridge-ports eth0
    bridge-hw eth0

But unfortunately bridge-hw eth0 directive is ignored.

@julienfortin
Copy link
Contributor

There's no support for bridge-hw in ifupdown2 today. A work around could be to manually set the mac using the hwaddress attribute or something a bit more dynamic like:
post-up inherit_mac_from.sh
and in that inherit_mac_from script you code the logic to extract eth0 mac and set it on the bridge.

@julienfortin
Copy link
Contributor

Additionally, feel free to submit a PR to add native support for this attribute in ifupdown2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants