show mac address-table
This can be used to get mac address for remote computers also. Below are few examples on how to use this command. It works on XP, Vista, Windows 7, Server 2003 and Server 2008 operating systems. Get mac addresses from CMD. Just run the command getmac to get the mac addresses. Find an example below. As you can see, the 'sh arp' or 'sh ip arp' commands also give you the MAC addresses, so essentially the 'sh mac add' is only to get the port in which the device is connected. It helps to Ping the subnet's broadcast address (e.g. '10.1.1.255') to load the ARP table. (Small tip: When you see a large number of MAC addresses showing up on a single. See full list on wikihow.com. Get your computer's Wired or Wireless MAC address from the Command Prompt Screen: Select the Start button. Type command in the search box (Start-Run for Windows XP) and press Enter.At the Command Prompt, type.ipconfig /all Note: Be sure to put a space between ipconfig and /all! Press Enter to list the connection information for your wired. Mac address to IP address on Layer 3 switch - #sh ip arp include.
To display the information about the MAC address table, use the show mac address-table command.
show mac address-table [address mac-address][dynamic | multicast | static][interface {ethernet slot/port| port-channel number}][vlan vlan-id]
Syntax Description
addressmac-address | (Optional) Displays information about a specific MAC address. |
dynamic | (Optional) Displays information about the dynamic MAC address table entries only. |
interface | (Optional) Specifies the interface. The interface can be either Ethernet or EtherChannel. |
ethernetslot/port | (Optional) Specifies the Ethernet interface slot number and port number. The slot number is from 1 to 255, and the port number is from 1 to 128. |
port-channelnumber | (Optional) Specifies the EtherChannel interface. The EtherChannel number is from 1 to 4096. |
multicast | (Optional) Displays information about the multicast MAC address table entries only. |
static | (Optional) Displays information about the static MAC address table entries only. |
vlanvlan-id | (Optional) Displays information for a specific VLAN. The VLAN ID range is from 1 to 4094. |
Command Default
None
Command Modes
EXEC mode
Command History
Modification | |
---|---|
4.0(0)N1(1a) | This command was introduced. |
4.2(1)N1(1) | The command syntax is changed to show mac address-table. |
Usage Guidelines
The switch maintains static MAC address entries that are saved in its startup configuration across reboots and flushes the dynamic entries.
Examples
Command For Mac Address
This example shows how to display information about the entries for the MAC address table:
This example shows how to display information about the entries for the MAC address table for a specific MAC address:
This example shows how to display information about the dynamic entries for the MAC address table:
This example shows how to display information about the MAC address table for a specific interface:
This example shows how to display static entries in the MAC address table:
This example shows how to display entries in the MAC address table for a specific VLAN:
Command Prompt Command For Mac Address
Related Commands
Description | |
---|---|
mac address-table static | Adds static entries to the MAC address table or configures a static MAC address with IGMP snooping disabled for that address. |
show mac address-table aging-time | Displays information about the time-out values for the MAC address table. |
show mac address-table count | Displays the number of entries currently in the MAC address table. |
show mac address-table notifications | Displays information about notifications for the MAC address table. |