




已阅读5页,还剩6页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
课题:标准IP访问控制列表配置教学目标 理解标准IP访问控制列表的原理及功能; 掌握编号的标准IP访问控制列表的配置方法;教学重点:理解标准IP访问控制列表的原理及功能教学难点:掌握编号的标准IP访问控制列表的配置方法教具、教学素材准备:网络环境教学方法:讲授,演示,实作教学时数:2公司的经理部、财务部和销售部分别属于不同的3个网段,三部门之间用路由器进行信息传递,为了安全起见,公司领导要求销售部不能对财务部进行访问,但经理部可以对财务部进行访问。基本原理ACLs的全称为接入控制列表(Access Control Lists),也称为访问列表(Access List),俗称为防火墙,在有的文档中还称之为包过滤。ACLs通过定义一些规则对网络设备接口上的数据报文进行控制:允许通过或丢弃,从而提高网络可管理性和安全性;IP ACL分为两种:标准IP访问列表和扩展IP访问列表,编号范围分别为199、13001999,100199、20002699;标准IP访问列表可以根据数据包的源IP地址定义规则,进行数据包的过滤;扩展IP访问列表可以根据数据包的源IP、目的IP、源端口、目的端口、协议来定义规则,进行数据包的过滤;IP ACL基于接口进行规则的应用,分为:入栈应用和出栈应用;教学过程实验拓扑1、路由器之间通过V.35电缆串口连接,DCE端连接在R1上,配置其时间频率为64000;主机与路由器通过交叉线连接;2、配置路由器接口IP地址;3、在路由器上配置OSPF路由协议,让三台PC 能相互ping通,因为只有在互通的前提下才能涉及到访问控制列表;4、在R1上配置编号的IP标准访问控制列表;5、将标准IP访问列表应用到接口上;6、验证主机之间的互通性;R1:RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R1R1(config)#interface fa1/0R1(config-if)#ip address 192.168.1.1 255.255.255.0R1(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to upR1(config-if)#exitR1(config)#int fa0/0R1(config-if)#ip add 192.168.2.1 255.255.255.0R1(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR1(config-if)#exitR1(config)#int se2/0R1(config-if)#clock rate 64000R1(config-if)#ip add 192.168.3.1 255.255.255.0R1(config-if)#no shut%LINK-5-CHANGED: Interface Serial2/0, changed state to downR1(config-if)#exitR1(config)#R1(config)#router ospf 1R1(config-router)#network 192.168.1.0 0.0.0.255 area 0R1(config-router)#network 192.168.2.0 0.0.0.255 area 0R1(config-router)#network 192.168.3.0 0.0.0.255 area 0R1(config-router)#endR1#%SYS-5-CONFIG_I: Configured from console by consoleR1#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static routeGateway of last resort is not setC 192.168.1.0/24 is directly connected, FastEthernet1/0C 192.168.2.0/24 is directly connected, FastEthernet0/0R1#R1#R1#show ip route /两台路由器配置好后的路由信息Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static routeGateway of last resort is not setC 192.168.1.0/24 is directly connected, FastEthernet1/0C 192.168.2.0/24 is directly connected, FastEthernet0/0C 192.168.3.0/24 is directly connected, Serial2/0O 192.168.4.0/24 110/782 via 192.168.3.2, 00:00:15, Serial2/0R1#R1#conf tEnter configuration commands, one per line. End with CNTL/Z.R1(config)#ip ? access-list Named access-list default-network Flags networks as candidates for default routes dhcp Configure DHCP server and relay parameters domain IP DNS Resolver domain-lookup Enable IP Domain Name System hostname translation domain-name Define the default domain name forward-protocol Controls forwarding of physical and directed IP broadcasts host Add an entry to the ip hostname table name-server Specify address of name server to use nat NAT configuration commands route Establish static routes tcp Global TCP parametersR1(config)#ip acR1(config)#ip access-list ? extended Extended Access List standard Standard Access ListR1(config)#ip access-list staR1(config)#ip access-list standard ? Standard IP access-list number WORD Access-list nameR1(config)#ip access-list standard david ? R1(config)#ip access-list standard david /配置名为david的IP标准访问控制列表R1(config-std-nacl)#? default Set a command to its defaults deny Specify packets to reject exit Exit from access-list configuration mode no Negate a command or set its defaults permit Specify packets to forward remark Access list entry commentR1(config-std-nacl)#permit 192.168.1.0 ? A.B.C.D Wildcard bits R1(config-std-nacl)#permit 192.168.1.0 0.0.0.255 ? R1(config-std-nacl)#permit 192.168.1.0 0.0.0.255 /允许192.168.1.0网段通过R1(config-std-nacl)#deny ? A.B.C.D Address to match any Any source host host A single host addressR1(config-std-nacl)#deny 192.168.2.0 ? A.B.C.D Wildcard bits R1(config-std-nacl)#deny 192.168.2.0 0.0.0.255 ? R1(config-std-nacl)#deny 192.168.2.0 0.0.0.255 /禁止192.168.2.0网段通过R1(config-std-nacl)#exitR1(config)#interR1(config)#interface se2/0R1(config-if)#? bandwidth Set bandwidth informational parameter cdp CDP interface subcommands clock Configure serial interface clock crypto Encryption/Decryption commands custom-queue-list Assign a custom queue list to an interface delay Specify interface throughput delay description Interface specific description encapsulation Set encapsulation type for an interface exit Exit from interface configuration mode fair-queue Enable Fair Queuing on an Interface frame-relay Set frame relay parameters hold-queue Set hold queue depth ip Interface Internet Protocol config commands keepalive Enable keepalive mtu Set the interface Maximum Transmission Unit (MTU) no Negate a command or set its defaults ppp Point-to-Point Protocol priority-group Assign a priority group to an interface service-policy Configure QoS Service Policy shutdown Shutdown the selected interface tx-ring-limit Configure PA level transmit ring limit zone-member Apply zone nameR1(config-if)#ip ? access-group Specify access control for packets address Set the IP address of an interface hello-interval Configures IP-EIGRP hello interval helper-address Specify a destination address for UDP broadcasts inspect Apply inspect name ips Create IPS rule mtu Set IP Maximum Transmission Unit nat NAT interface commands ospf OSPF interface commands split-horizon Perform split horizon summary-address Perform address summarization virtual-reassembly Virtual ReassemblyR1(config-if)#ip acR1(config-if)#ip access-group ? IP access list (standard or extended) WORD Access-list nameR1(config-if)#ip access-group david ? in inbound packets out outbound packetsR1(config-if)#ip access-group david out ? R1(config-if)#ip access-group david out /将名为david的IP标准访问控制列表应用到se2/0端口R1(config-if)#endR1#%SYS-5-CONFIG_I: Configured from console by consoleR1#show running-config Building configuration.Current configuration : 928 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname R1!.!interface FastEthernet0/0ip address 192.168.2.1 255.255.255.0duplex autospeed auto!interface FastEthernet1/0ip address 192.168.1.1 255.255.255.0duplex autospeed auto!interface Serial2/0ip address 192.168.3.1 255.255.255.0ip access-group david outclock rate 64000!interface Serial3/0no ip addressshutdown!interface FastEthernet4/0no ip addressshutdown!interface FastEthernet5/0no ip addressshutdown!router ospf 1log-adjacency-changesnetwork 192.168.1.0 0.0.0.255 area 0network 192.168.2.0 0.0.0.255 area 0network 192.168.3.0 0.0.0.255 area 0!ip classless!ip access-list standard davidpermit 192.168.1.0 0.0.0.255deny 192.168.2.0 0.0.0.255!.!line con 0line vty 0 4login!endR1#R2:RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R2R2(config)#int fa0/0R2(config-if)#ip add 192.168.4.1 255.255.255.0R2(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR2(config-if)#exitR2(config)#int se2/0R2(config-if)#ip add 192.168.3.2 255.255.255.0R2(config-if)#no shut%LINK-5-CHANGED: Interface Serial2/0, changed state to upR2(config-if)#exitR2(config)#router ospf 1R2(config-router)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to upR2(config-router)#network 192.168.3.0 0.0.0.255 area 0R2(config-router)#network 192.168.4.0 0.0.0.255 area 000:11:23: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.3.1 on Serial2/0 from LOADING to FULL, Loading DoR2(config-router)#endR2#%SYS-5-CONFIG_I: Configured from console by consoleR2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static routeGateway of last resort is not setO 192.168.1.0/24 110/782 via 192.168.3.1, 00:00:09, Serial2/0O 192.168.2.0/24 110/782 via 192.168.3.1, 00:00:09, Serial2/0C 192.168.3.0/24 is directly connected, Serial2/0C 192.168.4.0/24 is directly connected, FastEthernet0/0R2#五、测试PC1:Packet Tracer PC Command Line 1.0PCipconfigIP Address.: 192.168.1.2Subnet Mask.: 255.255.255.0Default Gateway.: 192.168.1.1PCping 192.168.4.2 /ACL前Pinging 192.168.4.2 with 32 bytes of data:Request timed out.Reply from 192.168.4.2: bytes=32 time=15ms TTL=126Reply from 192.168.4.2: bytes=32 time=9ms TTL=126Reply from 192.168.4.2: bytes=32 time=15ms TTL=126Ping statistics for 192.168.4.2: Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),Approximate round trip times in milli-seconds: Minimum = 9ms, Maximum = 15ms, Average = 13msPCping 192.168.4.2 /ACL后Pinging 192.168.4.2 with 32 bytes of data:Reply from 192.168.4.2: bytes=32 time=10ms TTL=126Reply from 192.168.4.2: bytes=32 time=9ms TTL=126Reply from 192.168.4.2: bytes=32 time=16ms TTL=126Reply from 192.168.4.2: bytes=32 time=13ms TTL=126Ping st
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 七年级生物下册 4.2.3 合理营养与食品安全教学设计 (新版)新人教版
- 人教版生物八年级下册7.2.4人的性别遗传 教学设计
- 人教版四年级下册第4课 主题与背景教案
- 七年级生物上册 第二单 第二章 第三节 动物的运动教学设计 (新版)济南版
- 2024四川巴东弘发产业发展集团有限公司公开招聘工作人员1人笔试参考题库附带答案详解
- 人教版八年级地理上册:4.2 农业 教学设计
- 人教部编版三年级下册3 荷花教案设计
- 七年级数学下册 第二章 相交线与平行线 3 平行线的性质第2课时 平行线的判定与性质的综合应用教学设计 (新版)北师大版
- 九年级道德与法治下册 第一单元 我们共同的世界 第二课 构建人类命运共同体 第2框谋求互利共赢教学设计 新人教版
- 2024北京国家金融科技风险监控中心有限公司招聘10人笔试参考题库附带答案详解
- 潮州市潮安区2022-2023学年七年级下学期期中道德与法治试题【带答案】
- Unit7词汇表讲解2024-2025学年牛津译林版英语七年级上册
- 城市商业综合体运营管理方案
- 道路救援公司规章制度
- DZ∕T0312-2018 非金属矿行业绿色矿山建设规范(正式版)
- 电工电子产品着火危险试验 第12部分:灼热丝-热丝基本试验方法 材料的灼热丝可燃性指数(GWFI)试验方法
- 19.1.1 变量与常量(教学设计)
- 译林版六年级下学期英语期中模拟试卷(含答案及解析)
- MOOC 数字逻辑电路实验-东南大学 中国大学慕课答案
- 《模拟导游》课件-2.10气象景观导游要领
- 2021-2022学年河北省唐山市路北区六年级下学期期中语文试卷
评论
0/150
提交评论