組網(wǎng)需求
如圖所示,PC與設(shè)備之間路由可達(dá),用戶(hù)希望簡(jiǎn)單方便的配置和管理遠(yuǎn)程設(shè)備,可以在服務(wù)器端配置Telnet用戶(hù)使用AAA驗(yàn)證登錄,并配置安全策略,保證只有符合安全策略的用戶(hù)才能登錄設(shè)備。
配置通過(guò)Telnet登錄設(shè)備組網(wǎng)圖
配置思路
采用如下的思路配置通過(guò)Telnet登錄設(shè)備:
- 配置Telnet方式登錄設(shè)備,以實(shí)現(xiàn)遠(yuǎn)程維護(hù)網(wǎng)絡(luò)設(shè)備。
- 配置管理員的用戶(hù)名和密碼,并配置AAA認(rèn)證策略,保證只有認(rèn)證通過(guò)的用戶(hù)才能登錄設(shè)備。
- 配置安全策略,保證只有符合安全策略的用戶(hù)才能登錄設(shè)備。
操作步驟
-
使能服務(wù)器功能
<HUAWEI> system-view [HUAWEI] sysname Telnet_Server [Telnet_Server] telnet server enable
-
配置VTY用戶(hù)界面的相關(guān)參數(shù)
# 配置VTY用戶(hù)界面的最大個(gè)數(shù)。
[Telnet_Server] user-interface maximum-vty 15
# 配置允許用戶(hù)登錄設(shè)備的主機(jī)地址。
[Telnet_Server] acl 2001 [Telnet_Server-acl-basic-2001] rule permit source 10.1.1.1 0 [Telnet_Server-acl-basic-2001] quit [Telnet_Server] user-interface vty 0 14 [Telnet_Server-ui-vty0-14] protocol inbound telnet [Telnet_Server-ui-vty0-14] acl 2001 inbound 也可以配置在服務(wù)器開(kāi)啟命令后(http必須跟在服務(wù)開(kāi)啟命令后) ssh server acl 2001 telnet server acl 2001 http acl 2001
# 配置VTY用戶(hù)界面的終端屬性(選配)。
[Telnet_Server-ui-vty0-14] shell [Telnet_Server-ui-vty0-14] idle-timeout 20 [Telnet_Server-ui-vty0-14] screen-length 0 [Telnet_Server-ui-vty0-14] history-command max-size 20
# 配置VTY用戶(hù)界面的用戶(hù)驗(yàn)證方式。
[Telnet_Server-ui-vty0-14] authentication-mode aaa [Telnet_Server-ui-vty0-14] quit
-
配置登錄用戶(hù)的相關(guān)信息
# 配置登錄驗(yàn)證方式。
[Telnet_Server] aaa [Telnet_Server-aaa] local-user admin1234 password irreversible-cipher Helloworld@6789 [Telnet_Server-aaa] local-user admin1234 service-type telnet [Telnet_Server-aaa] local-user admin1234 privilege level 3 [Telnet_Server-aaa] quit
-
客戶(hù)端登錄
進(jìn)入管理員PC的Windows的命令行提示符,執(zhí)行相關(guān)命令,通過(guò)Telnet方式登錄設(shè)備。
C:\Documents and Settings\Administrator> telnet 10.137.217.177
輸入Enter鍵后,在登錄窗口輸入AAA驗(yàn)證方式配置的登錄用戶(hù)名和密碼,驗(yàn)證通過(guò)后,出現(xiàn)用戶(hù)視圖的命令行提示符,至此用戶(hù)成功登錄設(shè)備。(以下顯示信息僅為示意)文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-794394.html
Login authentication Username:admin1234 Password: Info: The max number of VTY users is 8, and the number of current VTY users on line is 2. The current login time is 2012-08-06 18:33:18+00:00. <Telnet_Server>
配置文件
Telnet_Server的配置文件文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-794394.html
#
sysname Telnet_Server
#
telnet server enable
#
acl number 2001
rule 5 permit source 10.1.1.1 0
#
aaa
local-user admin1234 password irreversible-cipher $1a$aVW8S=aP=B<OWi1Bu'^R[=_!~oR*85r_nNY+kA(I}[TiLiVGR-i/'DFGAI-O$
local-user admin1234 privilege level 3
local-user admin1234 service-type telnet
#
user-interface maximum-vty 15
user-interface vty 0 14
acl 2001 inbound
authentication-mode aaa
history-command max-size 20
idle-timeout 20 0
screen-length 0
protocol inbound telnet
#
return
到了這里,關(guān)于華為交換機(jī)路由器使用基本ACL限制Telnet,http登錄權(quán)限的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!