在一台Cisco路由器上执行show access-lists命令显示如下一组限制远程登录的访问控制列表信息: Standard IP access list 40 permit 167.112.75.89(54 matches) permit 2

admin2019-01-16  65

问题 在一台Cisco路由器上执行show access-lists命令显示如下一组限制远程登录的访问控制列表信息:
Standard IP access list 40
permit 167.112.75.89(54 matches)   
permit 202.113.65.56(12 matches)
deny any(1581 matches)   
根据上述信息,正确的access-list的配置是(    )。

选项 A、Router(config)#access-list 40 permit 167.112.75.89
Router(config)#access-list 40 permit 202.113.65.56
Router(config)#access—list 40 deny any   
Router(config)#line vty 0 5
Router(config-line)#access-class 40 in
B、Router(config)#access-list 40 permit 167.112.75.89 log
Router(config)#access-list 40 permit 202.113.65.56 log
Router(coniig)#access-list 40 deny any los
Router(coniig)#line vty 0 5
Router(config-line)#access-class 40 in
C、Router(config)#access-list 40 permit 167.112.75.89 log
Router(config)#access-list 40 permit 202.113.65.56 10g
Router(config)#access-list 40 deny any log
Router(config)#line vty 0 5  
Router(config-line)#access-class 40 out
D、Router(conilg)#access-list 40 permit 167.112.75.89
Router(coniig)#access-list 40 permit 202.113.65.56
Router(coniig)#access-list 40 deny any log
Router(config)#line vty 0 5
Router(config-line)#access-class 40 out

答案A

解析 根据配置标准访问控制列表的命令格式“access-list access-list-number{permit|deny} source wildeard-mask”可知,B、C选项明显错误,D选项“access-list 40 deny any”后面不用加log。
转载请注明原文地址:https://kaotiyun.com/show/wLdZ777K
0

最新回复(0)