2、做扩展ACL允许192.168.10.100访问WEB服务器,拒绝ping服务器,并在扩展ACL表中插入序号为15的策略(对IP为192.168.10.101的主机拒绝web访问,允许ping服务器)。
未配置ACL:
配置:
guohuanxin-R1(config)#access-list 101 permit tcp host 192.168.10.100 host 76.12.32.2 eq 80
guohuanxin-R1(config)#access-list 101 deny icmp host 192.168.10.100 host 76.12.32.2
guohuanxin-R1(config-if)#ip access-group 101 in
guohuanxin-R1(config)#ip access-list extended 101
guohuanxin-R1(config-ext-nacl)#15 deny tcp host 192.168.10.101 host 76.12.32.2 eq 80
guohuanxin-R1(config-ext-nacl)#15 permit icmp host 192.168.10.101 host 76.12.32.2
效果: