cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5834
Views
10
Helpful
3
Replies

Configuration Lock Feature on Routers and Switches

davidhuynh5
Level 1
Level 1

Is there a "configuration lock" feature in cisco routers and switches that prevent multiple users from making changes at the same time?

What is the command? Thank you in advance.

3 Accepted Solutions

Accepted Solutions

Calin C.
Level 5
Level 5

I don't know about such feature, but what if you would allow only one user to be connected at the time on the Cisco device?

The configuration shoul look  like:

line vty 0

password cisco

transport input telnet ssh

line vty 1-4

transport input none

Or assign different levels to different users, so only one user (login) can configure the device. If you are using TACACS+, you can limit to only one login at the time per user.

Hope this helps you!

View solution in original post

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello David,

it should be

configuration mode ?

  exclusive  Configuration mode exclusive

Hope to help

Giuseppe

View solution in original post

podhillo
Level 1
Level 1

Hi,

configuration mode exclusive

To enable single-user (exclusive) access functionality for the Cisco IOS command-line interface (CLI), use the configuration mode exclusive command in global configuration mode. To disable the single-user access (configuration locking) feature, use the no form of this command.

Syntax for Releases 12.3T/12.2S:

configuration mode exclusive {auto | manual}

no configuration mode exclusive {auto | manual}

Syntax for Release 12.0(31)S, 12.2(33)SRA, and Later Releases:

configuration mode exclusive {auto | manual} [expire seconds] [lock-show] [interleave] [terminate] [config_wait seconds]  [retry_wait seconds]

Usage Guidelines

The configuration mode exclusive command enables the exclusive configuration lock feature. The exclusive configuration lock allows single-user access to configuration modes using single-user configuration mode. While the device configuration is locked, no other users can enter configuration commands.

Users accessing the device using the state-full, session-based transports (telnet, SSH) are able to enter single-user configuration mode. The user enters single-user configuration mode by acquiring the exclusive configuration lock using the configure terminal lock privileged EXEC mode command. The configuration lock is released when the user exits configuration mode by using the end or exit command, or by pressing Ctrl-Z. While a user is in single-user configuration mode, no other users can configure the device. Users accessing CLI options through stateless protocols (that is, the HTTP web-based user interface) cannot access single-user configuration mode. (However, an API allows the stateless transports to lock the configuration mode, complete its operations, and release the lock.)

giuslar has answered your query.

Regards,

podhillo

View solution in original post

3 Replies 3

Calin C.
Level 5
Level 5

I don't know about such feature, but what if you would allow only one user to be connected at the time on the Cisco device?

The configuration shoul look  like:

line vty 0

password cisco

transport input telnet ssh

line vty 1-4

transport input none

Or assign different levels to different users, so only one user (login) can configure the device. If you are using TACACS+, you can limit to only one login at the time per user.

Hope this helps you!

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello David,

it should be

configuration mode ?

  exclusive  Configuration mode exclusive

Hope to help

Giuseppe

podhillo
Level 1
Level 1

Hi,

configuration mode exclusive

To enable single-user (exclusive) access functionality for the Cisco IOS command-line interface (CLI), use the configuration mode exclusive command in global configuration mode. To disable the single-user access (configuration locking) feature, use the no form of this command.

Syntax for Releases 12.3T/12.2S:

configuration mode exclusive {auto | manual}

no configuration mode exclusive {auto | manual}

Syntax for Release 12.0(31)S, 12.2(33)SRA, and Later Releases:

configuration mode exclusive {auto | manual} [expire seconds] [lock-show] [interleave] [terminate] [config_wait seconds]  [retry_wait seconds]

Usage Guidelines

The configuration mode exclusive command enables the exclusive configuration lock feature. The exclusive configuration lock allows single-user access to configuration modes using single-user configuration mode. While the device configuration is locked, no other users can enter configuration commands.

Users accessing the device using the state-full, session-based transports (telnet, SSH) are able to enter single-user configuration mode. The user enters single-user configuration mode by acquiring the exclusive configuration lock using the configure terminal lock privileged EXEC mode command. The configuration lock is released when the user exits configuration mode by using the end or exit command, or by pressing Ctrl-Z. While a user is in single-user configuration mode, no other users can configure the device. Users accessing CLI options through stateless protocols (that is, the HTTP web-based user interface) cannot access single-user configuration mode. (However, an API allows the stateless transports to lock the configuration mode, complete its operations, and release the lock.)

giuslar has answered your query.

Regards,

podhillo