Discussion:
[ovs-discuss] How to get VMs' mac address from Open vswitch.
Sam Su
2013-07-08 20:45:10 UTC
Permalink
Hi,

I am a new user of open vswitch and trying to learn it compared with a
physical switch. So I built a open vswitch environment integrated with
virtualbox.
As we know, users can get all servers MAC addresses from a physical switch
(e.g. 'show mac address-table' for a cisco switch).
I am wondering how to get VMs (attached to the open vswitch) MAC addresses
from an Open vswitch?

Much appreciated for any help.

Thanks,
Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20130708/c9a5cdc0/attachment.htm>
Ben Pfaff
2013-07-08 20:54:32 UTC
Permalink
Post by Sam Su
As we know, users can get all servers MAC addresses from a physical switch
(e.g. 'show mac address-table' for a cisco switch).
I am wondering how to get VMs (attached to the open vswitch) MAC addresses
from an Open vswitch?
It's documented.
Sam Su
2013-07-10 02:37:06 UTC
Permalink
Hi Ben,

Thank you for the info.

I can get my VM's mac address(port 3) now using the command as below:

*root at server-01:~# ovs-appctl fdb/show br0*
* port VLAN MAC Age 3 0 08:00:27:5a:5c:3a 58 2 0 08:00:27:c0:00:08 1 0 0
00:0c:29:b5:1d:a1 1*

However after 60 seconds,the learned VM's mac is expired, I cannot query
that mac after that.
*root at server-01:~# ovs-appctl fdb/show br0*
* port VLAN MAC Age*
* 2 0 08:00:27:c0:00:08 0
*
* 0 0 00:0c:29:b5:1d:a1 0*
*
*
I am wondering is it possible to keep mac-address table never expired when
the peer port (VM's NIC) is up?


Thanks,
Sam
Post by Sam Su
Post by Sam Su
As we know, users can get all servers MAC addresses from a physical
switch
Post by Sam Su
(e.g. 'show mac address-table' for a cisco switch).
I am wondering how to get VMs (attached to the open vswitch) MAC
addresses
Post by Sam Su
from an Open vswitch?
It's documented.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20130709/7b9b8e02/attachment.htm>
Ben Pfaff
2013-07-10 02:37:48 UTC
Permalink
No.
Post by Sam Su
Hi Ben,
Thank you for the info.
*root at server-01:~# ovs-appctl fdb/show br0*
* port VLAN MAC Age 3 0 08:00:27:5a:5c:3a 58 2 0 08:00:27:c0:00:08 1 0 0
00:0c:29:b5:1d:a1 1*
However after 60 seconds,the learned VM's mac is expired, I cannot query
that mac after that.
*root at server-01:~# ovs-appctl fdb/show br0*
* port VLAN MAC Age*
* 2 0 08:00:27:c0:00:08 0
*
* 0 0 00:0c:29:b5:1d:a1 0*
*
*
I am wondering is it possible to keep mac-address table never expired when
the peer port (VM's NIC) is up?
Thanks,
Sam
Post by Sam Su
Post by Sam Su
As we know, users can get all servers MAC addresses from a physical
switch
Post by Sam Su
(e.g. 'show mac address-table' for a cisco switch).
I am wondering how to get VMs (attached to the open vswitch) MAC
addresses
Post by Sam Su
from an Open vswitch?
It's documented.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20130709/88bc7615/attachment.htm>
Loading...