MNS-BB
Software User Guide
-26-
There are two ways to add authorized MAC addresses: Manual (CLI: allow) or Automatic (CLI:
learn).
Syntax: allow mac=<
address|list|range
> port=<
num|list|range
>
To simply add a device (MAC address) to a port’s existing Authorized Addresses list, enter the port
number with the
mac-address
parameter and the device’s MAC address.
LE2425A(port-security)##
allow mac=00:c1:00:7f:ec: 00 00:60:b0:88:9e:00 port=18
In above example, two authorized devices are allowed for port number 18.
Ports can also learn the MAC addresses with the help of the following command.
Syntax
:
learn port=<number-list> <enable|disable>
LE2425A(port-security)##
learn port=17,18 enable
In the above example, Port 17 and 18 start learn the MAC addresses of connected devices.
Note
: 1. Only when the ACTION is set to NONE will the MAC ADDRESS be learned
2. Maximum 200 MAC addresses can be learned per port.
To enable and disable Port Security
Syntax
:
ps <enable|disable>
LE2425A(port-security)##
ps enable
This command enables the port security and switch is now ready to learn the MAC addresses.
To See the Authorized Devices
Syntax:
show port-security
LE2425A#
show port-security port=18
After executing the above command, the security configuration for port 18 would be:
Port
:18
Action
:Disable
Signal
:Log
Learn Mode
:Enable
MAC_Addresses: 00:c1:00:7f:ec:00 00:60:b0:88:9e:00
To see all the Ports
Syntax
:
show port-security
LE2425A#
show port-security
Status: Port-security Disabled
Port Action Signal Learn_Mode Mac_Address
1 None None Disable None
2 None None Disable None
3 None None Disable None
4 None None Disable None
5 None None Disable None
6 None None Disable None
7 None None Disable None
8 None None Disable None
9 None None Disable None
10 None None Disable None
11 None None Disable None
12 None None Disable None
13 None None Disable None
14 None None Disable None
15 None None Disable None
16 None None Disable None
17 Drop Log Enable None
18 Drop Log Enable00:c1:00:7f:ec:00 00:60:b0:88:9e:00
19 Drop Log Enable None
20 Drop Log Enable None
21 Drop Log Enable None