网络工程师交换试验手册之十一访问控制列表实验(共7页).doc
《网络工程师交换试验手册之十一访问控制列表实验(共7页).doc》由会员分享,可在线阅读,更多相关《网络工程师交换试验手册之十一访问控制列表实验(共7页).doc(8页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、精选优质文档-倾情为你奉上网络工程师交换试验手册之十一:访问控制列表实验实验目的:理解 ACL工作原理,熟悉配置ACL的基本步骤。ACL有3种(1)普通ACL列表,(2)扩展ACL列表,(3)名称ACL列表。实验一:标准访问控制列表实验拓扑:实验内容:(1)路由器的基本配置:R1上的基本配置interface Loopback0ip address 192.168.10.1 255.255.255.0ip address 192.168.10.2 255.255.255.0 secondary(同一个接口上启用多个ip地址模仿多个pc机。)ip address 192.168.10.3 255
2、.255.255.0 secondaryip address 192.168.10.4 255.255.255.0 secondaryip address 192.168.10.5 255.255.255.0 secondaryinterface Serial0ip address 10.10.1.1 255.255.255.0clockrate 64000router ripnetwork 10.0.0.0network 192.168.10.0R2上的基本配置interface Serial1ip address 10.10.1.2 255.255.255.0router rip net
3、10.0.0.0(2)在R2没有起访问控制列表时测试可达性。 R2#ping 192.168.10.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 msR2#ping 192.168.10.2Type escape sequence to abort.Sending 5, 100-byte ICMP Ech
4、os to 192.168.10.2, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 msR2#ping 192.168.10.3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.3, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/3
5、2 msR2#ping 192.168.10.4Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.4, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 28/31/32 msR2#ping 192.168.10.5Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.5, timeout
6、 is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms(3)在R2上起用访问控制列表ACL 10 R2(config)#access-list 10 permit 192.168.10.1 (10为标准ACL的编号,标准ACL的编号范围是099) R2(config)#access-list 10 permit 192.168.10.3R2(config)#access-list 10 permit 192.168.10.5查看ACL配置R2#show ip access-li
7、stsStandard IP access list 10 permit 192.168.10.3 permit 192.168.10.1 (10 matches) permit 192.168.10.5 在接口S1上调用ACL 10 R2(config)#int s1 R2(config-if)#ip access-group 10 in(4)测试起用ACL 10的效果 R2#ping 192.168.10.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 s
8、econds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 28/31/32 msR2#ping 192.168.10.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds:.Success rate is 0 percent (0/5)R2#ping 192.168.10.3Type escape sequence to abort.Sending 5, 100-byte
9、ICMP Echos to 192.168.10.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 28/31/32 msR2#ping 192.168.10.4Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds:.Success rate is 0 percent (0/5)R2#ping 192.168.10.5Type esc
10、ape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 28/31/32 ms观察启用ACL 10前后的不同,体会ACL在网络管理和网络安全上的应用效果。标准ACL只能根据源地址来控制数据的流通,当我们需要根据目的或者数据类型来控制数据流通的时就需要用到扩展ACL,下面的实验将告诉你如何扩展ACL的配置和使用方法。相对而言,标准访问控制列表比较单纯,
11、在实际应用中并不是很常用。实验二:扩展ACL实验拓扑:attach/attach实验内容:1路由器的基本配置R1上的基本配置interface Loopback0ip address 192.168.10.1 255.255.255.0ip address 192.168.10.2 255.255.255.0 secondary(同一个接口上启用多个ip地址模仿多个pc机。)ip address 192.168.10.3 255.255.255.0 secondaryip address 192.168.10.4 255.255.255.0 secondaryip address 192.16
12、8.10.5 255.255.255.0 secondaryinterface Serial0ip address 10.10.1.1 255.255.255.0clockrate 64000router rip network 10.0.0.0 network 192.168.10.0 R2上的基本配置interface Serial0ip address 192.168.100.1 255.255.255.0clockrate 64000!interface Serial1ip address 10.10.1.2 255.255.255.0!router ripnetwork 10.0.0
13、.0network 192.168.100.0R3上的基本配置interface Serial1ip address 192.168.100.2 255.255.255.0router ripnet 192.168.100.0测试连通性: R3#ping 192.168.10.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max =
14、56/59/60 msR3#ping 192.168.10.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.3, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 56/60/64 msR3#ping 192.168.10.3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.4,
15、timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 60/68/100 msR3#ping 192.168.10.4Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.4, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 60/68/100 msR3#ping 192.16
16、8.10.5Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 56/59/60 ms在R2上启用ACL 110R2(config)#access-list 110 deny ip host 192.168.100.2 host 192.168.10.1R2(config)# access-list 110 deny ip hos
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 网络工程师 交换 试验 手册 十一 访问 控制 列表 实验
限制150内