beautypg.com

5 switchport port-security mac-address, Switchport port, Security mac – PLANET WGSW-52040 User Manual

Page 228: Address

background image

12-227

Command Mode:

Port mode

Usage Guide:

None.

Example:

Configure the aging time of the secure MAC as 1 second on the interface.

Switch (config-if- ethernet1/1)# switchport port-security aging time 1

12.5 switchport port-security mac-address

Command:

switchport port-security mac-address <mac-address> [vlan ]

no switchport port-security mac-address <mac-address> [vlan ]

Function:

Configure the static secure MAC on the interface, the no command cancels the configuration.

Parameter:

mac-address:Configure the specified MAC address as the static secure MAC.

vlan-id:The specified VLAN of the MAC address, it only takes effect on trunk and hybrid interfaces.

Default:

No secure MAC is bound by the interface.

Command Mode:

Port mode

Usage Guide:

When configuring the static secure MAC, pay attention to the number of the current secure MAC whether exceed the

maximum MAC limit allowed by the interface. If exceeding the maximum MAC limit, it will result in violation operation.

Example:

Configure the secure MAC address on the interface.

Switch (config-if- ethernet1/1)# switchport port-security mac-address 00-00-00-00-00-01