Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
keyboard_arrow_right

show ovsdb mac

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show ovsdb mac
<address mac-address>
<local> 
<logical-switch logical-switch-uuid>
<multicast>
<remote> 
<unicast> 

Description

Display media access control (MAC) addresses, as well as information about the MAC addresses, learned by a Juniper Networks device that functions as a hardware virtual tunnel endpoint (VTEP). Using the Open vSwitch Database (OVSDB) management protocol, this hardware VTEP can learn about MAC addresses directly or from other software or hardware VTEPs. The MAC addresses learned directly by the hardware VTEP are known as local addresses, while the addresses learned from other software or hardware VTEPs are known as remote addresses.

Options

Use one or more of the following options to display a more specific list of MAC addresses and information about the MAC addresses. For example, to display a list of local unicast MAC addresses, you can issue the show ovsdb mac local unicast command.

none

Display all MAC addresses, which includes all local, remote, unicast, and multicast addresses associated with all logical switches.

address mac-address

Display the specified MAC address.

count

(All Juniper Networks devices that support OVSDB except EX9200 switches) Display the number of MAC addresses learned by the Juniper Networks device. Using this option alone, the number includes all local, remote, unicast, and multicast MAC addresses associated with all logical switches in the logical switch table of the OVSDB schema for physical devices. You can use this option with one or more of the other options to display a more specific count of MAC addresses. For example, to display the number of local and remote unicast MAC addresses, you can issue the show ovsdb mac count local remote unicast command.

local

Display all local MAC addresses.

logical-switch logical-switch-uuid

Display all MAC addresses associated with the specified logical switch in the logical switch table of the OVSDB schema for physical devices.

multicast

Display all multicast MAC addresses.

remote

Display all remote MAC addresses.

unicast

Display all unicast MAC addresses.

Required Privilege Level

admin

Output Fields

Table 1 lists the output fields for the show ovsdb mac command. Output fields are listed in the approximate order in which they appear.

Table 1: show ovsdb mac Output Fields

Field Name

Field Description

Logical Switch Name

Universally unique identifier (UUID) of the logical switch.

MAC Address

MAC addresses of virtual machines (VMs).

IP Address

IP address of VMs.

Note:

If the IP addresses of VMs are not published by the SDN controller, this field displays 0.0.0.0.

Encapsulation

Encapsulation type.

VTEP Address

IP address of the hardware or software VTEP from which the MAC address was learned. Further, this VTEP can forward VM traffic to the associated host.

MAC Count

Note:

This field is supported by all Juniper Networks devices that support OVSDB except EX9200 switches.

Number of all or specified MAC addresses learned by the Juniper Networks device.

Sample Output

show ovsdb mac

content_copy zoom_out_map
user@host> show ovsdb mac
Logical Switch Name: 24a76aff-7e61-4520-a78d-3eca26ad7510
  Mac                    IP                 Encapsulation      Vtep
  Address                Address                               Address
  02:00:00:00:03:01      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  02:00:00:00:03:02      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  02:00:00:00:03:03      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  02:00:00:00:03:04      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  02:00:00:00:03:05      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  04:00:00:00:03:05      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  06:00:00:00:03:01      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  06:00:00:00:03:02      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  06:00:00:00:03:03      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  06:00:00:00:03:04      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  06:00:00:00:03:05      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  40:b4:f0:06:6f:f0      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  ff:ff:ff:ff:ff:ff      0.0.0.0            Vxlan over Ipv4    10.100.100.1

