beautypg.com

Switchport port-security mac-address – Allied Telesis AT-S100 User Manual

Page 220

background image

Chapter 8: Port Security Commands

220

Section II: Advanced Configuration

SWITCHPORT PORT-SECURITY MAC-ADDRESS

Syntax

switchport port-security mac-address sticky
xxxx.xxxx.xxxx Vlan <2-4094>

no switchport port-security mac-address sticky
xxxx.xxxx.xxxx Vlan <2-4094>

Parameters

mac-address Sets a predefined MAC dress in the following format:

xxxx.xxxx.xxxx

vlan

Sets the VLAN ID. Choose a value between 2 and 4,094.

You may not choose the default VLAN which has a VLAN
ID of 1.

Description

Use the SWITCHPORT PORT-SECURITY MAC-ADDRESS command to
set a predefined, secure MAC address for the specified port. This is an
optional command that is used in conjunction with the SWITCHPORT
PORT-SECURITY MAXIMUM command which sets the maximum number
of MAC addresses that can be learned by a port.

If you configure fewer secure MAC addresses than the value specified in
the SWITCHPORT PORT-SECURITY MAXIMUM command, then the
remaining MAC addresses are learned dynamically.

In addition, you can specify which VLAN the MAC address can be learned
on. If you do not specify a VLAN, then the MAC address can be learned on
any VLAN.

Use the no form of this command to remove the predefined MAC address
and VLAN ID.

Command Mode

Interface Configuration mode

Example

The following commands set the predefined MAC address of
00A0.0490.10E0 on port 7 and limits the VLAN to VLAN 7:

switch#configure terminal