Table Of Contents
set
set accounting commands
set accounting connect
set accounting exec
set accounting suppress
set accounting system
set accounting update
set alias
set arp
set authentication enable
set authentication login
set authorization commands
set authorization enable
set authorization exec
set banner motd
set banner telnet
set boot auto-config
set boot config-register
set boot sync now
set boot system flash
set cam
set cam agingtime
set cam notification
set cdp
set cdp holdtime
set cdp interval
set cdp version
set cgmp
set cgmp fastleave
set cgmp leave
set channel cost
set channelprotocol
set channel vlancost
set config mode
set crypto key rsa
set dot1q-all-tagged
set dot1x
set
Use the set command to display all of the ROM monitor command variable names, along with their values.
set
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
ROM monitor command.
Command Modes
Normal.
Examples
This example shows how to use the set command to display all of the monitor variable names along with their values:
Related Commands
varname=
set accounting commands
Use the set accounting commands command to enable command event accounting on the switch.
set accounting commands enable {config | enable | all} [stop-only]{tacacs+}
set accounting commands disable
Syntax Description
enable
|
Keyword that enables the specified accounting method for commands.
|
config
|
Keyword that permits accounting for configuration commands only.
|
enable
|
Keyword that permits accounting for enable mode commands only.
|
all
|
Keyword that permits accounting for all commands.
|
stop-only
|
(Optional) Keyword that specifies the accounting method that applies at the conclusion of the command.
|
tacacs+
|
Keyword that specifies TACACS+ accounting for commands.
|
disable
|
Keyword that disables accounting for commands.
|
Defaults
By default, accounting is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You must configure the TACACS+ servers before you enable accounting.
Examples
This example shows how to enable accounting for configuration commands when sending records only upon termination of the event, using a TACACS+ server:
Console> (enable) set accounting commands enable config stop-only tacacs+
Accounting set to enable for commands-config events in stop-only mode.
This example shows how to enable accounting for all commands when sending records only upon termination of an event, using a TACACS+ server:
Console> (enable) set accounting commands enable all stop-only tacacs+
Accounting set to enable for commands-all events in stop-only mode.
Console> (enable) reset cancel
This example shows how to disable command accounting:
Console> (enable) set accounting commands disable
Accounting set to disable for commands-config events.
This example shows how to configure accounting for enable mode commands:
Console> (enable) set accounting commands enable enable stop-only tacacs+
Accounting set to enable for commands-enable-mode event in stop-only mode.
Related Commands
set accounting connect
set accounting exec
set accounting suppress
set accounting system
set accounting update
set tacacs server
show accounting
set accounting connect
Use the set accounting connect command to enable tracking of outbound connection events on the switch.
set accounting connect enable {start-stop | stop-only} {tacacs+ | radius}
set accounting connect disable
Syntax Description
enable
|
Keyword that enables the specified accounting method for connection events.
|
start-stop
|
Keyword that specifies the accounting method that applies at the start and stop of the connection event.
|
stop-only
|
Keyword that specifies the accounting method that applies at the conclusion of the connection event.
|
tacacs+
|
Keyword that specifies TACACS+ accounting for connection events.
|
radius
|
Keyword that specifies RADIUS accounting for connection events.
|
disable
|
Keyword that disables accounting of connection events.
|
Defaults
By default, accounting is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You must configure the RADIUS or TACACS+ servers and shared keys before enabling accounting.
Examples
This example shows how to enable accounting on Telnet and rlogin sessions when generating records at stop only, using a TACACS+ server:
Console> (enable) set accounting connect enable stop-only tacacs+
Accounting set to enable for connect events in stop-only mode.
This example shows how to disable accounting:
Console> (enable) set accounting connect disable
Accounting set to disable for connect events.
Related Commands
set accounting commands
set accounting exec
set accounting suppress
set accounting system
set accounting update
set radius key
set tacacs key
set tacacs server
show accounting
set accounting exec
Use the set accounting exec command to enable tracking of normal mode sessions on the switch.
set accounting exec enable {start-stop | stop-only} {tacacs+ | radius}
set accounting exec disable
Syntax Description
enable
|
Keyword that enables the specified accounting method for normal mode events.
|
start-stop
|
Keyword that specifies the accounting method applied at the start and stop of the normal mode event.
|
stop-only
|
Keyword that specifies the accounting method applied at the conclusion of the normal mode event.
|
tacacs+
|
Keyword that specifies TACACS+ accounting for normal mode events.
|
radius
|
Keyword that specifies RADIUS accounting for normal mode events.
|
disable
|
Keyword that disables accounting for normal mode events.
|
Defaults
By default, accounting is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You must configure the RADIUS or TACACS+ servers and shared keys before enabling accounting.
Examples
This example shows how to enable accounting of normal login mode events when generating records at start and stop, using a RADIUS server:
Console> (enable) set accounting exec enable start-stop radius
Accounting set to enable for exec events in start-stop mode.
This example shows how to enable accounting of normal login mode events when generating records at stop only, using a RADIUS server:
Console> (enable) set accounting exec enable stop-only radius
Accounting set to enable for exec events in stop-only mode.
This example shows how to enable accounting of normal login mode events when generating records at start and stop, using a TACACS+ server:
Console> (enable) set accounting exec enable start-stop tacacs+
Accounting set to enable for exec events in start-stop mode.
This example shows how to enable accounting of normal login mode events when generating records at stop only, using a TACACS+ server:
Console> (enable) set accounting exec enable stop-only tacacs+
Accounting set to enable for exec events in stop-only mode.
This example shows how to disable accounting of normal login mode events:
Console> (enable) set accounting exec disable
Accounting set to disable for exec events in start-stop mode.
Related Commands
set accounting commands
set accounting connect
set accounting suppress
set accounting system
set accounting update
set radius key
set radius server
set tacacs key
set tacacs server
show accounting
set accounting suppress
Use the set accounting suppress command to enable or disable suppression of accounting information for a user who has logged in without a username.
set accounting suppress null-username {enable | disable}
Syntax Description
null-username
|
Keyword that specifies unknown users.
|
enable
|
Keyword that enables suppression for unknown users.
|
disable
|
Keyword that disables suppression for unknown users.
|
Defaults
By default, accounting is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You must configure the TACACS+ servers and shared keys before enabling accounting.
Examples
This example shows how to suppress accounting information for users who have logged in without a username:
Console> (enable) set accounting suppress null-username enable
Accounting will be suppressed for user with no username.
This example shows how to include accounting-event information of users who have logged in without a username:
Console> (enable) set accounting suppress null-username disable
Accounting will be not be suppressed for user with no username.
Related Commands
set accounting commands
set accounting connect
set accounting exec
set accounting system
set accounting update
set tacacs key
set tacacs server
show accounting
set accounting system
Use the set accounting system command to enable accounting of system events on the switch.
set accounting system enable {start-stop | stop-only} {tacacs+ | radius}
set accounting system disable
Syntax Description
enable
|
Keyword that enables the specified accounting method for system events.
|
start-stop
|
Keyword that specifies the accounting method applied at the start and stop of the system event.
|
stop-only
|
Keyword that specifies the accounting method applied at the conclusion of the system event.
|
tacacs+
|
Keyword that specifies TACACS+ accounting for system events.
|
radius
|
Keyword that specifies RADIUS accounting for system events.
|
disable
|
Keyword that disables accounting for system events.
|
Defaults
By default, accounting is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You must configure the RADIUS or TACACS+ servers and shared keys before enabling accounting.
Examples
This example shows how to enable accounting for system events when sending records only upon termination of the event, using a RADIUS server:
Console> (enable) set accounting system enable stop-only radius
Accounting set to enable for system events in start-stop mode.
This example shows how to enable accounting for system events when sending records upon the start-stop of the event, using a RADIUS server:
Console> (enable) set accounting system enable start-stop radius
Accounting set to enable for system events in start-stop mode.
This example shows how to enable accounting for system events when sending records only upon termination of the event, using a TACACS+ server:
Console> (enable) set accounting system enable stop-only tacacs+
Accounting set to enable for system events in start-stop mode.
This example shows how to enable accounting for system events when sending records upon the start-stop of the event, using a TACACS server:
Console> (enable) set accounting system enable start-stop tacacs+
Accounting set to enable for system events in start-stop mode.
This example shows how to disable accounting for system events:
Console> (enable) set accounting system disable
Accounting set to disable for system events.
Related Commands
set accounting commands
set accounting connect
set accounting exec
set accounting suppress
set accounting update
set radius key
set radius server
set tacacs key
set tacacs server
show accounting
set accounting update
Use the set accounting update command to configure the frequency of accounting updates.
set accounting update {new-info | periodic [interval]}
Syntax Description
new-info
|
Keyword that specifies to update only when new information is available.
|
periodic
|
Keyword that specifies to update periodically.
|
interval
|
(Optional) Variable that specifies the periodic update interval time in minutes; valid intervals are from 1 to 71582 minutes.
|
Defaults
By default, accounting is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You must configure the TACACS+ servers and shared keys before enabling accounting.
Examples
This example shows how to send accounting updates every 200 minutes:
Console> (enable) set accounting update periodic 200
Accounting updates will be periodic at 200 minute intervals.
This example shows how to send accounting updates only when there is new information:
Console> (enable) set accounting update new-info
Accounting updates will be sent on new information only.
Related Commands
set accounting commands
set accounting connect
set accounting exec
set accounting suppress
set accounting system
set radius key
set radius server
set tacacs key
set tacacs server
show accounting
set alias
Use the set alias command to define command aliases (shortened versions of command names).
set alias name command [parameter]
Syntax Description
name
|
Variable that specifies a name for the alias being created.
|
command
|
Variable that specifies the command for which the alias is being created.
|
parameter
|
(Optional) Variable that specifies the parameter that applies to the command for which an alias is being created. See the specific command for valid parameters.
|
Defaults
By default, there are no aliases configured.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The name all cannot be defined as an alias. Reserved words cannot be defined as aliases.
Examples
This example shows how to set arpdel as the alias for the clear arp command:
Console> (enable) set alias arpdel clear arp
Related Commands
show alias
set arp
Use the set arp command to add IP address-to-MAC address mapping entries to the ARP table and to set the ARP aging time for the table.
set arp [dynamic | permanent | static] [ip_addr | hw_addr]
set arp agingtime agingtime
Syntax Description
dynamic
|
(Optional) Keyword that specifies that entries are subject to ARP aging updates.
|
permanent
|
(Optional) Keyword that stores permanent entries in NVRAM until they are cleared by the clear arp or clear config command.
|
static
|
(Optional) Keyword that specifies that entries are not subject to ARP aging updates.
|
ip_addr
|
(Optional) Variable that specifies the IP address or IP alias to map to the specified MAC address.
|
hw_addr
|
(Optional) Variable that specifies the MAC address to map to the specified IP address or IP alias.
|
agingtime
|
Keyword that specifies the period of time after which an ARP entry is deleted from the ARP table.
|
agingtime
|
Variable that specifies the number of seconds (from 0 to 1000000) for which entries will remain in the ARP table before being deleted. Setting this value to 0 disables aging.
|
Defaults
By default, no ARP table entries exist; ARP aging is set to 1200 seconds.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
hw_addr is 6-hexbyte MAC address expressed in canonical (00-11-22-33-44-55) or noncanonical (00:11:22:33:44:55) format.
Examples
This example shows how to configure a dynamic ARP entry mapping that will age out after the configured ARP aging time:
Console> (enable) set arp dynamic 198.133.219.232 00-00-0c-40-0f-bc
This example shows how to set the aging time for the ARP table to 1800 seconds (30 minutes):
Console> (enable) set arp agingtime 1800
ARP aging time set to 1800 seconds.
This example shows how to configure a permanent ARP entry, which will remain in the ARP cache after a system reset:
Console> (enable) set arp permanent 198.146.232.23 00-00-0c-30-0f-bc
Permanent ARP entry added as 198.146.232.23 at 00-00-0c-30-0f-bc on vlan 5
This example shows how to configure a static ARP entry, which will be deleted from the ARP cache after a system reset:
Console> (enable) set arp static 198.144.239.22 00-00-0c-50-0f-bc
Static ARP entry added as 198.144.239.22 at 00-00-0c-50-0f-bc on vlan 5
Related Commands
clear arp
show arp
set authentication enable
Use the set authentication enable command to configure the switch to use RADIUS, TACACS+, Kerberos, or local authentication to authenticate privileged (enable) mode access on the switch.
set authentication enable {radius | tacacs | kerberos} {enable} [console | telnet | http | all]
[primary]
set authentication enable {radius | tacacs | kerberos} {disable} [console | telnet | http | all]
set authentication enable local {enable | disable} [console | telnet | http | all]
set authentication enable attempt {count} [console | remote]
set authentication enable lockout {time} [console | remote]
Syntax Description
radius
|
Keyword that specifies RADIUS authentication for privileged mode access.
|
tacacs
|
Keyword that specifies TACACS+ authentication for privileged mode access.
|
kerberos
|
Keyword that specifies Kerberos authentication for privileged mode access.
|
enable
|
Keyword that enables the specified authentication method for privileged mode access.
|
console
|
(Optional) Keyword that applies the authentication method to console sessions.
|
telnet
|
(Optional) Keyword that applies the authentication method to Telnet sessions.
|
http
|
(Optional) Keyword that applies the authentication method to HTTP sessions.
|
all
|
(Optional) Keyword that applies the authentication method to all sessions.
|
primary
|
(Optional) Keyword that specifies that the authentication method must be tried first.
|
disable
|
Keyword that disables the specified authentication method for privileged mode access.
|
local
|
Keyword that specifies local authentication for privileged mode access.
|
attempt
|
Keyword that specifies the number of login attempts.
|
count
|
Variable that specifies the number of allowed login attempts.
The configurable range for the login attempts is between 3 (default) to 10. Setting the maximum attempts to zero (0) disables limit checking.
|
remote
|
(Optional) Keyword that applies the authentication method to remote logins such as Telnet, SSH, Kerberos, and HTTP.
|
lockout
|
Keyword that specifies the period of time a user is locked out of the switch after unsuccessfully attempting to log in.
|
time
|
Variable that specifies the period of time a user is locked out in seconds.
The configurable range for the lockout (delay) time is between 30 to 7200 seconds (1/2 minute to 2 hours). Setting the time to zero (0) disables the lockout time.
|
Defaults
By default, local authentication is enabled for console and Telnet sessions. RADIUS, TACACS+, and Kerberos are disabled for all session types.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can specify TACACS+ or RADIUS as the primary authentication method for login and enable access by entering the primary keyword. If you enter the primary keyword, the specified authentication method will be tried first. If you do not specify a primary authentication, authentication will be tried in the order in which you enabled the authentication methods.
You can specify that the authentication method applies to console sessions, Telnet sessions, or both, by entering the console or telnet keyword. If you do not specify console or telnet the authentication method applies to both console and Telnet sessions.
Examples
This example shows how to use the TACACS+ server to determine if a user has privileged access permission:
Console> (enable) set authentication enable tacacs enable
tacacs enable authentication set to enable for console, telnet and http session.
This example shows how to use the local password to determine if the user has privileged access permission:
Console> (enable) set authentication enable local enable
local enable authentication set to enable for console, telnet and http session.
This example shows how to use the RADIUS server to determine if a user has privileged access permission for all session types:
Console> (enable) set authentication enable radius enable
radius enable authentication set to enable for console, telnet and http session.
This example shows how to use the TACACS+ server to determine if a user has privileged access permission for a console session:
Console> (enable) set authentication enable tacacs enable console
tacacs enable authentication set to enable for console session.
This example shows how to set the Kerberos server to be used first:
Console> (enable) set authentication enable kerberos enable primary
kerberos enable authentication set to enable for console, telnet and http session
n as primary authentication method.
This example shows how to set the enable login attempt to 5 for both console and remote sessions:
Console> (enable) set authentication enable attempt 5
Enable mode authentication attempts for console and remote login set to 5.
This example shows how to set the enable login attempt to 7 for remote sessions:
Console> (enable) set authentication enable attempt 7 remote
Enable mode authentication attempts for remote login set to 7.
This example shows how to set the enable login attempt to 8 for console sessions:
Console> (enable) set authentication enable attempt 8 console
Enable mode authentication attempts for console login set to 8.
This example shows how to set the enable lockout time for both console and remote sessions to 50 seconds:
Console> (enable) set authentication enable lockout 50
Enable mode lockout time for console and remote login set to 50 seconds.
This example shows how to set the enable lockout time for console sessions to 5 minutes:
Console> (enable) set authentication enable lockout 300 console
Enable mode lockout time for console login set to 5 minutes.
This example shows how to set the enable lockout time for remote sessions to 7 minutes and 10 seconds:
Console> (enable) set authentication enable lockout 430 remote
Enable mode lockout time for console and remote login set to 7 minutes and 10 seconds.
Related Commands
set authentication login
show authentication
set authentication login
Use the set authentication login command to configure the switch to use TACACS+, Kerberos, RADIUS, or local authentication to authenticate normal (login) mode access on the switch.
set authentication login attempt count [console | remote]
set authentication login lockout time [console | remote]
set authentication login {radius | tacacs | kerberos} enable [console | telnet | http | all]
[primary]
set authentication login {radius | tacacs | kerberos} disable [console | telnet | http | all]
set authentication login local {enable | disable} [console | telnet | http | all]
Syntax Description
attempt count
|
Keyword and variable that specify the number of login attempts.
|
remote
|
(Optional) Keyword that specifies the authentication method applies to remote logins such as Telnet, SSH, kerberos, and HTTP.
|
lockout time
|
Keyword and variable that specify the period of time a user is locked out of the switch after unsuccessfully attempting to log in.
The configurable range is 30 to 7200 seconds. Setting the lockout time to zero (0) disables this function.
|
radius
|
Keyword that specifies RADIUS authentication for normal mode access.
|
tacacs
|
Keyword that specifies TACACS+ authentication for normal mode access.
|
kerberos
|
Keyword that specifies Kerberos authentication for normal mode access.
|
enable
|
Keyword that enables the specified authentication method for normal mode access.
|
console
|
(Optional) Keyword that applies the authentication method to console sessions.
|
telnet
|
(Optional) Keyword that applies the authentication method to Telnet sessions.
|
http
|
(Optional) Keyword that applies the authentication method to HTTP sessions.
|
all
|
(Optional) Keyword that applies the authentication method to all sessions.
|
primary
|
(Optional) Keyword that specifies that the specified authentication method be tried first.
|
disable
|
Keyword that disables the specified authentication method for normal mode access.
|
local
|
Keyword that specifies local authentication for normal mode access.
|
Defaults
The defaults are:
•
Three login attempts
•
Local authentication as the primary authentication method for login
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command allows you to choose the authentication method for the web interface. If you configure the authentication method for the HTTP session as RADIUS, then the username or password is validated using the RADIUS protocol, and TACACS+ and Kerberos authentication is set to disable for the HTTP sessions. By default, the HTTP login is validated using the local login password.
You can specify the authentication method for console, telnet, http, or all by entering the console, telnet, http, or all keywords. If you do not specify console, telnet, http, or all, the authentication method default is for all sessions.
The maximum number of login attempts from SNMP and the command-line interface (CLI) can be configured. The configurable range is from 0 to 10. To disable login attempts, set the level to 0. Failed login system logs are generated after five unsuccessful login attempts. If you are attempting access to enable mode, and the password fails more than the number of attempts allowed, the system will disable the execution of the enable command for the lockout time.
The lockout time is configurable from SNMP and the CLI. The configurable range is from 30 to 600 seconds (half a minute to ten minutes). For console login, the console will not allow logging in during that time. For remote logins the connection will be closed when the limit is reached, and any subsequent log in attempts from that station will be closed immediately by the switch.
When attempt limit checking is disabled, the lockout restriction is no longer applicable.
Examples
This example shows how to set the login attempt to 5 for both console and remote sessions:
Console> (enable) set authentication login attempt 5
Login authentication attempts for console and remote login set to 5.
This example shows how to set the login attempt to 7 for remote sessions:
Console> (enable) set authentication login attempt 7 remote
Login authentication attempts for remote login set to 7.
This example shows how to set the login attempt to 8 for console sessions:
Console> (enable) set authentication login attempt 8 console
Login authentication attempts for console login set to 8.
This example shows how to set the lockout time for both console and remote sessions to 50 seconds:
Console> (enable) set authentication login lockout 50
Login lockout time for console and remote login set to 50 seconds.
This example shows how to set the lockout time for console sessions to 5 minutes:
Console> (enable) set authentication login lockout 300 console
Login lockout time for console login set to 5 minutes.
This example shows how to set the lockout time for remote sessions to 7 minutes and 10 seconds:
Console> (enable) set authentication login lockout 430 remote
Login lockout time for console and remote login set to 7 minutes and 10 seconds.
This example shows how to disable TACACS+ authentication access for Telnet sessions:
Console> (enable) set authentication login tacacs disable telnet
tacacs login authentication set to disable for the telnet sessions.
This example shows how to disable RADIUS authentication access for console sessions:
Console> (enable) set authentication login radius disable console
radius login authentication set to disable for the console sessions.
This example shows how to disable Kerberos authentication access for Telnet sessions:
Console> (enable) set authentication login kerberos disable telnet
kerberos login authentication set to disable for the telnet sessions.
This example shows how to set TACACS+ authentication access as the primary method for HTTP sessions:
Console> (enable) set authentication login tacacs enable http primary
tacacs login authentication set to enable for HTTP sessions as primary authentication
method.
Related Commands
set authentication enable
show authentication
set authorization commands
Use the set authorization commands command set to enable authorization of command events on the switch.
set authorization commands enable {config | enable | all} {option} {fallbackoption} [console |
telnet | both]
set authorization commands disable [console | telnet | both]
Syntax Description
enable
|
Keyword that enables the specified authorization method for commands.
|
config
|
Keyword that permits authorization for configuration commands only.
|
enable
|
Keyword that permits authorization for enable mode commands only.
|
all
|
Keyword that permits authorization for all commands.
|
option
|
Variable that specifies the switch response to an authorization request. Valid values are tacacs+, if-authenticated, and none. See "Usage Guidelines" for more information.
|
fallbackoption
|
Variable that specifies the switch fallback response to an authorization request if the TACACS+ server is down or not responding. Valid values are tacacs+, deny, if-authenticated, and none. See "Usage Guidelines" for more information.
|
console
|
(Optional) Keyword that applies the authorization method to console sessions.
|
telnet
|
(Optional) Keyword that applies the authorization method to Telnet sessions.
|
both
|
(Optional) Keyword that applies the authorization method to both console and Telnet sessions.
|
disable
|
Keyword that disables authorization for commands.
|
Defaults
By default, authorization is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
When you define the option and fallbackoption values, the following occurs:
•
tacacs+ specifies the TACACS+ authorization method.
•
deny does not let you proceed.
•
if-authenticated allows you to proceed with your action if you have been authenticated.
•
none allows you to proceed without further authorization in case the TACACS+ server does not respond.
Examples
This example shows how to enable authorization for all commands with an if-authenticated option and no fallback option, in case the TACACS+ daemon is down or does not respond:
Console> (enable) set authorization commands enable all if-authenticated none
Successfully enabled commands authorization.
This example shows how to disable command authorization:
Console> (enable) set authorization commands disable
Successfully disabled commands authorization.
This example shows how to configure authorization for enable mode commands:
Console> (enable) set authorization commands enable enable tacacs+ deny telnet
Successfully enabled commands authorization.
Related Commands
set authorization enable
set authorization exec
show authorization
set authorization enable
Use the set authorization enable command to authorize enable (privileged mode) session events on the switch.
set authorization enable enable {option} {fallbackoption} [console | telnet | both]
set authorization enable disable [console | telnet | both]
Syntax Description
enable
|
Keyword that enables the specified authorization method.
|
option
|
Variable that specifies the switch response to an authorization request. Valid values are tacacs+, if-authenticated, and none. See "Usage Guidelines" for more information.
|
fallbackoption
|
Variable that specifies the switch fallback response to an authorization request if the TACACS+ server is down or not responding. Valid values are tacacs+, deny, if-authenticated, and none. See "Usage Guidelines" for more information.
|
console
|
(Optional) Keyword that applies the authorization method to console sessions.
|
telnet
|
(Optional) Keyword that applies the authorization method to Telnet sessions.
|
both
|
(Optional) Keyword that applies the authorization method to both console and Telnet sessions.
|
disable
|
Keyword that disables the specified authorization method.
|
Defaults
By default, authorization is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The tacacs+ value allows you to proceed with your action if you have authorization.
The deny value does not let you proceed if the TACACS+ server does not respond.
The if-authenticated value allows you to proceed with your action if you have been authenticated.
The none value allows you to proceed without further authorization in case the TACACS+ server does not respond.
Examples
This example shows how to enable authorization of configuration commands in enable mode sessions:
Console> (enable) set authorization enable enable if-authenticated
Successfully enabled enable authorization.
This example shows how to disable enable mode authorization:
Console> (enable) set authorization enable disable
Successfully disabled enable authorization.
Related Commands
set authorization commands
set authorization exec
show authorization
set authorization exec
Use the set authorization exec command to enable authorization of exec (normal mode) session events on the switch.
set authorization exec enable {option} {fallbackoption} [console | telnet | both]
set authorization exec disable [console | telnet | both]
Syntax Description
enable
|
Keyword that specifies to enable the specified authorization method.
|
option
|
Variable that specifies the switch response to an authorization request; valid values are tacacs+, if-authenticated, and none. See "Usage Guidelines" for more information.
|
fallbackoption
|
Variable that specifies the switch fallback response to an authorization request if the TACACS+ server is down or not responding; valid values are tacacs+, deny, if-authenticated, and none. See "Usage Guidelines" for more information.
|
console
|
(Optional) Keyword that applies the authorization method to console sessions.
|
telnet
|
(Optional) Keyword that applies the authorization method to Telnet sessions.
|
both
|
(Optional) Keyword that applies the authorization method to console and Telnet sessions.
|
disable
|
Keyword that disables the specified authorization method.
|
Defaults
By default, authorization is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The tacacs+ value allows you to proceed with your action if you have authorization.
The deny value does not let you proceed if the TACACS+ server does not respond.
The if-authenticated value allows you to proceed with your action if you have been authenticated.
The none value allows you to proceed without further authorization in case the TACACS+ server does not respond.
Examples
This example shows how to enable authorization of configuration commands in exec mode sessions:
Console> (enable) set authorization exec enable if-authenticated
Successfully enabled exec authorization.
This example shows how to disable exec mode authorization:
Console> (enable) set authorization exec disable
Successfully disabled exec authorization.
Related Commands
set authorization commands
set authorization enable
show authorization
set banner motd
Use the set banner motd command to create a login banner that is displayed when users access the switch.
set banner motd c [text] c
Syntax Description
c
|
Variable that specifies the delimiting character used to begin and end the message.
|
text
|
(Optional) Variable that specifies the message of the day.
|
Defaults
By default, no MOTD banner is displayed.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The banner cannot contain more than 3070 characters, including tabs. Tabs display as eight characters but use only one character of space in memory.
You can use either the clear banner motd command or the set banner motd command to clear the message-of-the-day banner.
Examples
This example shows how to set the message of the day using the pound sign (#) as the delimiting character:
Console> (enable) set banner motd #
** System upgrade: starting: 6:00am Tuesday.
** Please log out before leaving on Monday. #
This example shows how to clear the message of the day using the set banner motd command:
Console> (enable) set banner motd ##
Related Commands
clear banner motd
set banner telnet
Use the set banner telnet command to create a login banner that is displayed when users access the switch using Telnet.
set banner telnet {enable | disable}
Syntax Description
enable
|
Keyword that specifies to display the default console banner.
|
disable
|
Keyword that specifies to suppress the default console banner.
|
Defaults
By default, this command is enabled.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to enable the default console banner:
Console> (enable) set banner telnet enable
Cisco Systems Console banner will be printed at telnet.
This example shows how to disable the default console banner:
Console> (enable) set banner telnet disable
Cisco Systems Console banner will not be printed at telnet.
set boot auto-config
Use the set boot auto-config command to specify one or more configuration files to use to configure the switch at startup and to set the recurrence option. A list of configuration files is stored in the CONFIG_FILE environment variable.
set boot auto-config device:filename [;device:filename...] [mod_num]
Syntax Description
device:
|
Variable that specifies the device where the startup configuration file resides.
|
filename
|
Variable that specifies the name of the startup configuration file.
|
mod_num
|
(Optional) Variable that specifies the module number of the supervisor engine containing the Flash device.
|
Defaults
By default, this command is set to non-recurring and the CONFIG_FILE environment variable is not defined.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The set boot auto-config command always overwrites the existing CONFIG_FILE environment variable (you cannot prepend or append a file to the variable).
Multiple configuration files can be specified in the Catalyst 4000 family switches, but they must be separated by a semicolon (;).
To set the recurrence on the Catalyst 4000 family switches, use the set boot config-register auto-config command.
Examples
This example shows how to specify the configuration file environment variable:
Console> (enable) set boot auto-config slot0:cfg1
CONFIG_FILE variable = slot0:cfg1
WARNING: nvram configuration may be lost during next bootup,
and re-configured using the file(s) specified.
Related Commands
set boot system flash
set boot config-register
Use the set boot config-register command to set the boot configuration register value.
set boot config-register value [mod]
set boot config-register boot {rommon | bootflash | system} [mod_num]
set boot config-register baud {1200 | 2400 | 4800 | 9600} [mod_num]
set boot config-register ignore-config {enable | disable} [mod_num]
set boot config-register auto-config {recurring | non-recurring} [mod_num]
Syntax Description
value
|
Keyword that sets the 16-bit configuration register value. This value is a hexadecimal value and the valid range is 0x0 to 0xFFFF.
|
mod
|
(Optional) Variable that specifies the module number of the supervisor engine on which to set the configuration register value.
|
boot
|
Keyword that specifies the boot method to use the next time the switch is reset or the power is cycled.
|
rommon
|
Keyword that causes the switch to remain in ROM monitor mode the next time the switch is reset or the power is cycled.
|
bootflash
|
Keyword that causes the switch to boot using the first valid system image in bootflash the next time the switch is reset or the power is cycled.
|
system
|
Keyword that causes the switch to boot using the system images specified in the BOOT environment variable the next time the switch is reset or the power is cycled.
|
baud
|
Keyword that sets the console baud rate.
|
1200 | 2400 | 4800 | 9600
|
Keywords that specify the baud rate for the ROM monitor console port.
|
ignore-config
|
Keyword that specifies that the switch should ignore the configuration in NVRAM the next time the switch is restarted.
|
enable
|
Keyword that causes the switch to ignore the configuration in NVRAM the next time the switch is restarted.
|
disable
|
Keyword that prevents the switch from ignoring the configuration in NVRAM the next time the switch is restarted.
|
auto-config
|
Keyword that sets the switch to use the configuration in NVRAM the next time the switch is restarted.
|
recurring
|
Keyword that retains the contents of the CONFIG_FILE environment variable after the switch is reset or power cycled and configured using the files specified by the CONFIG_FILE environment variable.
|
non-recurring
|
Keyword that clears the contents of the CONFIG_FILE environment variable after the switch is reset or power cycled and before the switch is configured using the files specified by the CONFIG_FILE environment variable.
|
Defaults
The default configuration register value is 0x10F, which specifies the following settings:
•
Boot method is "system" (the switch boots using the system images specified in the BOOT environment variable).
•
ROM monitor console port baud rate is set to 9600.
•
The ignore-config parameter is disabled.
•
The auto-config parameter is set to non recurring.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
We recommend that you use only the rommon and system keywords with the set boot config-register boot command.
Each time you enter one of the set boot config-register commands, the system displays all current configuration register information (the equivalent of entering the show boot command).
The baud rate specified in the configuration register is used by the ROM monitor only and is different from the baud rate specified by the set system baud command.
The auto-config_file variable is slot0:switch.cfg for non-recurring and bootflash:switch.cfg for the Catalyst 4000 family switches.
Caution 
Enabling the
ignore-config parameter is the same as entering the
clear config all command; that is, it clears the entire configuration stored in NVRAM the next time the switch is restarted.
Caution 
When you use the
set boot config-register 0xvalue command we recommend that you confirm and verify the 0xvalue. If you enter an incorrect 0xvalue the switch might either boot incorrectly or lose the configuration in NVRAM.
Examples
This example shows how to specify the default 16-bit configuration register value:
Console> (enable) set boot config-register 0x10f
Configuration register is 0x10f
auto-config: non-recurring
boot: image specified by the boot system commands
This example shows how to specify rommon as the boot image to use on the next restart:
Console> (enable) set boot config-register boot rommon
Configuration register is 0x100
auto-config: non-recurring
This example shows how to change the ROM monitor console port baud rate to 4800:
Console> (enable) set boot config-register baud 4800
Configuration register is 0x900
auto-config: non-recurring
This example shows how to cause the switch to ignore the configuration in NVRAM the next time the switch is reset or power cycled:
Console> (enable) set boot config-register ignore-config enable
Configuration register is 0x940
auto-config: non-recurring
This example shows how to set the auto-configuration to recurring:
Console> (enable) set boot config-register auto-config recurring
Configuration register is 0x960
Related Commands
clear boot—switch
show boot—switch
set boot sync now
Use the set boot sync now command to initiate synchronization of the auto-config file.
set boot sync now
Syntax Description
This command has no arguments or keywords.
Defaults
By default, synchronization is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The set boot sync now command is similar to the set boot config-register command. The set boot sync now command initiates synchronization to force the configuration files to synchronize automatically to the standby supervisor engine. The files are kept consistent with what is on the active supervisor engine.
Examples
This example shows how to initiate synchronization of the auto-config file:
Console> (enable) set boot sync now
Related Commands
set boot auto-config
show boot—switch
set boot system flash
Use the set boot system flash command to set the BOOT environment variable, which specifies a list of software images that the switch attempts to load at startup.
set boot system flash device:filename [prepend] [mod_num]
Syntax Description
device:
|
Variable that specifies the flash device where the software image is stored (the colon [:] is required).
|
filename
|
Variable that specifies the name of the software image file on the Flash device.
|
prepend
|
(Optional) Keyword that places the specified software image file at the beginning of the list of images used to boot the switch.
|
mod_num
|
(Optional) Variable that specifies the module number of the supervisor engine on which to modify the BOOT environment variable.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can enter several boot system commands to provide a fail-safe method for booting the switch. The system stores and executes the boot system commands in the order in which you enter them.
When you copy a new software image to a Flash device and want to switch to boot that image the next time the switch is reset, clear the BOOT environment variable using the clear boot system all command or use the prepend keyword to place the new software image file first in the list of images to attempt to boot.
If the file does not exist (for example, if you entered the wrong filename), then the filename is appended to the bootstring, and a message displays, "Warning: File not found but still added in the bootstring."
If the file does exist, but is not a supervisor engine software image, the file is not added to the bootstring, and a message displays, "Warning: file found but it is not a valid boot image."
Examples
This example shows how to append a software image file to the BOOT environment variable:
Console> (enable) set boot system flash bootflash:cat5000-sup3.5-1-1.bin
bootflash:cat5000-sup3.5-2-1.bin,1;bootflash:cat5000-sup3.5-1-1.bin,1;
This example shows how to prepend a software image file to the BOOT environment variable:
Console> (enable) set boot system flash slot0:cat5000-sup3.5-2-1.bin prepend
slot0:cat5000-sup3.5-2-1.bin,1;bootflash:cat5000-sup3.4-5-2.bin,1;
Related Commands
clear boot—switch
show boot—switch
set cam
Use the set cam command to add entries into the CAM table.
set cam {dynamic | static | permanent} {unicast_mac | route_descr} {mod/port} [vlan]
set cam {static | permanent} {multicast_mac} {mod/ports...} [vlan]
set cam {static | permanent} filter {unicast_mac} [vlan]
Syntax Description
dynamic
|
Keyword that specifies that entries are subject to aging.
|
static
|
Keyword that specifies that entries are not subject to aging. Static (nonpermanent) entries will remain in the table until the system is reset.
|
permanent
|
Keyword that specifies that permanent entries are stored in NVRAM until they are cleared by the clear cam or clear config command.
|
unicast_mac
|
Variable that specifies the MAC address of the destination host used for a unicast.
|
route_descr
|
Variable that specifies the route descriptor of the "next hop" relative to this switch. This variable is entered as two hexadecimal bytes in the following format: 004F. Do not use a hyphen (-) to separate the bytes.
|
mod/port
|
Variable that specifies the number of the module and the port.
|
vlan
|
(Optional) Variable that specifies the number of the VLAN. This number is optional unless you are setting CAM entries to dynamic, static, or permanent for a trunk port.
|
multicast_mac
|
Variable that specifies the MAC address of the destination host used for a multicast.
|
mod/ports...
|
Variable that specifies the number of the module and the ports.
|
filter
|
Keyword that specifies a traffic filter entry.
|
Defaults
The default configuration has a local MAC address, spanning tree address (01-80-c2-00-00-00), and CDP multicast address for destination port 1/3 (the supervisor engine). The default aging time for all configured VLANs is 300 seconds.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The vlan variable is required when you configure the traffic filter entry.
If the given MAC address is a multicast address (the least significant bit of the most significant byte is set to 1) or broadcast address (ff-ff-ff-ff-ff-ff) and you specify multiple ports, the ports must all be in the same VLAN. If the given address is a unicast address and you specify multiple ports, the ports must be in different VLANs.
The MSM does not support the set cam command.
If you enter a route descriptor and do not specify a VLAN parameter, the default is the VLAN already associated with the port. If you enter a route descriptor, you can use only a single port number (for the associated port).
The MAC address and VLAN for a host can be stored in the NVRAM. It is maintained even after a reset.
The vlan number is optional unless you are setting CAM entries to dynamic, static, or permanent for a trunk port, or if you are using the agingtime keyword.
If port(s) are trunk ports, you must specify the VLAN.
Static (nonpermanent) entries remain in the table until you reset the active supervisor engine.
Enter the route_descr variable as two hexadecimal bytes in the following format: 004F. Do not use a hyphen (-) to separate the bytes.
Examples
This example shows how to add a static unicast entry to the cam table for module 2, port 9:
Console> (enable) set cam static 00-00-0c-a0-03-fa 2/9
Static unicast entry added to CAM table.
This example shows how to add a permanent multicast entry to the cam table for a group of ports:
Console> (enable) set cam permanent 01-40-0b-a0-03-fa 1/1,2/1,2/3,2/8-12
Permanent multicast entry added to CAM table.
This example shows how to add a static traffic filter entry to the cam table:
Console> (enable) set cam static filter 00-02-03-04-05-06 1
Filter entry added to CAM table.
This example shows how to add a filter for a specific MAC address:
Console> (enable) set cam static filter 00-02-03-04-05-06 1
Filter entry added to CAM table.
Related Commands
clear cam
set cam agingtime
set cam notification
show cam
show cam notification
set cam agingtime
Use the set cam agingtime command to set the aging time for the CAM table.
set cam agingtime [vlan] agingtime
Syntax Description
vlan
|
(Optional) Variable that specifies the number of the VLAN. This number is optional unless you are setting CAM entries to dynamic, static, or permanent for a trunk port, or if you are using the agingtime variable.
|
agingtime
|
Variable that specifies the number of seconds that dynamic entries remain in the table before being deleted; valid ranges are from 15 to 1,000,000 seconds. Setting aging time to zero (0) disables aging.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
Setting the aging time to 0 disables aging. The minimum configurable non-zero aging time is 15 seconds. You cannot configure an aging of from 1 to 14 seconds.
Examples
This example shows how to set the CAM table aging time for VLAN 1 to 300 seconds:
Console> (enable) set cam agingtime 1 300
Vlan 1 CAM aging time set to 300 seconds.
Related Commands
clear cam
set cam
set cam notification
show cam
show cam notification
set cam notification
Use the set cam notification command to enable notification when a MAC address change occurs to the CAM table and to set the time between notifications.
set cam notification {enable | disable}
set cam notification {added | removed} {enable | disable} {mod/port}
set cam notification historysize log_size
set cam notification interval time
Syntax Description
enable
|
Keyword that enables notification that a change has occurred.
|
disable
|
Keyword that disables notification that a change has occurred.
|
added
|
Keyword that specifies notification when a MAC address is learned.
|
removed
|
Keyword that specifies notification when a MAC address is deleted.
|
mod/port
|
Variable that specifies the number of the module and the port.
|
historysize
|
Keyword for creating a notification history log.
|
log_size
|
Variable that specifies the number of entries in the notification history log; valid sizes are between 0 and 500 entries.
|
interval
|
Keyword that sets the maximum wait time between notifications.
|
time
|
Variable that specifies the time between notification; valid values are from 0 to 4,294,967,295 (specified in seconds).
|
Defaults
By default, notification is disabled.
By default, the interval time is set to 1 second.
By default, the history size is set to 1 entry.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can globally disable notifications using the set cam notification disable command, but the other notification configuration settings will remain configured. The notification configuration settings can be reset using the clear config command. the clear cam notification command can be used to clear the history log or reset notification counters.
If you set the interval time to 0, the switch will send notifications immediately. There is an impact on the performance of the switch when you set the interval time to zero (0).
You can configure the switch to generate MAC notification SNMP traps using the set snmp enable macnotification command. MAC notification SNMP traps are generated even when the history log size is set to zero (0).
Examples
This example shows how to enable notification when a MAC address change occurs to the CAM table:
Console> (enable) set cam notification enable
MAC address change detection globally enabled
Be sure to specify which ports are to detect MAC address changes
with the 'set cam notification [added|removed] enable <m/p> command.
SNMP traps will be sent if 'set snmp trap enable macnotification' has been set.
This example shows how to enable notification when a new MAC address is added to ports 1-4 on module 3 in the CAM table:
Console> (enable) set cam notification added enable 3/1-4
MAC address change notifications for added addresses are
This example shows how to enable notification when a new MAC address is added to the CAM table on ports 1-4 on module 2:
Console> (enable) set cam notification added enable 2/1-4
MAC address change notifications for added addresses are
This example shows how to enable notification when a MAC address is deleted from the CAM table of ports 3-6 on module 3:
Console> (enable) set cam notification removed enable 3/3-6
MAC address change notifications for removed addresses are
This example shows how to set the history log size to 300 entries:
Console> (enable) set cam notification historysize 300
MAC address change history log size set to 300 entries
This example shows how to set the interval time to 10 seconds between notifications:
Console> (enable) set cam notification interval 10
MAC address change notification interval set to 10 seconds
Related Commands
clear cam
set cam
set cam agingtime
set snmp trap
show cam
show cam notification
set cdp
Use the set cdp command to enable or disable the Cisco Discovery Protocol (CDP) globally or on specified ports, and to configure the CDP hold time.
set cdp {enable | disable} [mod/ports...]
Syntax Description
enable
|
Keyword that enables the CDP feature.
|
disable
|
Keyword that disables the CDP feature.
|
mod/ports...
|
(Optional) Variable that specifies the number of the module and ports.
|
Defaults
By default, the system configuration has CDP enabled; the message interval is set to 60 seconds for every port.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you enter the global set cdp enable or disable command, CDP is globally configured. If CDP is globally disabled, CDP is automatically disabled on all ports, but the per-port enable (or disable) configuration is not changed. If CDP is globally enabled, whether CDP is running on a port depends on its per-port configuration.
If you configure CDP on a per-port basis, the mod/ports... can be entered as a single module and port or a range of ports; for example, 2/1-12,3/5-12.
Examples
This example shows how to enable the CDP globally:
Console> (enable) set cdp enable
This example shows how to enable the CDP on port 1 on module 2:
Console> (enable) set cdp enable 2/1
This example shows how to disable CDP globally:
Console> (enable) set cdp disable
This example shows how to disable the CDP message display for port 1 on module 2:
Console> (enable) set cdp disable 2/1
CDP disabled on port 2/1.
Related Commands
show cdp
set cdp holdtime
Use the set cdp holdtime command to configure the Cisco Discovery Protocol (CDP) holding time.
set cdp holdtime holdtime
Syntax Description
holdtime
|
Variable that specifies the number of seconds for the global CDP holding time value; valid values are from 10 to 255 seconds.
|
Defaults
By default, the CDP holdtime interval is set to 180 seconds.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to set the global CDP holding time value to 200 seconds:
Console> (enable) set cdp 200
CDP holdtime set to 200 seconds.
Related Commands
show cdp
set cdp interval
Use the set cdp interval command to globally set the message interval for the Cisco Discovery Protocol (CDP).
set cdp interval interval
Syntax Description
interval
|
Variable that specifies the number of seconds the system waits between CDP message transmissions; valid values are from 5 to 900 seconds
|
Defaults
By default, the message interval is set to 60 seconds.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to set the CDP message interval to 100 seconds:
Console> (enable) set cdp interval 100
CDP message interval set to 100 seconds for all ports.
Related Commands
set cdp
show cdp
set cdp version
Use the set cdp version command to set the version of the Cisco Discovery Protocol (CDP) to run on the switch.
set cdp version {v1 | v2}
Syntax Description
v1 | v2
|
Keywords that specify the version of CDP.
|
Defaults
By default, the CDP version is v2.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to set the CDP to version 1:
Console> (enable) set cdp version v1
Related Commands
set cdp
show cdp
set cgmp
Use the set cgmp command to enable or disable Cisco Group Management Protocol (CGMP) on the switch.
set cgmp {enable | disable}
Syntax Description
enable
|
Keyword that enables CGMP on the switch.
|
disable
|
Keyword that disables CGMP on the switch.
|
Defaults
By default, CGMP is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
CGMP requires that you connect the switch to a router running CGMP.
Examples
This example shows how to enable CGMP on a device:
Console> (enable) set cgmp enable
CMGP support for IP multicast enabled.
This example shows how to disable CGMP on a device:
Console> (enable) set cgmp disable
CMGP support for IP multicast disabled.
This example shows what happens if you try to enable CGMP if IGMP snooping is already enabled:
Console> (enable) set cgmp enable
Disable IGMP Snooping feature to enable CGMP.
Related Commands
clear multicast router
set cgmp fastleave
set cgmp leave
set multicast router
show cgmp leave
show cgmp statistics
show multicast group
show multicast group count
set cgmp fastleave
Use the set cgmp fastleave command to enable or disable Cisco Group Management Protocol (CGMP) fast-leave processing.
set cgmp fastleave {enable | disable}
Syntax Description
enable
|
Keyword that enables CGMP fast-leave processing.
|
disable
|
Keyword that disables CGMP fast-leave processing.
|
Defaults
By default, CGMP fast-leave processing is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to enable CGMP fast-leave processing:
Console> (enable) set cgmp fastleave enable
CMGP fastleave processing enabled.
This example shows how to disable CGMP fast-leave processing:
Console> (enable) set cgmp fastleave disable
CMGP fastleave processing disabled.
Related Commands
clear multicast router
set cgmp
set cgmp leave
set multicast router
show cgmp leave
show cgmp statistics
show multicast group
show multicast group count
set cgmp leave
Use the set cgmp leave command to enable or disable Cisco Group Management Protocol (CGMP) leave processing.
set cgmp fastleave {enable | disable}
Syntax Description
enable
|
Keyword that enables CGMP leave processing.
|
disable
|
Keyword that disables CGMP leave processing.
|
Defaults
By default, CGMP leave processing is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to enable CGMP leave processing:
Console> (enable) set cgmp leave enable
CMGP leave processing enabled.
This example shows how to disable CGMP leave processing:
Console> (enable) set cgmp leave disable
CMGP leave processing disabled.
Related Commands
clear multicast router
set cgmp
set cgmp fastleave
set multicast router
show cgmp leave
show cgmp statistics
show multicast group
show multicast group count
set channel cost
Use the set channel cost command to set the spanning tree port cost for an EtherChannel port bundle.
set channel cost {channel_id | all} [cost]
Syntax Description
channel_id
|
Variable that specifies the EtherChannel ID of the channel to modify.
|
all
|
Keyword that specifies all EtherChannel port bundles on the switch.
|
cost
|
(Optional) Variable that specifies the spanning tree port cost to apply to the EtherChannel.
|
Defaults
By default, the spanning tree port cost is calculated automatically, based on the current port costs of the ports in the EtherChannel.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
To determine the channel_id of an EtherChannel port bundle, use the show channel command.
If you do not specify the cost, the spanning tree port cost is updated based on the current port costs of the channeling ports. If you change the channel port cost, the port costs of member ports in the channel are modified to reflect the new cost. A message listing the ports for which the port costs were changed is displayed.
Examples
This example shows how to set the channel 768 path cost to 23:
Console> (enable) set channel cost 768 23
Port(s) 1/1-2,7/3,7/5 port path cost are updated to 60.
Channel 768 cost is set to 23.
Warning:channel cost may not be applicable if channel is broken.
This example shows how to set all channel path costs to 15:
Console> (enable) set channel cost all 15
Port(s) 4/1-4 port path cost are updated to 39.
Channel 768 cost is set to 15.
Warning:channel cost may not be applicable if channel is broken.
Related Commands
set channel vlancost
set port channel
show channel
show channel group
show port channel
set spantree portcost
set channelprotocol
Use the set channel protocol command to set the protocol that manages channeling on a module.
set channelprotocol {pagp | lacp} mod
Syntax Description
pagp
|
Keyword that specifies PAgP.
|
lacp
|
Keyword that specifies LACP.
|
mod
|
Variable that specifies the number of the module.
|
Defaults
The default for the channel protocol is PAgP.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to set PAgP for module 3:
Console> (enable) set channelprotocol pagp 3
Channeling protocol set to PAGP for module(s) 3.
This example shows how to set LACP for modules 2, 4, 5, and 6:
Console> (enable) set channelprotocol lacp 2,4-6
Channeling protocol set to LACP for module(s) 2,4,5,6.
Related Commands
clear lacp-channel statistics
set lacp-channel system-priority
set port lacp-channel
set spantree channelcost
set spantree channelvlancost
set port lacp-channel
show lacp-channel
set channel vlancost
Use the set channel vlancost command to set the spanning tree port-VLAN cost for an EtherChannel port bundle.
set channel vlancost channel_id [cost]
Syntax Description
channel_id
|
Variable that specifies the EtherChannel ID of the channel to modify.
|
cost
|
(Optional) Variable that specifies the spanning tree port-VLAN cost to apply to the EtherChannel.
|
Defaults
By default, the spanning tree port-VLAN cost is calculated automatically, based on the current port-VLAN costs of the ports in the EtherChannel.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can configure the port-VLAN cost of only one EtherChannel at a time.
To determine the channel_id of an EtherChannel port bundle, use the show channel command.
If you do not specify the cost, the spanning tree port-VLAN cost is updated based on the current port-VLAN costs of the channeling ports. If you change the channel port-VLAN cost, the port-VLAN costs of member ports in the channel are modified to reflect the new cost. A message listing the ports for which the port costs were changed is displayed.
Examples
This example shows how to set the channel 768 port-VLAN cost to 10:
Console> (enable) set channel vlancost 768 10
Port(s) 1/1-2 vlan cost are updated to 24.
Channel 768 vlancost is set to 10.
Related Commands
set channel cost
set port channel
show channel
show channel group
show port channel
set spantree portvlancost
set config mode
Use the set config mode command to change the configuration mode from a binary model to a text format.
set config mode binary
set config mode text {nvram | device:file-id}
Syntax Description
binary
|
Keyword that sets the system configuration mode to a binary format.
|
text
|
Keyword that sets the system configuration mode to a text format.
|
nvram
|
Keyword that stores the saved configuration in NVRAM.
|
device:file-id
|
Variable that specifies the name of the device and filename where the saved configuration will be stored.
|
Defaults
By default, the setting for this command is binary, which will save the configuration to NVRAM when the write memory command is used.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
When you configure the system to use text file configuration mode the system stores its configuration as a text file in nonvolatile storage, either in NVRAM or FLASH memory. The text file consists of commands entered by you to configure various features. For example, if you disable a port the command to disable that port will be in the text configuration file.
The text file only contains commands you have used to configure your switch. Because the text configuration file in most cases requires less space NVRAM is a good place for the file to be stored. If the text file exceeds NVRAM space, it can also be stored to FLASH memory.
User settings are not immediately saved to NVRAM. To save user settings you must enter the write memory command to store the configuration in nonvolatile storage.
Examples
This example shows how to set the configuration mode to binary:
Console> (enable) set config mode binary
System configuration copied to NVRAM. Configuration mode set to binary.
This example shows how to set the configuration mode to text and designate the location and filename for saving the text configuration file:
Console> (enable) set config mode text bootflash:switch.cfg
Binary system configuration has been deleted from NVRAM. Configuration mode set to text.
Use the write memory command to save configuration changes. System configuration file set
to: bootflash:switch.cfg
The file specified will be used for configuration during the next bootup.
Related Commands
show config mode
write
set crypto key rsa
Use the set crypto key rsa command to generate and configure an RSA key pair.
set crypto key rsa nbits [force]
Syntax Description
nbits
|
Variable that specifies the size of the key; valid values are from 512 to 2048 bits.
|
force
|
(Optional) Keyword that regenerates the keys and suppress the warning prompt of overwriting existing keys.
|
Defaults
By default, the key size is 1024 bits.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you do not enter the force keyword, the set crypto key command is saved into the configuration file, and you will have to use the clear config all command to clear the RSA keys.
To support SSH login, you first must generate an RSA key pair.
Examples
This example shows how to create an RSA key pair with a size of 1004 bits:
Console> (enable) set crypto key rsa 1004
Generating RSA keys.... [OK]
Related Commands
clear crypto key rsa
show crypto key
set dot1q-all-tagged
Use the set dot1q-all-tagged command to enable tagging of packets on native VLANs.
set dot1q-all-tagged enable | disable [all]
Syntax Description
enable
|
Keyword that enables dot1q tagged mode.
|
disable
|
Keyword that disables dot1q tagged mode.
|
all
|
(Optional) Keyword that specifies dot1q tagging for all ports.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
When you enable dot1q all tagged mode, all data packets are sent out tagged and all received untagged data packets are dropped on all 802.1Q trunks.
You cannot enable the dot1q tunneling feature on a port until dot1q tagged mode is enabled.
You cannot disable dot1q tagged mode on the switch until dot1q tunneling is disabled on all the ports on the switch.
The optional all keyword is not supported.
Note
PBF does not work with 802.1Q tunnel traffic. PBF is supported on Layer 3 IP unicast traffic, but it is not applicable to Layer 2 traffic. At the intermediate (PBF) switch, all 802.1Q tunnel traffic appears as Layer 2 traffic.
Examples
This example shows how to enable dot1q tagging:
Console> (enable) set dot1q-all-tagged enable
This example shows how to enable dot1q tagging on all ports:
Console> (enable) set dot1q-all-tagged enable all
This example shows how to disable dot1q tagging:
Console> (enable) set dot1q-all-tagged disable
Dot1q tagging is disabled
Related Commands
show dot1q-all-tagged
set dot1x
Use the set dot1x command set to configure dot1x on a system.
set dot1x {system-auth-control {enable | disable}
set dot1x {quiet-period | tx-period | re-authperiod} seconds
set dot1x {supptimeout | server-timeout} seconds
set dot1x max-req count
Syntax Description
system-auth-control
|
Keyword that specifies authentication for the system.
|
enable
|
Keyword that enables the specified dot1x function.
|
disable
|
Keyword that disables the specified dot1x function.
|
quiet-period seconds
|
Keyword and variable that specify the idle time between authentication attempts; valid values are from 0 to 65535 seconds.
|
tx-period seconds
|
Keyword and variable that specify the time for the retransmission of EAP-Request/Identity frame; valid values are from 0 to 65535 seconds. See "Usage Guidelines" for more information.
|
re-authperiod seconds
|
Keyword and variable that specify the time constant for the retransmission reauthentication time; valid values are from 1 to 65535 seconds.
|
supp-timeout seconds
|
Keyword and variable that specify the time constant for the retransmission of EAP-Request packets; valid values are from 0 to 65535 seconds. See "Usage Guidelines" for more information.
|
server-timeout seconds
|
Keyword and variable that specify the time constant for the retransmission of packets by the backend authenticator to the authentication server; valid values are from 1 to 65535 seconds. See "Usage Guidelines" for more information.
|
max-req count
|
Keyword and variable that specify the maximum number of times that the state machine retransmits an EAP-Request frame to the supplicant before it times out the authentication session; valid values are from 1 to 10.
|
Defaults
The default settings are as follows:
•
system-auth-control is enabled.
•
quiet-period is 60 seconds.
•
tx-period is 30 seconds.
•
re-authperiod is 3,600 seconds.
•
supp-timeout is 30 seconds.
•
server-timeout is 30 seconds.
•
max-req count is 2.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
When you set the system-auth-control, the following applies:
•
The enable keyword allows you to control the authorization status for each port per the port-control parameter that you set using the set port dot1x command.
•
The disable keyword allows you to make all ports behave as though the port-control parameter is set to force authorization.
If you do not enable reauthentication, reauthentication does not automatically occur after authentication has occurred.
When the supplicant does not notify the authenticator that it received the EAP-request/identity packet, the authenticator waits a period of time (set by entering the tx-period seconds parameter), and then retransmits the packet.
When the supplicant does not notify the backend authenticator that it received the EAP-request packet, the backend authenticator waits a period of time (set by entering the supp-timeout seconds parameter), and then retransmits the packet.
When the authentication server does not notify the backend authenticator that it received specific packets, the backend authenticator waits a period of time (set by entering the server-timeout seconds parameter), and then retransmits the packets.
Examples
This example shows how to set the system authentication control:
Console> (enable) set dot1x system-auth-control enable
dot1x authorization enabled.
This example shows how to set the idle time between authentication attempts:
Console> (enable) set dot1x quiet-period 45
dot1x quiet-period set to 45 seconds.
This example shows how to set the retransmission time:
Console> (enable) set dot1x tx-period 15
dot1x tx-period set to 15 seconds.
This example shows you how to specify the reauthentication time:
Console> (enable) set dot1x re-authperiod 7200
dot1x re-authperiod set to 7200 seconds
This example shows you how to specify the retransmission of EAP-Request packets by the authenticator to the supplicant:
Console> (enable) set dot1x supp-timeout 15
dot1x supp-timeout set to 15 seconds.
This example shows how to specify the retransmission of packets by the backend authenticator to the authentication server:
Console> (enable) set dot1x server-timeout 15
dot1x server-timeout set to 15 seconds.
This example shows how to specify the maximum number of packet retransmissions:
Console> (enable) set dot1x max-req 5
Related Commands
clear dot1x config
set port dot1x
show dot1x
show port dot1x
2