2 show mac-address-table, 3 typical configuration examples, Ypical – Accton Technology ES4626 User Manual
Page 210: Onfiguration, Xamples

210
6.2.2 show mac-address-table
Command:
show mac-address-table (discard|static|) (address WORD|) (vlan
<1-4096>|) (interface (ethernet|port-channel|) IFNAME |)
Function:
Show the current MAC table
Parameter:static
entry; aging-time address aging time; discredit filter entry;
entry’s MAC address;
entry’s interface name
Command mode:
Admin mode
Default: MAC address table is not displayed by default.
Usage guide:
This command can display various sorts of MAC address entries. Users
can also use show mac-address-table to display all the MAC address entries.
Example:
Display all the filter MAC address entries.
Switch#show mac-address-table discard
6.3 Typical Configuration Examples
Fig 6-2 MAC Table typical configuration example
Scenario:
Four PCs as shown in the above figure connect to port 1/5, 1/7, 1/9, 1/11
of switch, all the four PCs belong to the default VLAN1. As required by the network
environment, dynamic learning is enabled. PC1 holds sensitive data and can not be
accessed by any other PC that is in another physical segment; PC2 and PC3 have static
mapping set to port 7 and port 9, respectively.
The configuration steps are listed below:
1. Set the MAC address 00-01-11-11-11-11 of PC1 as a filter address.
1/7
1/9
1/11
1/5
PC1
MAC 00-01-11-11-11-11
PC4
MAC 00-01-44-44-44-44
PC3
MAC 00-01-33-33-33-33
PC2
MAC 00-01-22-22-22-22