已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025贵州兴义市人民医院引进高层次、急需紧缺人才100人备考题库完整答案详解
- 2026中国信达贵州分公司招聘备考题库(含答案详解)
- 2025河北秦皇岛市外事旅游职业学校教师招聘备考题库有答案详解
- 2025年甘肃省平凉市崇信县专职社区工作者拟补录人员备考题库(含答案详解)
- 2026年云南农业大学第一批公开招聘编制外人员备考题库(6人)(含答案详解)
- 2026年春季山东理工职业学院学期代课教师招聘1人备考题库带答案详解
- 2026年商洛市山阳同仁九年制学校教师招聘备考题库及答案详解一套
- 2025安徽蚌埠怀远县教育局所属事业单位紧缺专业人才引进22人备考题库附答案详解
- 2026四川四川九洲电器股份有限公司招聘证券事务岗(总监)2人备考题库及1套完整答案详解
- 2026商洛柞水县政务服务中心招聘备考题库及答案详解参考
- DB51-T 401-2025 禾本科牧草栽培技术规程 黑麦草属
- 2026四川广安安农发展集团有限公司第一批次招聘劳务派遣制人员15人笔试备考试题及答案解析
- 肯尼亚介绍全套课件
- 中国眼底病临床诊疗指南2025年版
- 押题专辑十五:14道押题+精准解题+14篇范文+点评迁移七年级语文上学期期末作文押题(新教材统编版)
- 2025年高职(中医康复技术)运动康复综合测试题及答案
- 2025年重症三基考试试题及答案
- 工贸行业安全员培训课件
- 2025年青岛卫生局事业单位考试及答案
- 纪委档案规范制度
- 金太阳云南省2025-2026学年高一上学期12月联考英语试卷
评论
0/150
提交评论