标准ACL实验.doc_第1页
标准ACL实验.doc_第2页
标准ACL实验.doc_第3页
标准ACL实验.doc_第4页
标准ACL实验.doc_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

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

文档简介

标准ACL实验:要求:配置标准ACL禁止PC3、PC4、PC5、PC6访问PC1和PC2。1.绘制拓扑结构图2.配置路由器R0的端口ip地址、串口时钟和动态路由协议RouterenableRouter#configure terminalRouter(config)#hostname R0R0(config)#interface FastEthernet0/0R0(config-if)#ip address 192.168.10.1 255.255.255.0R0(config-if)#no shutdownR0(config-if)#exitR0(config)#interface FastEthernet1/0R0(config-if)#ip address 192.168.20.1 255.255.255.0R0(config-if)#no shutdownR0(config-if)#exitR0(config)#interface Serial2/0R0(config-if)#ip address 172.16.1.1 255.255.255.0R0(config-if)#clock rate 64000R0(config-if)#no shutdownR0(config-if)#exitR0(config)#interface Serial3/0R0(config-if)#ip address 172.16.2.2 255.255.255.0R0(config-if)#clock rate 64000R0(config-if)#no shutdownR0(config-if)#exitR0(config)#router ripR0(config-router)#network 192.168.10.0R0(config-router)#network 192.168.20.0R0(config-router)#network 172.16.0.0R0(config-router)#exitR0(config)#3.配置路由器R1的端口ip地址、串口时钟和动态路由协议RouterenableRouter#configure terminalRouter(config)#hostname R1R1(config)#interface FastEthernet0/0R1(config-if)#ip address 192.168.30.1 255.255.255.0R1(config-if)#no shutdownR1(config-if)#exitR1(config)#interface FastEthernet1/0R1(config-if)#ip address 192.168.40.1 255.255.255.0R1(config-if)#no shutdownR1(config-if)#exitR1(config)#interface Serial2/0R1(config-if)#ip address 172.16.1.2 255.255.255.0R1(config-if)#no shutdownR1(config-if)#exitR1(config)#router ripR1(config-router)#network 192.168.30.0R1(config-router)#network 192.168.40.0R1(config-router)#network 172.16.0.0R1(config-router)#exitR1(config)#4.配置路由器R2的端口ip地址、串口时钟和动态路由协议RouterenableRouter#configure terminalRouter(config)#hostname R2R2(config)#interface FastEthernet0/0R2(config-if)#ip address 192.168.50.1 255.255.255.0R2(config-if)#no shutdownR2(config-if)#exitR2(config)#interface FastEthernet1/0R2(config-if)#ip address 192.168.60.1 255.255.255.0R2(config-if)#no shutdownR2(config-if)#exitR2(config)#interface Serial2/0R2(config-if)#ip address 172.16.2.1 255.255.255.0R2(config-if)#no shutdownR2(config-if)#exitR2(config)#router ripR2(config-router)#network 192.168.50.0R2(config-router)#network 192.168.60.0R2(config-router)#network 172.16.0.0R2(config-router)#exitR2(config)#5.配置PC1PC6的ip地址、子网掩码、默认网关,确保6台PC之间能够相互通信。如测试不成功,应仔细检查。提示:将此拓扑结构图另存为两个文件,一个用来做标准ACL实验,另一个做扩展ACL实验。6.在路由器R0上设置标准ACLR0(config)#access-list 1 deny 192.168.30.0 0.0.0.255R0(config)#access-list 1 deny 192.168.40.0 0.0.0.255R0(config)#access-list 1 deny 192.168.50.0 0.0.0.255R0(config)#access-list 1 deny 192.168.60.0 0.0.0.255R0(config)#access-list 1 permit anyR0(config)#int fa0/0R0(config-if)#ip acR0(config-if)#ip access-group 1 outR0(config-if)#int fa1/0R0(config-if)#ip acR0(config-if)#ip access-group 1 outR0(config-if)#ex

温馨提示

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

评论

0/150

提交评论