Packet Tracer 5.0建构CCNA实验攻略(15)——ACL简单的配置
Packet Tracer 5.0建构CCNA实验攻略(15)——ACL简单的配置
ACL(Access Control List,访问控制列表),简单说就是包过滤,根据数据包的报头中的ip地址、协议端口号等信息进行过滤。利用ACL可以实现安全控制。编号:1-99 or 1300-1999(standard IP),100-199 or 2000-2699(Extended IP)。ACL并不复杂,但在实际应用中的,要想恰当地应用ACL,必需要制定合理的策略。
一、实验配置拓扑图
图一
图二 网络中的DNS服务器:192.168.1.2
图三 网络中的WWW服务器:192.168.1.3
二、三个路由器的基本配置 LuoShan#sh startup-config Using 699 bytes !
version 12.4
no service password-encryption !
hostname LuoShan ! !
enable password cisco ! ! !
!
username senya password 0 cisco !
ip ssh version 1 no ip domain-lookup ! !
interface FastEthernet0/0 no ip address duplex auto speed auto shutdown !
interface FastEthernet0/1
ip address 192.168.3.1 255.255.255.0 duplex auto speed auto !
interface Serial0/3/0
ip address 172.17.1.1 255.255.255.0 clock rate 56000 !
interface Serial0/3/1
ip address 172.18.1.2 255.255.255.0 !
interface Vlan1 no ip address shutdown !
router eigrp 100 network 192.168.3.0 network 172.17.0.0 network 172.18.0.0 auto-summary !
ip classless ! ! ! ! !
line con 0 line vty 0 4 password cisco
login ! ! end
HuangChuang#sh startup-config Using 669 bytes !
version 12.4
no service password-encryption !
hostname HuangChuang ! !
enable password cisco ! ! ! !
ip ssh version 1 no ip domain-lookup ! !
interface FastEthernet0/0 no ip address duplex auto speed auto shutdown !
interface FastEthernet0/1
ip address 192.168.2.1 255.255.255.0 duplex auto speed auto !
interface Serial0/3/0
ip address 172.17.1.2 255.255.255.0 !
interface Serial0/3/1
ip address 172.16.1.1 255.255.255.0 clock rate 56000 !
interface Vlan1 no ip address shutdown
router eigrp 100 network 192.168.2.0 network 172.17.0.0 network 172.16.0.0 auto-summary !
ip classless ! ! ! ! !
line con 0 line vty 0 4 password cisco login ! ! end
xixian#sh startup-config Using 679 bytes !
version 12.4
service password-encryption !
hostname xixian ! !
enable password 7 0822455D0A16 ! ! ! !
ip ssh version 1 no ip domain-lookup ! !
interface FastEthernet0/0 no ip address duplex auto speed auto shutdown
interface FastEthernet0/1
ip address 192.168.1.1 255.255.255.0 duplex auto speed auto !
interface Serial0/3/0
ip address 172.18.1.1 255.255.255.0 clock rate 56000 !
interface Serial0/3/1
ip address 172.16.1.2 255.255.255.0 !
interface Vlan1 no ip address shutdown !
router eigrp 100 network 192.168.1.0 network 172.18.0.0 network 172.16.0.0 auto-summary !
ip classless ! ! ! ! !
line con 0 line vty 0 4
password 7 0822455D0A16 login ! ! end
三、配置简单的ACL
1、配置ACL限制远程登录到路由器的主机 HuangChuang#conf t
Enter configuration commands, one per line. End with CNTL/Z.
HuangChuang(config)#access-list 1 permit host 192.168.2.2 \\路由器HuangChuang只允许
192.168.2.2远程登录(telnet)
HuangChuang(config)#line vty 0 4
HuangChuang(config-line)#access-class 1 in HuangChuang(config-line)# 其它两个路由器配置相似。
2、配置ACL禁止192.168.3.0/24网段的icmp协议数据包通向与192.168.1.0/24网段
xixian(config)#access-list 101 deny icmp 192.168.3.0 0.0.0.255 192.168.1.0 0.0.0.255
xixian(config)#access-list 101 permit ip any any xixian(config)#int fa0/1
xixian(config-if)#ip access-group 101 out xixian(config-if)#
3、配置ACL禁止特点的协议端口通讯 HuangChuang#conf t
Enter configuration commands, one per line. End with CNTL/Z.
HuangChuang(config)#ip access-list extended ACL1 \\创建基于名称的扩展ACL
HuangChuang(config-ext-nacl)#deny tcp host 192.168.2.2 192.168.1.0 0.0.0.255 eq 80
HuangChuang(config-ext-nacl)#deny udp host 192.168.2.3 192.168.1.0 0.0.0.255 eq 53
HuangChuang(config-ext-nacl)#permit ip any any HuangChuang(config-ext-nacl)#exit HuangChuang(config)#int fa0/1
HuangChuang(config-if)#ip access-group ACL1 in HuangChuang(config-if)#
图四 验证ACL
4。检验、查看ACL
HuangChuang#sh access-list Standard IP access list 1
permit host 192.168.2.2 (4 match(es)) Extended IP access list ACL1
deny udp host 192.168.2.3 192.168.1.0 0.0.0.255 eq domain deny tcp host 192.168.2.2 192.168.1.0 0.0.0.255 eq www permit ip any any
HuangChuang#show access-list Standard IP access list 1
permit host 192.168.2.2 (4 match(es)) Extended IP access list ACL1
deny udp host 192.168.2.3 192.168.1.0 0.0.0.255 eq domain (15
match(es)) deny tcp host 192.168.2.2 192.168.1.0 0.0.0.255 eq www (60 match(es)) permit ip any any (34 match(es)) HuangChuang#show access-list ACL1 Extended IP access list ACL1
deny udp host 192.168.2.3 192.168.1.0 0.0.0.255 eq domain (15 match(es)) deny tcp host 192.168.2.2 192.168.1.0 0.0.0.255 eq www (60 match(es)) permit ip any any (34 match(es)) HuangChuang#show access-list 1 Standard IP access list 1
permit host 192.168.2.2 (4 match(es)) 四、配置ACL的路由器配置内容 HuangChuang#sh startup-config Using 914 bytes !
version 12.4
no service password-encryption !
hostname HuangChuang ! !
enable password cisco ! ! ! !
ip ssh version 1 no ip domain-lookup ! !
interface FastEthernet0/0 no ip address duplex auto speed auto shutdown !
interface FastEthernet0/1
ip address 192.168.2.1 255.255.255.0 ip access-group ACL1 in duplex auto speed auto
!
interface Serial0/3/0
ip address 172.17.1.2 255.255.255.0 !
interface Serial0/3/1
ip address 172.16.1.1 255.255.255.0 clock rate 56000 !
interface Vlan1 no ip address shutdown !
router eigrp 100 network 192.168.2.0 network …… 此处隐藏:5080字,全部文档内容请下载后查看。喜欢就下载吧 ……
相关推荐:
- [实用模板]第八章:法国“新浪潮”与“左岸派”
- [实用模板]2021年北京上半年临床医学检验技师生物
- [实用模板]SAP GUI 7.10客户端安装配置文档
- [实用模板]2001年临床执业医师资格考试综合笔试试
- [实用模板]36机场工作实用英语词汇总结
- [实用模板](一)社会保险稽核通知书
- [实用模板]安全教育主题班会材料
- [实用模板]濉溪县春季呼吸道传染病防控应急演练方
- [实用模板]长沙房地产市场周报(1.30-2.3)
- [实用模板]六年级数学上册典中点 - 图文
- [实用模板]C程序设计(红皮书)习题官方参考答案
- [实用模板]中国证监会第一届创业板发行审核委员会
- [实用模板]桥梁工程复习题
- [实用模板]2011学而思数学及答案
- [实用模板]初中病句修改专项练习
- [实用模板]监理学习知识1 - 图文
- [实用模板]小机灵杯四年级试题
- [实用模板]国贸专业毕业论文模板
- [实用模板]教育学概论考试练习题-判断题4
- [实用模板]2015届高考英语一轮复习精品资料(译林
- 00Nkmhe_市场营销学工商管理_电子商务_
- 事业单位考试法律常识
- 诚信教育实施方案
- 吉大小天鹅食品安全检测箱方案(高中低
- 房地产销售培训资料
- 高一地理必修1复习提纲
- 新概念英语第二册lesson_1_练习题
- 证券公司内部培训资料
- 小学英语时间介词专项练习
- 新世纪英语专业综合教程(第二版)第1册U
- 【新课标】浙教版最新2018年八年级数学
- 工程建设管理纲要
- 外研版 必修一Module 4 A Social Surve
- Adobe认证考试 AE复习资料
- 基于H.264AVC与AVS标准的帧内预测技术
- 《食品检验机构资质认定管理办法》(质
- ABB变频器培训课件
- (完整版)小学说明文阅读练习题及答案
- 深思洛克(SenseLock) 深思IV,深思4,深
- 弟子规全文带拼音




