telnet access-group

Configures an ACL that restricts Telnet access to the device.
Syntax
telnet access-group { acl-num | acl-name | ipv6 ipv6-acl-name }
no telnet access-group { acl-num | acl-name | ipv6 ipv6-acl-name }
Command Default

Telnet access is not restricted.

Parameters
acl-num
The standard access list number. The valid values are from 1 through 99.
acl-name
The standard access list name.
ipv6 ipv6-acl-name
The IPv6 access list name.
Modes

Global configuration mode

Usage Guidelines

The no form of the command removes the Telnet access restriction.

Examples

The following example shows how to configure an ACL that restricts Telnet access to the device. In this example, IPv4 ACL acl10 is configured. The device allows Telnet access to all IP addresses except those listed in IPv4 ACL acl10.

device# configure terminal
device(config)# ip access-list extended acl10 
device(config-ext-ipacl-acl10)# deny ip host 10.157.22.32 any log
device(config-ext-ipacl-acl10)# deny ip 10.157.23.0 0.0.0.255 any log
device(config-ext-ipacl-acl10)# deny ip 10.157.24.0 0.0.0.255 any log
device(config-ext-ipacl-acl10)# deny ip 10.157.25.0/24 any log
device(config-ext-ipacl-acl10)# permit ip any any 
device(config-ext-ipacl-acl10)# exit
device(config)# telnet access-group acl10