Logical Switch Name: bf6d4fd4-f5f6-430c-8c37-4033ef1c55ab
  Mac                    IP                 Encapsulation      Vtep
  Address                Address                               Address
  02:00:00:00:11:01      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  02:00:00:00:11:02      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  02:00:00:00:11:03      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  02:00:00:00:11:04      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  02:00:00:00:11:05      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  04:00:00:00:11:05      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  06:00:00:00:11:01      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  06:00:00:00:11:02      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  06:00:00:00:11:03      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  06:00:00:00:11:04      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  06:00:00:00:11:05      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  40:b4:f0:06:6f:f0      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  00:23:9c:5e:a7:f0      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  08:00:00:00:11:01      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  08:00:00:00:11:02      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  08:00:00:00:11:03      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  08:00:00:00:11:04      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  08:00:00:00:11:05      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  ff:ff:ff:ff:ff:ff      0.0.0.0            Vxlan over Ipv4    10.110.110.1
...

show ovsdb mac address

content_copy zoom_out_map
user@host> show ovsdb mac address 02:00:00:00:03:01

  Mac                    IP                 Encapsulation      Vtep
  Address                Address                               Address
  02:00:00:00:03:01      0.0.0.0            Vxlan over Ipv4    10.255.18.22

show ovsdb mac logical-switch

content_copy zoom_out_map
user@host> show ovsdb mac logical-switch bf6d4fd4-f5f6-430c-8c37-4033ef1c55ab
Logical Switch Name: bf6d4fd4-f5f6-430c-8c37-4033ef1c55ab
  Mac                    IP                 Encapsulation      Vtep
  Address                Address                               Address
  02:00:00:00:11:01      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  02:00:00:00:11:02      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  02:00:00:00:11:03      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  02:00:00:00:11:04      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  02:00:00:00:11:05      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  04:00:00:00:11:05      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  06:00:00:00:11:01      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  06:00:00:00:11:02      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  06:00:00:00:11:03      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  06:00:00:00:11:04      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  06:00:00:00:11:05      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  40:b4:f0:06:6f:f0      0.0.0.0            Vxlan over Ipv4    10.1.1.29
  00:23:9c:5e:a7:f0      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  08:00:00:00:11:01      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  08:00:00:00:11:02      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  08:00:00:00:11:03      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  08:00:00:00:11:04      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  08:00:00:00:11:05      0.0.0.0            Vxlan over Ipv4    10.255.18.22
  ff:ff:ff:ff:ff:ff      0.0.0.0            Vxlan over Ipv4    10.110.110.1

show ovsdb mac local unicast

content_copy zoom_out_map
user@host> show ovsdb mac local unicast
Logical Switch Name: 24a76aff-7e61-4520-a78d-3eca26ad7510
  Mac                    IP                 Encapsulation      Vtep
  Address                Address                               Address
  02:00:00:00:03:01      0.0.0.0            Vxlan over Ipv4    10.255.181.72
  02:00:00:00:03:02      0.0.0.0            Vxlan over Ipv4    10.255.181.72
  02:00:00:00:03:03      0.0.0.0            Vxlan over Ipv4    10.255.181.72
  02:00:00:00:03:04      0.0.0.0            Vxlan over Ipv4    10.255.181.72
  02:00:00:00:03:05      0.0.0.0            Vxlan over Ipv4    10.255.181.72
  04:00:00:00:03:05      0.0.0.0            Vxlan over Ipv4    10.255.181.72
  06:00:00:00:03:01      0.0.0.0            Vxlan over Ipv4    10.255.181.72
  06:00:00:00:03:02      0.0.0.0            Vxlan over Ipv4    10.255.181.72
  06:00:00:00:03:03      0.0.0.0            Vxlan over Ipv4    10.255.181.72
  06:00:00:00:03:04      0.0.0.0            Vxlan over Ipv4    10.255.181.72
  06:00:00:00:03:05      0.0.0.0            Vxlan over Ipv4    10.255.181.72
  40:b4:f0:06:6f:f0      0.0.0.0            Vxlan over Ipv4    10.255.181.72
...

show ovsdb mac (Count of All Local, Remote, Unicast, and Multicast MAC Addresses for All Logical Switches)

content_copy zoom_out_map
user@host> show ovsdb mac count
MAC count: 6877

Release Information

Command introduced in Junos OS Release 14.1R2.

external-footer-nav