7.5.2.
View Configuration
Command
Function
Switch#show mac-address static
View all the information of static
address.
The following example illustrates how to view all the information of static address:
Switch#show mac-address static
VLAN MAC TYPE interface STATE index
---- -------------- ------- -------------------- -------- ------
1 1212.1212.1202 STATIC Gi 0/9 FWD -----
7.6. Filtering Address Configuration
7.6.1.
Filtering Address Management
Command
Function
Switch(config)#
mac-address
static
mac-address
vlan
vlan-id
drop
mac-address
:
the corresponding MAC
address of the specified table item.
vlan-id
:
specified the VLAN that the
address belonged to.
when the equipment receives the message
with address specified by mac-address as
source address or destination address from
the specified VLAN of vlan-id of the
equipment, the message will be discarded.
Switch(config)#
no
mac-address static
mac-address
vlan
vlan-id
drop
Delete filtering address list item, the
parameter is the same with the added
command.
The following example illustrates how to add a filtering address 00d0.f800.073c, when the received
source address or destination address in VLAN 1 is the message of the address, the message will be
discarded.
Switch#configure terminal
Enter configuration commands, one per line. End with CTRL+Z. Switch(config)#
mac-address static
00d0.f800.073c vlan 1 drop
The following example illustrates how to delete the static address 00d0.f800.073c in the previous
example:
Switch#configure terminal
Enter configuration commands, one per line. End with CTRL+Z. Switch(config)#
no mac-address
static
00d0.f800.073c
vlan
1
drop