6 switchport port-security mac-address, 7 switchport port-security maximum, 6 switchport port-security mac-address -85 – PLANET WGSW-52040 User Manual

Page 316: 7 switchport port-security maximum -85

Advertising
background image

18-85

Enable MAC address binding function for port 1.

Switch(config)#interface Ethernet 1/1

Switch(Config-If-Ethernet1/1)#switchport port security

18.2.6 switchport port-security mac-address

Command:

switchport port-security mac-address <mac-address>

no switchport port-security mac-address <mac-address>

Function:

Add a static secure MAC address; the no command deletes a static secure MAC address.

Command mode:

Port Mode.

Parameters:

<mac-address> stands for the MAC address to be added or deleted.

Usage Guide:

The MAC address binding function must be enabled before static secure MAC address can be added.

Example:

Adding MAC 00-30-4f-FE-2E-D3 to port1.

Switch(config)#interface Ethernet 1/1

Switch(Config-If-Ethernet1/1)#switchport port-security mac-address 00-30-4f-FE-2E-D3

18.2.7 switchport port-security maximum

Command:

switchport port-security maximum <value>

no switchport port-security maximum

Function:

Sets the maximum number of secure MAC addresses for a port; the no command restores the maximum secure

address number of 1.

Advertising