静海区第六中学:2011.4.15 CCNA实验题目 ACL变题之后的答案

来源:百度文库 编辑:九乡新闻网 时间:2024/04/25 13:23:00

最近ACL题目要求出现变动:

1允许host c通过浏览器访问Finance web server
2
不允许host c的其他类型访问
Finance web server
3
不许其他主机访问Finance web server (没有说明访问类型)

4
允许所有主机访问public web server(没有说明访问类型)

可进行以下配置:

本帖隐藏的内容

 

Corp1#configure terminal

Corp1(config)#access-list 100 permit tcp host 192.168.33.3 host 172.22.242.23 eq 80

Corp1(config)#access-list 100 deny ip any host 172.22.242.23 (此处为Finance web server 的IP)


Corp1(config)#access-list 100 permit ip any host 172.11.242.xx(此处为public web server的IP)


Corp1(config)#interface fa0/1

Corp1(config-if)#ip access-group 100 out

Corp1(config-if)#end

Corp1#copy running-config startup-config


 

最近有多分满分战报使用下面答案

Corp1(config)#access-list 100 permit tcp host 192.168.33.3 host 172.22.242.23 eq 80

Corp1(config)#access-list 100 deny ip any host 172.22.242.23 (此处为Finance web server 的IP)


Corp1(config)#access-list 100 permit ip any any

大家可以参考使用