Skip to content

MAC address table

mac-address-table static unicast

Command Objective: This command configures a static unicast MAC address in the forwarding database.

The no form of the command deletes a configured static Unicast MAC address from the forwarding database.

Syntax:

  • mac-address-table static unicast &lt;aa:aa:aa:aa:aa:aa&gt; vlan <vlan-id> interface <interface-type> <iface_list>
  • no mac-address-table static unicast &lt;aa:aa:aa:aa:aa:aa&gt; vlan <vlan-id>

Parameter Description:

  • <aa:aa:aa:aa:aa:aa>: Configures the static unicast destination MAC address. The received packets having the specified MAC address are processed.
  • vlan <vlan-id>: Configures the static unicast destination MAC address for the specified VLAN. This value ranges between 1 and 4094.

    • <vlan-id>: VLAN ID is a unique value that represents the specific VLAN. This value ranges between 1 and 4094.
  • interface: Configures the member ports interface type and ID. The details to be provided are:

    • <interface-type>: Configures the member ports for the specified type of interface. The interface can be:

      • gigabitethernet: A version of LAN standard architecture that supports data transfer up to 1 Gigabit per second.
      • <0/a-b, 0/c,...>: Configures the member ports for the specified interface identifier. This is a unique value that represents the specific interface. This value is a combination of slot number and port number separated by a slash. Port-channel ID is provided, for interface type port-channel. Use comma as a separator without space while configuring list of interfaces. Example: 0/1, 0/3 or 1, 3.

Mode: Global Configuration Mode.

mac-address-table aging-time

