Setting value
Description
discard
Discard
ifname
:
Name of LAN/SFP port or logical interface
Applicable interface
vlan-id
:
<1-4094>
Applicable VLAN ID
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Registers a static entry in the MAC address table.
If
action
is specified as "forward," received frames that match the specified MAC address and VLAN ID are forwarded to the
specified interface.
If
action
is specified as "discard," received frames that match the specified MAC address and VLAN ID are discarded.
If this command is executed with the "no" syntax, the static entry is deleted from the MAC address table.
If "vlan" is omitted, VLAN #1 is specified.
[Note]
If
action
is specified as "discard," a multicast MAC address cannot be specified as
mac-addr
.
The following MAC addresses cannot be specified as
mac-addr
.
• 0180.c200.0000
~
0180.c200.000f
• 0180.c200.0020
~
0180.c200.002f
[Example]
Specify that frames addressed to 00a0.de11.2233 are forwarded to LAN port #2.
SWR2311P(config)#mac-address-table static 00a0.de11.2233 forward port1.2
6.1.5 Show MAC address table
[Syntax]
show
mac-address-table
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the MAC address table.
The following items are shown.
• VLAN ID
• Interface name
• MAC address
• Action applied to frames
• Entry type
• Ageing time
[Example]
Show the MAC address table.
SWR2311P>show mac-address-table
VLAN port mac fwd type timeout
1 port1.1 00a0.de11.2233 forward static 0
1 sa1 1803.731e.8c2b forward dynamic 300
1 sa2 782b.cbcb.218d forward dynamic 300
Command Reference | Layer 2 functions |
159