Chapter 2 Avaya P330-ML Layer 2 CLI Commands
100 Avaya P330-ML Reference Guide
set port security
User level: supervisor
Use the set port security command to enable MAC security on a port or a
range of ports at the module level. The port security is activated only after you
enable the secutity mode at the stack level using the set security mode
command.
The syntax for this command is:
set port security { enable | disable } [<module>[/<port>]]
Example:
set port spantree cost
User level: privileged, supervisor.
Use the set port spantree cost command to set the cost of a port. This value
defines which port will be allowed to forward traffic if two ports with different costs
cause a loop.
The syntax for this command is:
set port spantree cost [module/port] [auto|value]
Example:
enable | disable Set the port security enable or disable
module/port The switch number/the port number
P330-1(super)# set port security enable 1/2
Port 1/2 secured.
module/port Module number/port number.
auto Spantree cost is calculated according to the standard
value Number representing the cost. The cost level can be set
from 1 to 65535 / 200000000 in STP / RSTP, respectively.
A lower cost (lower value) specifies precedence of a port
to forward traffic.
P330-N>set port spantree cost 4/2 4096
port 4/2 spantree cost is 4096