Command Objective: This command configures the timeout period (in seconds) for ]{.s16}[aging out dynamically learned forwarding information entry and static entry in the MAC address table. That is, the entry is deleted once the aging timer expires. High value for the aging time helps to record dynamic entries for a longer time, if traffic is not frequent. This reduces the possibility of flooding.

The no form of the command resets the maximum age of an entry in the MAC address table to its default value.

Syntax:

  • mac-address-table aging-time <10-630 seconds>
  • no mac-address-table aging-time

Mode: Global Configuration Mode.

show mac-address-table

Command Objective: This command displays all static / dynamic unicast and multicast MAC entries created in the MAC address table. These entries contain VLAN ID, unicast / multicast MAC address, unicast backbone MAC address of peer backbone edge bridge, member ports, the type of entry (that is static, learnt and so on), and total number of entries displayed.

Syntax: show mac-address-table [vlan <string(9)>] [address <mac_addr>][{interface <interface-type> <ifnum> | switch <string(32)>}]

Parameter Description:

  • vlan <vlan-range>: Displays all static / dynamic unicast and multicast MAC entries created in the MAC address table for the specified VLANs alone. This value denotes the VLAN ID range for which the entries need to be displayed. This value is a string with the maximum size as 9. For example, the value is provided as 4000-4010 to display the entries for VLAN IDs from 4000 to 4010.
  • address <aa:aa:aa:aa:aa:aa>: Displays all static / dynamic unicast and multicast MAC entries created in the MAC address table for the specified unicast / multicast MAC address.
  • <interface-type>: Sets the type of interface.

    • gigabitethernet: A version of LAN standard architecture that supports data transfer up to 1 Gigabit per second.
  • switch <context_name>: Displays the VLAN global information that is applicable to all VLANs, for the specified context. This value represents unique name of the switch context. This value is a string whose maximum size is 32. This parameter is specific to multiple instance feature.

Mode: Privileged EXEC Mode.

show mac-address-table count

Command Objective: This command displays the total number of static / dynamic unicast and multicast MAC address entries created in the FDB table. The count is displayed for all active VLANs, VLANs (that are not active) for which the port details are configured, and VLANs for which the MAC address table entries are created.

Syntax: show mac-address-table count [vlan <vlan_id\>] [switch <string(32)>]

Parameter Description:

  • vlan <vlan-id>: Displays the total number of static / dynamic unicast and multicast MAC address entries created for the specified VLAN ID. This value ranges between 1 and 65535.
  • switch <context_name>: Displays the VLAN global information that is applicable to all VLANs, for the specified context. This value represents unique name of the switch context. This value is a string whose maximum size is 32. This parameter is specific to multiple instance feature.

Mode: Privileged EXEC Mode.

show mac-address-table static multicast/unicast

Command Objective: This command displays the static multicast/unicast MAC address entries created in the FDB table.

These entries contain VLAN ID to which multicast/unicast MAC address entry is assigned, multicast/unicast MAC address, member ports, receiver ports, forbidden ports, the status of entry (that is permanent, static and so on), and total number of entries displayed.

Syntax:

  • show mac-address-table static multicast [vlan <vlan-range>] [address &lt;aa:aa:aa:aa:aa:aa&gt;] [{interface <interface-type><interface-id\> | switch <context_name>}]
  • show mac-address-table static unicast [vlan <vlan-range>] [address &lt;aa:aa:aa:aa:aa:aa&gt;] [{interface <interface-type> <interface-id> | switch <context_name>}]

Parameter Description:

  • vlan <vlan-range>: Displays all static / dynamic unicast and multicast MAC entries created in the MAC address table for the specified VLANs alone. This value denotes the VLAN ID range for which the entries need to be displayed. This value is a string with the maximum size as 9. For example, the value is provided as 4000-4010 to display the entries for VLAN IDs from 4000 to 4010.
  • address <aa:aa:aa:aa:aa:aa>: Displays all static / dynamic unicast and multicast MAC entries created in the MAC address table for the specified unicast / multicast MAC address.
  • <interface-type>: Displays all static multicast MAC address entries for the specified interface.

    • gigabitethernet: A version of LAN standard architecture that supports data transfer up to 1 Gigabit per second.
  • switch <context_name>: Displays the VLAN global information that is applicable to all VLANs, for the specified context. This value represents unique name of the switch context. This value is a string whose maximum size is 32.

This parameter is specific to multiple instance feature.

Mode: Privileged EXEC Mode.

show mac-address-table dynamic unicast

Command Objective: This command displays all dynamically learnt unicast entries from the MAC address table.

These entries contain VLAN ID for which unicast MAC address entry is learnt, unicast MAC address, ports through which the entry is learnt, the status of entry (that is permanent, static and so on), the unicast backbone MAC address of peer backbone edge bridge, and total number of entries displayed.

Syntax: show mac-address-table dynamic unicast [vlan <string(9)>] [address <ucast_mac>] [{interface <interface-type> <ifnum> | switch <string(32)>}]

Parameter Description:

  • vlan <vlan-range>: Displays all static / dynamic unicast and multicast MAC entries created in the MAC address table for the specified VLANs alone. This value denotes the VLAN ID range for which the entries need to be displayed. This value is a string with the maximum size as 9. For example, the value is provided as 4000-4010 to display the entries for VLAN IDs from 4000 to 4010.
  • address <aa:aa:aa:aa:aa:aa>: Displays all static / dynamic unicast and multicast MAC entries created in the MAC address table for the specified unicast / multicast MAC address.
  • <interface-type>: Displays all static multicast MAC address entries for the specified interface.

    • gigabitethernet: A version of LAN standard architecture that supports data transfer up to 1 Gigabit per second.
  • switch <context_name>: Displays the VLAN global information that is applicable to all VLANs, for the specified context. This value represents unique name of the switch context. This value is a string whose maximum size is 32. This parameter is specific to multiple instance feature.

Mode: Privileged EXEC Mode.

show mac-address-table aging-time

Command Objective: This command displays the ageing time configured for the MAC address table. This time denotes the interval (in seconds) after which the dynamically learned forwarding information entry and static entry in the MAC address table are deleted.

Syntax: show mac-address-table aging-time [switch <string(32)>]

Parameter Description:

  • switch <context_name>: Displays ageing time of the MAC address table, for the specified context. This value represents unique name of the switch context. This value is a string with the maximum size as 32. This parameter is specific to multiple instance feature.

Mode: Privileged EXEC Mode.

show dot1d mac-address-table

Command Objective: This command displays all static / dynamic unicast and multicast MAC address entries created in the FDB table, when the VLAN base bridge mode is transparent bridging.

These entries contain unicast / multicast MAC address, member ports, and the type of entry (that is static, learnt and so on).

Syntax: show dot1d mac-address-table [address &lt;aa:aa:aa:aa:aa:aa&gt;] [{interface <interface-type> <interface-id> | switch <context_name>}]

Parameter Description:

  • address <aa:aa:aa:aa:aa:aa>: Displays all static / dynamic unicast and multicast MAC entries created in the MAC address table for the specified unicast / multicast MAC address.
  • <interface-type>: Displays the interface status and configuration for the specified type of interface. The interface can be:

    • gigabitethernet: A version of LAN standard architecture that supports data transfer upto 1 Gigabit per second.
    • port-channel: Logical interface that represents an aggregator which contains several ports aggregated together.
  • switch <context_name>: Displays the VLAN entry related information or total number of existing VLANs, for the specified context. This value represents unique name of the switch context. This value is a string whose maximum size is 32. This parameter is specific to multiple instance feature.

Mode: Privileged EXEC Mode

show dot1d mac-address-table static multicast

Command Objective: This command displays all static multicast MAC address entries created in the FDB table, when the VLAN base bridge mode is transparent bridging.

These entries contain multicast MAC address, member ports, receiver ports, the status of entry (that is permanent, static and so on), and total number of entries displayed.

Syntax: show dot1d mac-address-table static multicast [address &lt;aa:aa:aa:aa:aa:aa&gt;] [interface <interface-type> <interface-id>]

Parameter Description:

  • address <aa:aa:aa:aa:aa:aa>: Displays all static / dynamic unicast and multicast MAC entries created in the MAC address table for the specified unicast / multicast MAC address.

  • <interface-type>: Displays the interface status and configuration for the specified type of interface. The interface can be:

    • gigabitethernet: A version of LAN standard architecture that supports data transfer upto 1 Gigabit per second.
    • port-channel: Logical interface that represents an aggregator which contains several ports aggregated together.
  • switch <context_name>: Displays the VLAN entry related information or total number of existing VLANs, for the specified context. This value represents unique name of the switch context. This value is a string whose maximum size is 32.

This parameter is specific to multiple instancefeature.

Mode: Privileged EXEC Mode.

show dot1d mac-address-table static unicast

Command Objective: This command displays all static unicast MAC address entries created in the FDB table, when the VLAN base bridge mode is transparent bridging.

These entries contain unicast MAC address, member ports, receiver ports, the status of entry (that is permanent, static and so on), and total number of entries displayed.

Syntax: show dot1d mac-address-table static unicast [address &lt;aa:aa:aa:aa:aa:aa&gt;] [interface <interface-type> <interface-id>]

Parameter Description:

  • address <aa:aa:aa:aa:aa:aa>: Displays all static / dynamic unicast and multicast MAC entries created in the MAC address table for the specified unicast / multicast MAC address.

  • <interface-type>: Displays the interface status and configuration for the specified type of interface. The interface can be:

    • gigabitethernet: A version of LAN standard architecture that supports data transfer upto 1 Gigabit per second.
    • port-channel: Logical interface that represents an aggregator which contains several ports aggregated together.
  • switch <context_name>: Displays the VLAN entry related information or total number of existing VLANs, for the specified context. This value represents unique name of the switch context. This value is a string whose maximum size is 32. This parameter is specific to multiple instance feature.

Mode: Privileged EXEC Mode.