[Note]
If
telnet-server enable
is not specified, this command does not function.
[Example]
Allow access to the Telnet server from the hosts connected to VLAN #1 and VLAN #2.
SWR2311P(config)#telnet-server interface vlan1
SWR2311P(config)#telnet-server interface vlan2
4.12.4 Restrict access to the TELNET server according to the IP address of the client
[Syntax]
telnet-server
access
action
info
no
telnet-server
access
[
action
info
]
[Parameter]
action
:
Specifies the action for the access condition
Setting value
Description
deny
"Deny" the condition
permit
"Permit" the condition
info
:
Specifies the transmission-source IPv4 address or IPv6 address that is the condition.
Setting value
Description
A.B.C.D
Specifies an IPv4 address (A.B.C.D)
A.B.C.D/M
Specifies an IPv4 address (A.B.C.D) with subnet
mask length (Mbit)
X:X::X:X
Specifies an IPv6 address (X:X::X:X)
X:X::X:X/M
Specifies an IPv6 address (X:X::X:X) with
subnet mask length (Mbit)
any
Applies to all IPv4 addresses and IPv6 addresses
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Restrict access to the TELNET server according to the client terminal's IPv4/IPv6 address.
Up to eight instances of this command can be set, and those that are specified earlier take priority for application.
If this command is set, all access that does not satisfy the registered conditions is denied.
However, if this command is not set, all access is permitted.
If this command is executed with the "no" syntax, the specified setting is deleted.
If this command is executed with the "no" syntax, and parameter is omitted, all settings are deleted.
[Note]
If
telnet-server enable
is not specified, this command does not function.
[Example]
Permit access to the TELNET server only from 192.168.1.1 and the 192.168.10.0/24 segment.
SWR2311P(config)#telnet-server access permit 192.168.1.1
SWR2311P(config)#telnet-server access permit 192.168.10.0/24
Deny only access to the TELNET server from the segment 192.168.10.0/24.
SWR2311P(config)#telnet-server access deny 192.168.10.0/24
SWR2311P(config)#telnet-server access permit any
Command Reference | Maintenance and operation functions |
67