当前位置:首页 科普知识 access-enable

access-enable

发布时间:2023-09-06 03:50:34

access-enable [host] [timeout minutes]

access-enable详细介绍

access-enable

access-enable

access-enable

To enable the router to create a temporary access list entry in a dynamic access list, use the access-enable command in EXEC mode.

access-enableSyntax Description

host

(Optional) Tells the software to enable access only for the host from which the Telnet session originated. If not specified, the software allows all hosts on the defined network to gain access. The dynamic access list contains the network mask to use for enabling the new network.

timeout minutes

(Optional) Specifies an idle timeout for the temporary access list entry. If the access list entry is not accessed within this period, it is automatically deleted and requires the user to authenticate again. The default is for the entries to remain permanently. We recommend that this value equal the idle timeout set for the WAN connection.

access-enableDefaults

No default behavior or values.

access-enableCommand Modes

EXEC

access-enableCommand History

Release Modification

11.1

This command was introduced.

12.2(33)SRA

access-enable

This command was integrated into Cisco IOS Release 12.2(33)SRA.

12.2SX

This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.

access-enableUsage Guidelines

This command enables the lock-and-key access feature.

You should always define either an idle timeout (with the timeout keyword in this command) or an absolute timeout (with the timeout keyword in the access-list command). Otherwise, the temporary access list entry will remain, even after the user terminates the session.

Use the autocommand command with the access-enable command to cause the access-enable command to execute when a user opens a Telnet session into the router.

access-enableExamples

The following example causes the software to create a temporary access list entry and tells the software to enable access only for the host from which the Telnet session originated. If the access list entry is not accessed within 2 minutes, it is deleted.

autocommand access-enable host timeout 2

Related Commands

Command Description

access-list (IP extended)

Defines an extended IP access list.

access-enable

autocommand

Configures the Cisco IOS software to automatically execute a command when a user connects to a particular line.

show ip accounting

Displays the active accounting or checkpointed database or displays access list violations.

温馨提示:
本文【access-enable】由作者 爱百科 转载提供。 该文观点仅代表作者本人, 自学教育网 信息发布平台,仅提供信息存储空间服务, 若存在侵权问题,请及时联系管理员或作者进行删除。
(c)2008-2025 自学教育网 All Rights Reserved 汕头市灵创科技有限公司
粤ICP备2024240640号-6