[ovs-discuss] How to set the MAC address of bridge local port
Krishna Pratap
singh.pratapkrishna at gmail.com
Tue Mar 3 16:28:27 UTC 2015
Hi,
Is it possible to set the MAC address of the local port of bridge( not the
address of bridge itself) with a fixed address?
I tried couple of ways to do it. one of them mentioned here in this old
thread
http://openvswitch.org/pipermail/discuss/2011-June/005297.html
i tested this one out but it doesn't change the mac address of port br0.
here is what I did.
root at ccpu:~# ovs-vsctl add-br br0 -- set bridge br0
other-config:hwaddr=\"00:15:17:a0:29:80\"
root at ccpu5:~# ovs-ofctl dump-ports-desc br0
OFPST_PORT_DESC reply (xid=0x2):
LOCAL(br0): addr:ce:09:03:00:00:00
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
As we can see the Mac address doesn't change. it does update the bridge
table's other-config column .
The second way I tried changing was with Interface command.
root at ccpu:~# ovs-vsctl set interface br0 mac=\"00:15:17:a0:29:80\"
root at ccpu5:~# ovs-ofctl dump-ports-desc br0
OFPST_PORT_DESC reply (xid=0x2):
LOCAL(br0): addr:ce:09:03:00:00:00
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
Still I do not see any change in the Mac address with dump-ports-desc
command.
Even though the Interface table does change with Mac address entry which i
try to set it with.
Is there a limitation that the Mac address of local port or interface of a
bridge can not be changed?
Any help would be great.Thanks
KP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150303/b761378f/attachment-0002.html>
More information about the discuss
mailing list