SWR2311P(config)#mac-address-table ageing-time 600
6.1.3 Clear dynamic entry
[Syntax]
clear
mac-address-table
dynamic
clear
mac-address-table
dynamic
adress
mac-addr
clear
mac-address-table
dynamic
vlan
vlan-id
clear
mac-address-table
dynamic
interface
ifname
[
instance
inst
]
[Keyword]
address
:
Specifies the MAC address
vlan
:
Specifies the VLAN ID
interface
:
Specifies the interface
instance
:
Specifies the MST instance
[Parameter]
mac-addr
:
hhhh.hhhh.hhhh (h is hexadecimal)
Applicable MAC address
ifname
:
Name of LAN/SFP port or logical interface
Applicable interface
vlan-id
:
<1-4094>
Applicable VLAN ID
inst
:
<1-63>
Applicable MST instance ID
[Input mode]
priviledged EXEC mode
[Description]
Deletes a dynamic entry from the MAC address table.
If a keyword is specified, only the entries that match the applicable conditions are deleted.
If no keyword is specified, all dynamic entries are deleted.
[Example]
Delete the dynamic entry whose MAC address is 00a0.de11.2233.
SWR2311P#clear mac-address-table dynamic address 00a0.de11.2233
6.1.4 Set static entry
[Syntax]
mac-address-table
static
mac-addr
action
ifname
[
vlan
vlan-id
]
no
mac-address-table
static
mac-addr
action
ifname
[
vlan
vlan-id
]
[Keyword]
vlan
:
Specifies the VLAN ID
[Parameter]
mac-addr
:
hhhh.hhhh.hhhh (h is hexadecimal)
Applicable MAC address
action
:
Action applied to frames addressed to mac-addr
Setting value
Description
forward
Forward
158
| Command Reference | Layer 2 functions