Privileged level commands, Security commands, Lock port command – Motorola CAJUN P120 User Manual

Page 96: Unlock port command, Add mac command

Advertising
background image

Chapter 7

Cajun Campus CLI (Command Line Interface)

82

Cajun P120 User’s Guide

Privileged Level Commands

Security Commands

Lock Port Command

Use this command to secure ports. The syntax of this command is:

lock port

{module number/port_number | all

}. all - a shortcut for securing all ports of

the device.

Examples:

Console>(enable)

lock port 1/1

Port 1 locked

Console>(enable)

Console>(enable)

lock port all

All ports locked!

Console>(enable)

Unlock Port Command

Use this command to unlock ports and return them to not-secured mode. The
syntax of this command is:

unlock port

{ module number/port_number | all

}

all - a shortcut for unsecuring all ports of the device

Example:

Console>(enable)

unlock port 1/10

Port 10 unlocked

Console>(enable)

Add MAC Command

Use this command to add an address to the secure list of a locked ports (see Lock Port
Command
on page 82). The minimal parameters are address and port. It is optional
to specify the VLAN of the address. If the VLAN is not specified the default is port's
VLAN.

The syntax of this command is:

add mac {MAC_address port_number [vlan_number]}

Examples:

Console>(enable)

add mac 00-60-5c-86-5b-81 2 3

Address 00-60-5c-86-5b-81 was added to the secure list !

Console>(enable)

Advertising