ZXR10 5900/5200 Series User Manual (Ethernet Switching Volume)
Command
mac filter {source|both|destination}<m
ZXR10(config)#
ac-address> vlan <vlan-id>
Command
show mac [dynamic|static|permanent|
ZXR10(config)#
src-filter|dst-filter|<mac-address>| interface
<port-name>|vlan <vlan-id>]
Example
38
Confidential and Proprietary Information of ZTE CORPORATION
Setting MAC Address Filtering
To prevent unauthorized access, ZXR10 5900/5200 support filter-
ing data frames according to MAC addresses. There are three fil-
tering modes:
�
Source MAC address matching only, that is, a data frame is
dropped when its source MAC address matches the setting.
�
Destination MAC address matching only, that is, a data frame is
dropped when its destination MAC address matches the setting.
�
Source/Destination MAC address matching, that is, a data
frame is dropped when its source or destination MAC address
matches the setting.
To set MAC address filtering, use the following command.
There is no need to specify a port name while setting MAC address
filtering. This function filters data frames from all ports of the
switch. To cancel MAC address filtering, simply delete the MAC
address.
Viewing MAC Address Table
View MAC address entry by using the following command. The
viewed MAC address are dynamic learning and added manually.
Example: display MAC address entry.
ZXR10(config)#show mac
Total MAC address : 2
Flags: vid --VLAN id,stc --static, per --permanent, toS
--to-static,wtd--is wri
ted,
srF --source filter,dsF --destination filter, time
--day:hour:min:sec
Frm --mac from where:0,drv; 1,config; 2,VPN; 3,802.1X;
4,micro;5,dhcp
MAC_Address
vid
Frm
Time
--------------------------------------------------------------
0000.2222.2222
2
1
0:00:14:19
0000.1111.1111
2
1
0:00:14:28
Function
This sets MAC address filtering.
Function
This views MAC address table.
vpn
port
per stc toS wtd srF dsF
0
fei_2/1/2 1
0
fei_2/1/2 1
0
0
0
0
0
0
0
0
0
0