ACL简单的配置_第1页
ACL简单的配置_第2页
ACL简单的配置_第3页
ACL简单的配置_第4页
ACL简单的配置_第5页
已阅读5页,还剩9页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

ACL简单的配置ACL(Access Control List,访问控制列表),简单说就是包过滤,根据数据包的报头中的ip地址、协议端口号等信息进行过滤。利用ACL可以实现安全控制。编号:1-99 or 1300-1999(standard IP),100-199 or 2000-2699(Extended IP)。ACL并不复杂,但在实际应用中的,要想恰当地应用ACL,必需要制定合理的策略。 一、实验配置拓扑图图一图二网络中的DNS服务器:图三网络中的WWW服务器:二、三个路由器的基本配置LuoShan#sh startup-configUsing 699 bytes!version 12.4no service password-encryption!hostname LuoShan!enable password cisco!username senya password 0 cisco!ip ssh version 1no ip domain-lookup!interface FastEthernet0/0no ip addressduplex autospeed autoshutdown!interface FastEthernet0/1ip address duplex autospeed auto!interface Serial0/3/0ip address clock rate 56000!interface Serial0/3/1ip address !interface Vlan1no ip addressshutdown!router eigrp 100network network network auto-summary!ip classless!line con 0line vty 0 4password ciscologin!endHuangChuang#sh startup-configUsing 669 bytes!version 12.4no service password-encryption!hostname HuangChuang!enable password cisco!ip ssh version 1no ip domain-lookup!interface FastEthernet0/0no ip addressduplex autospeed autoshutdown!interface FastEthernet0/1ip address duplex autospeed auto!interface Serial0/3/0ip address !interface Serial0/3/1ip address clock rate 56000!interface Vlan1no ip addressshutdown!router eigrp 100network network network auto-summary!ip classless!line con 0line vty 0 4password ciscologin!endxixian#sh startup-configUsing 679 bytes!version 12.4service password-encryption!hostname xixian!enable password 7 0822455D0A16!ip ssh version 1no ip domain-lookup!interface FastEthernet0/0no ip addressduplex autospeed autoshutdown!interface FastEthernet0/1ip address duplex autospeed auto!interface Serial0/3/0ip address clock rate 56000!interface Serial0/3/1ip address !interface Vlan1no ip addressshutdown!router eigrp 100network network network auto-summary!ip classless!line con 0line vty 0 4password 7 0822455D0A16login!end三、配置简单的ACL、配置ACL限制远程登录到路由器的主机HuangChuang#conf tEnter configuration commands, one per line. End with CNTL/Z.HuangChuang(config)#access-list 1 permit host 路由器HuangChuang只允许远程登录(telnet)HuangChuang(config)#line vty 0 4HuangChuang(config-line)#access-class 1 inHuangChuang(config-line)#其它两个路由器配置相似。、配置ACL禁止/24网段的icmp协议数据包通向与/24网段xixian(config)#access-list 101 deny icmp 55 55xixian(config)#access-list 101 permit ip any anyxixian(config)#int fa0/1xixian(config-if)#ip access-group 101 outxixian(config-if)#、配置ACL禁止特点的协议端口通讯HuangChuang#conf tEnter configuration commands, one per line. End with CNTL/Z.HuangChuang(config)#ip access-list extended ACL1创建基于名称的扩展ACLHuangChuang(config-ext-nacl)#deny tcp host 55 eq 80HuangChuang(config-ext-nacl)#deny udp host 55 eq 53HuangChuang(config-ext-nacl)#permit ip any anyHuangChuang(config-ext-nacl)#exitHuangChuang(config)#int fa0/1HuangChuang(config-if)#ip access-group ACL1 inHuangChuang(config-if)#图四验证ACL。检验、查看ACLHuangChuang#sh access-listStandard IP access list 1 permit host (4 match(es)Extended IP access list ACL1 deny udp host 55 eq domain deny tcp host 55 eq www permit ip any anyHuangChuang#show access-listStandard IP access list 1 permit host (4 match(es)Extended IP access list ACL1 deny udp host 55 eq domain (15 match(es) deny tcp host 55 eq www (60 match(es) permit ip any any (34 match(es)HuangChuang#show access-list ACL1Extended IP access list ACL1 deny udp host 55 eq domain (15 match(es) deny tcp host 55 eq www (60 match(es) permit ip any any (34 match(es)HuangChuang#show access-list 1Standard IP access list 1 permit host (4 match(es)四、配置ACL的路由器配置内容HuangChuang#sh startup-configUsing 914 bytes!version 12.4no service password-encryption!hostname HuangChuang!enable password cisco!ip ssh version 1no ip domain-lookup!interface FastEthernet0/0no ip addressduplex autospeed autoshutdown!interface FastEthernet0/1ip address ip access-group ACL1 induplex autospeed auto!interface Serial0/3/0ip address !interface Serial0/3/1ip address clock rate 56000!interface Vlan1no ip addressshutdown!router eigrp 100network network network auto-summary!ip classless!access-list 1 permit host ip access-list extended ACL1deny udp host 55 eq domaindeny tcp host 55 eq wwwpermit ip any any!line con 0line vty 0 4access-class 1 inpassword ciscologin!endLuoShan#sh startup-configUsing 756 bytes!version 12.4no service password-encryption!hostname LuoShan!enable password cisco!username senya password 0 cisco!ip ssh version 1no ip domain-lookup!interface FastEthernet0/0no ip addressduplex autospeed autoshutdown!interface FastEthernet0/1ip address duplex autospeed auto!interface Serial0/3/0ip address clock rate 56000!interface Serial0/3/1ip address !interface Vlan1no ip addressshutdown!router eigrp 100network network network auto-summary!ip classless!access-list 2 permit host !line con 0line vty 0 4access-class 2 inpassword ciscologin!endxixian#show startup-configUsing 808 bytes!version 12.4service password-encryption!hostname xixian!enable passwor

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论