[ovs-discuss] How to get VMs' mac address from Open vswitch.
Sam Su
sam.debian at gmail.com
Wed Jul 10 02:37:06 UTC 2013
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
On Mon, Jul 8, 2013 at 1:54 PM, Ben Pfaff <blp at nicira.com> wrote:
> On Mon, Jul 08, 2013 at 01:45:10PM -0700, Sam Su wrote:
> > 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20130709/7b9b8e02/attachment.html>
More information about the discuss
mailing list