基于ACL的访问控制及安全策略的设计实验报告.docx





《基于ACL的访问控制及安全策略的设计实验报告.docx》由会员分享,可在线阅读,更多相关《基于ACL的访问控制及安全策略的设计实验报告.docx(32页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、实 验 报 告课程名称思科路由器开放实验实验名称基于ACL的访问控制及安全策略的设计实验实验时间2012年6月2-3日编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第31页 共32页实 验 报 告实验名称基于ACL的访问控制及安全策略的设计实验实验类型开放实验实验学时16实验时间2012.6.1-2012.6.2一、 实验目的和要求访问控制列表(Access Control List,ACL) 是路由器和交换机接口的指令列表,用来控制端口进出的数据包。验要求学生掌握访问控制列表的配置,理解ACL的执行过程;能够根据ACL设计安全的网络。实验要求完成以下工作:1. 标准ACL
2、。实验目标:本实验拒绝student所在网段访问路由器R2,同时只允许主机teacher访问路由器R2的telnet服务。2. 扩展ACL实验:实验目标:学生不能访问ftp,但能访问www,教师不受限制。3. 防止地址欺骗。外部网络的用户可能会伪装自己的ip地址,比如使用内部网的合法IP地址或者回环地址作为源地址,从而实现非法访问。解决办法:将可能伪装到的ip地址拒绝掉。二、实验环境(实验设备)PC机,并安装Cisco Packet Tracer软件或者是真实的思科网络设备(路由器交换机)。三、实验原理及内容一 基本ACL实验:1.标准ACL。实验目标:本实验拒绝student所在网段访问路由
3、器R2,同时只允许主机teacher访问路由器R2的telnet服务。实验拓补图如下:实验配置如下:RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host R1R1(config)#int f0/0R1(config-if)#ip add 10.20.170.1 255.255.255.0R1(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to
4、up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR1(config-if)#exitR1(config)#int s0/0/0R1(config-if)#ip add 192.168.12.1 255.255.255.0R1(config-if)#clock rate 64000R1(config-if)#no shut%LINK-5-CHANGED: Interface Serial0/0/0, changed state to downR1(config-if)#ex
5、itR1(config)#router eigrp 100R1(config-router)#network 10.20.170.0 0.0.0.255R1(config-router)#network 192.168.12.0 R1(config-router)#no autoR1(config-router)#endR1#%SYS-5-CONFIG_I: Configured from console by consoleR1#copy run startDestination filename startup-config? Building configuration.OKRouter
6、enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host R2R2(config)#int s0/0/1R2(config-if)#ip add 192.168.12.2 255.255.255.0 R2(config-if)#no shut%LINK-5-CHANGED: Interface Serial0/0/1, changed state to upR2(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on In
7、terface Serial0/0/1, changed state to upR2(config-if)#exitR2(config)#int s0/0/0R2(config-if)#ip add 192.168.23.1 255.255.255.0R2(config-if)#clock rate 64000R2(config-if)#no shut%LINK-5-CHANGED: Interface Serial0/0/0, changed state to downR2(config-if)#exitR2(config)#int f0/0R2(config-if)#ip add 10.2
8、0.168.1 255.255.255.0R2(config-if)#no shutR2(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upR2(config-if)#exit%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR2(config)#router eigrp 100R2(config-router)#net 192.168.12.0 R2(config-router)
9、#%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 192.168.12.1 (Serial0/0/1) is up: new adjacencyR2(config-router)#net 192.168.23.0 R2(config-router)#net 10.20.168.0 0.0.0.255R2(config-router)#no autoR2(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 192.168.12.1 (Serial0/0/1) is up: new adjacency
10、R2(config-router)#exitR2(config)#exitR2#%SYS-5-CONFIG_I: Configured from console by consoleR2#copy run startDestination filename startup-config? Building configuration.OKRouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host R3R3(config)#int s0/0/1R3(con
11、fig-if)#ip add 192.168.23.2 255.255.255.0R3(config-if)#no shutR3(config-if)#%LINK-5-CHANGED: Interface Serial0/0/1, changed state to upR3(config-if)#exitR3(config)#int f0/0R3(config-if)#ip add 10.20.66.1 255.255.255.0R3(config-if)#no shutR3(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, chan
12、ged state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR3(config-if)#exitR3(config)#router eigrp 100R3(config-router)#net 10.20.66.0 0.0.0.255R3(config-router)#net 192.168.23.0R3(config-router)#no autoR3(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neig
13、hbor 192.168.23.1 (Serial0/0/1) is up: new adjacencyR3(config-router)#endR3#%SYS-5-CONFIG_I: Configured from console by consoleR3#copy run startDestination filename startup-config? Building configuration.OK配ACL之前,student去ping R2的三个接口的ip地址,也可以ping 服务器 10.20.168.7,应该ping得通。R2#conf tEnter configuration
14、 commands, one per line. End with CNTL/Z.R2(config)#access-list 1 deny 10.20.170.0 0.0.0.255R2(config)#access-list 1 permit anyR2(config)#int s0/0/1R2(config-if)#ip access-group 1 inR2(config-if)#exitR2(config)#access-list 2 permit host 10.20.66.10R2(config)#line vty 0 4R2(config-line)#password 501R
15、2(config-line)#loginR2(config-line)#access-class 2 inR2(config-line)#endR2#%SYS-5-CONFIG_I: Configured from console by consoleR2#copy run startDestination filename startup-config? Building configuration.配ACL之后,student去ping R2的三个接口的ip地址,也可以ping 服务器 10.20.168.7,应该ping不通。PCping 10.20.168.7Pinging 10.20
16、.168.7 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 10.20.168.7: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),OKPCping 192.168.12.2Pinging 192.168.12.2 with 32 bytes of data:Request timed out.Request timed out.Request time
17、d out.Request timed out.Ping statistics for 192.168.12.2: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),配ACL之后,teacher机可以telnet R2 ,效果如下。PCtelnet 192.168.23.1Trying 192.168.23.1 .OpenUser Access VerificationPassword: 501R2en% No password set.R2但只允许teacher 机telnet R2,在R3上telnet R2 不成功。R3#teln
18、et 192.168.23.1Trying 192.168.23.1 .% Connection refused by remote hostR3#telnet 192.168.12.2Trying 192.168.12.2 .% Connection refused by remote hostR3#telnet 10.20.168.1Trying 10.20.168.1 .% Connection refused by remote host在student机上telnet R2 不成功。PCtelnet 192.168.12.2Trying 192.168.12.2 .% Connect
19、ion timed out; remote host not respondingPCtelnet 192.168.23.1Trying 192.168.23.1 .% Connection timed out; remote host not respondingPCtelnet 10.20.168.1Trying 10.20.168.1 .% Connection timed out; remote host not responding在R1上telnet R2 不成功。R1#telnet 192.168.12.2Trying 192.168.12.2 .% Connection ref
20、used by remote hostR1#telnet 192.168.23.1Trying 192.168.23.1 .% Connection refused by remote hostR1#telnet 10.20.168.1Trying 10.20.168.1 .% Connection refused by remote hostTeacher机:PCtelnet 192.168.12.1Trying 192.168.12.1 .OpenConnection to 192.168.12.1 closed by foreign hostPCtelnet 10.20.170.1Try
21、ing 10.20.170.1 .% Connection timed out; remote host not respondingPCtelnet 10.20.170.10Trying 10.20.170.10 .% Connection timed out; remote host not respondingR1#telnet 10.20.66.1Trying 10.20.66.1 .OpenConnection to 10.20.66.1 closed by foreign hostR1#telnet 192.168.23.2Trying 192.168.23.2 .OpenConn
22、ection to 192.168.23.2 closed by foreign hostR3enR3#telnet 192.168.12.1Trying 192.168.12.1 .OpenConnection to 192.168.12.1 closed by foreign hostR3#telnet 10.20.170.1Trying 10.20.170.1 .% Connection timed out; remote host not respondingSERVERtelnet 192.168.12.2Trying 192.168.12.2 .% Connection refus
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 ACL 访问 控制 安全策略 设计 实验 报告

限制150内