扩展访问控制列表技术.docx

上传人:b****4 文档编号:6136900 上传时间:2023-05-09 格式:DOCX 页数:13 大小:206.55KB
下载 相关 举报
扩展访问控制列表技术.docx_第1页
第1页 / 共13页
扩展访问控制列表技术.docx_第2页
第2页 / 共13页
扩展访问控制列表技术.docx_第3页
第3页 / 共13页
扩展访问控制列表技术.docx_第4页
第4页 / 共13页
扩展访问控制列表技术.docx_第5页
第5页 / 共13页
扩展访问控制列表技术.docx_第6页
第6页 / 共13页
扩展访问控制列表技术.docx_第7页
第7页 / 共13页
扩展访问控制列表技术.docx_第8页
第8页 / 共13页
扩展访问控制列表技术.docx_第9页
第9页 / 共13页
扩展访问控制列表技术.docx_第10页
第10页 / 共13页
扩展访问控制列表技术.docx_第11页
第11页 / 共13页
扩展访问控制列表技术.docx_第12页
第12页 / 共13页
扩展访问控制列表技术.docx_第13页
第13页 / 共13页
亲,该文档总共13页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

扩展访问控制列表技术.docx

《扩展访问控制列表技术.docx》由会员分享,可在线阅读,更多相关《扩展访问控制列表技术.docx(13页珍藏版)》请在冰点文库上搜索。

扩展访问控制列表技术.docx

扩展访问控制列表技术

扩展访问控制列表技术

一.网络拓扑图

二.实验要求

1.根据网络拓扑图正确配置IP地址

2.全网采用OSPF技术互联

3.使用扩展访问控制列表技术控制PC1不能访问S1的WEB服务,PC0可以正常访问WEB服务

三.配置过程

1.R1:

Router>ena

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hosR1

R1(config)#intf0/0

R1(config-if)#ipaddress192.168.1.254255.255.255.0

R1(config-if)#noshutdown

R1(config-if)#exi

R1(config)#intf1/0

R1(config-if)#ipaddress192.168.2.254255.255.255.0

R1(config-if)#noshutdown

R1(config-if)#exi

R1(config)#ints2/0

R1(config-if)#ipaddress10.1.1.1255.255.255.0

R1(config-if)#clora64000

R1(config-if)#noshutdown

R1(config-if)#exi

R1(config)#routerospf1

R1(config-router)#network10.1.1.00.0.0.255ar0

R1(config-router)#network192.168.1.00.0.0.255ar0

R1(config-router)#network192.168.2.00.0.0.255ar0

R1(config-router)#exi

R1(config)#access-list100denytcp192.168.2.00.0.0.255172.16.1.00.0.0.255eqwww//创建扩展访问控制列表100,禁止192.168.2.0/24网段不能访问172.16.1.0/24网段的WWW服务

R1(config)#access-list100permitipanyany//允许所有数据包通过

R1(config)#ints2/0

R1(config-if)#ipaccess-group100out//将访问控制列表100应用到S2/0的出方向

R1(config-if)#exi

R1(config)#dowr

Buildingconfiguration...

[OK]

 

2.R2:

Router>ena

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hosR2

R2(config)#intf0/0

R2(config-if)#ipaddress172.16.1.254255.255.255.0

R2(config-if)#noshutdown

R2(config-if)#exi

R2(config)#ints2/0

R2(config-if)#ipaddress10.1.1.2255.255.255.0

R2(config-if)#noshutdown

R2(config-if)#exi

R2(config)#ro

R2(config)#routerospf1

R2(config-router)#network172.16.1.00.0.0.255ar0

R2(config-router)#network10.1.1.00.0.0.255ar0

R2(config-router)#exi

R2(config)#dowr

Buildingconfiguration...

[OK]

R2(config)#

四.配置文件

1.R1:

R1(config)#doshrun

Buildingconfiguration...

Currentconfiguration:

965bytes

!

version12.2

noservicetimestampslogdatetimemsec

noservicetimestampsdebugdatetimemsec

noservicepassword-encryption

!

hostnameR1

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interfaceFastEthernet0/0

ipaddress192.168.1.254255.255.255.0

duplexauto

speedauto

!

interfaceFastEthernet1/0

ipaddress192.168.2.254255.255.255.0

duplexauto

speedauto

!

interfaceSerial2/0

ipaddress10.1.1.1255.255.255.0

ipaccess-group100out

clockrate64000

!

interfaceSerial3/0

noipaddress

clockrate2000000

shutdown

!

interfaceFastEthernet4/0

noipaddress

shutdown

!

interfaceFastEthernet5/0

noipaddress

shutdown

!

routerospf1

log-adjacency-changes

network10.1.1.00.0.0.255area0

network192.168.1.00.0.0.255area0

network192.168.2.00.0.0.255area0

!

ipclassless

!

!

access-list100denytcp192.168.2.00.0.0.255172.16.1.00.0.0.255eqwww

access-list100permitipanyany

!

!

!

!

!

linecon0

linevty04

login

!

!

!

End

2.R2:

R2(config)#doshrun

Buildingconfiguration...

Currentconfiguration:

758bytes

!

version12.2

noservicetimestampslogdatetimemsec

noservicetimestampsdebugdatetimemsec

noservicepassword-encryption

!

hostnameR2

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interfaceFastEthernet0/0

ipaddress172.16.1.254255.255.255.0

duplexauto

speedauto

!

interfaceFastEthernet1/0

noipaddress

duplexauto

speedauto

shutdown

!

interfaceSerial2/0

ipaddress10.1.1.2255.255.255.0

!

interfaceSerial3/0

noipaddress

clockrate2000000

shutdown

!

interfaceFastEthernet4/0

noipaddress

shutdown

!

interfaceFastEthernet5/0

noipaddress

shutdown

!

routerospf1

log-adjacency-changes

network172.16.1.00.0.0.255area0

network10.1.1.00.0.0.255area0

!

ipclassless

!

!

!

!

!

!

!

linecon0

linevty04

login

!

!

!

End

五.测试结果

1.PC0能PING通S1,能访问WWW服务

2.PC1不能访问WWW服务,但能PING通S1

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 自然科学 > 物理

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2