要求:配置ACL 2005规则,限制vty 0 4界面只允许IP地址为192.168.1.8的用户和10.10.100.0/24网段的用户登录设备。
配置如下:
system-view
acl 2005
rule permit source 192.168.1.8 0 //允许IP地址为192.168.1.8的用户登录设备
rule permit source 10.10.100.0 0.0.0.255 //允许10.10.100.0/24网段的用户登录设备
quit
user-interface vty 0 4
acl 2005 inbound
quit
本文出自 “互联互通” 博客,请务必保留此出处http://jschinamobile.blog.51cto.com/11464420/1905610
原文地址:http://jschinamobile.blog.51cto.com/11464420/1905610