设为首页收藏本站language 语言切换
查看: 3291|回复: 6
收起左侧

[分享] 思科配置实例系列---自反控制列表

[复制链接]
 成长值: 64645
发表于 2011-7-10 19:43:15 | 显示全部楼层 |阅读模式
R2 s0------------------------s0/0 R1 s0/1----------------------------s1 R3
12.1.1.2                12.1.1.1       ;13.1.1.1             13.1.1.3
要求R2的S0口能ping通R3的S1口,但R3的S1口不能ping通R2的S0口。
也就是12.1.1.2能ping通13.1.1.3,但13.1.1.3不能ping通12.1.1.2.


hostname r1
!
interface Serial0/0
ip address 12.1.1.1 255.255.255.0
ip access-group ICMPre in
clockrate 64000
!
interface Serial0/1
ip address 13.1.1.1 255.255.255.0
ip access-group ICMPev in
clockrate 64000
!
ip access-list extended ICMPev
evaluate dxyx     .....................自动产生一条ACL,允许他回来,不然是 deny icmp any any
deny icmp any any
permit ip any any
ip access-list extended ICMPre
permit icmp any any reflect dxyx
permit ip any any

r3#ping 12.1.1.2 source 13.1.1.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.1.1.2, timeout is 2 seconds:
U.U.U
Success rate is 0 percent (0/5)
========================================================
r2#ping 13.1.1.3 source 12.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13.1.1.3, timeout is 2 seconds:
Packet sent with a source address of 12.1.1.2
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms
===================================================
r1#sh ip access
Extended IP access list ICMPev
    10 evaluate dxyx
    20 deny icmp any any (24 matches)
    30 permit ip any any
Extended IP access list ICMPre
    10 permit icmp any any reflect dxyx
    20 permit ip any any
Reflexive IP access list dxyx
     permit icmp host 13.1.1.3 host 12.1.1.2  (11 matches) (time left 175)  ....自动产生的
r1#sh ip access
Extended IP access list ICMPev


该贴已经同步到 小乔的微博
发表于 2011-7-10 20:05:35 | 显示全部楼层
不是很懂,求楼主详解
沙发 2011-7-10 20:05:35 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-7-10 20:17:56 | 显示全部楼层
板凳 2011-7-10 20:17:56 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-7-10 20:30:07 | 显示全部楼层
地板 2011-7-10 20:30:07 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-11-1 15:04:47 | 显示全部楼层
好东西
5# 2011-11-1 15:04:47 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-4-28 13:18:04 | 显示全部楼层
6# 2013-4-28 13:18:04 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-4-28 13:18:13 | 显示全部楼层
给力哦!!
7# 2013-4-28 13:18:13 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-4-26 23:26 , Processed in 0.084021 second(s), 22 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表