I'm trying to track down the cause of some really odd behavior I'm seeing with openvswitch in my OpenStack environment. I am trying to set a persistent MAC address on an OVS bridge and I find that it is changing unexpectedly.
After bringing bridge `br-ex` down and then back up using
`ifdown` and `ifup` on my Fedora 20 system, the OVS configuration
looks like this:
# ovs-vsctl show
1ab8ae7e-e9da-4af9-9226-03b54f5d2544
Bridge br-int
Port br-int
Interface br-int
type: internal
Port int-br-ex
Interface int-br-ex
Port "tapa1747c68-d3"
tag: 1
Interface "tapa1747c68-d3"
type: internal
Bridge br-ex
Port "eth0"
Interface "eth0"
Port br-ex
Interface br-ex
type: internal
ovs_version: "2.0.1"
And bridge `br-ex` has the desried MAC address:
# ip link show dev br-ex
80: br-ex: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
mode DEFAULT group default
link/ether fa:16:3e:ef:91:ec brd ff:ff:ff:ff:ff:ff
At this point, if I delete the `int-br-ex` port on `br-int` -- which
is *not* currently linked to any port on `br-ex` -- the MAC address of
`br-ex` changes:
# ovs-vsctl --if-exists del-port br-int int-br-ex
# ip link show dev br-ex
80: br-ex: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
mode DEFAULT group default
link/ether f2:2a:d3:bf:3c:47 brd ff:ff:ff:ff:ff:ff
There used to be a `int-br-ex` <-> `phy-br-ex` connection between the
two bridges, but running `ifdown br-ex` destroys and re-creates the
bridge with no attached pots. And even if there *is* a link between
the two bridges, I don't want the MAC address changing like that.
What is causing the MAC address to change? How can I get it to stick?
Thanks,
--
Lars Kellogg-Stedman <[email protected]> | larsks @ irc
Cloud Engineering / OpenStack | " " @ twitter
pgpdR53uXIF6i.pgp
Description: PGP signature
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
