- 积分
- 177
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2018-3-20
- 最后登录
- 1970-1-1
- 阅读权限
- 20
- 听众
- 收听
助理工程师
|
发表于 2018-12-5 00:29:33
|
显示全部楼层
解释一下echo 和 echo-reply 吧,echo 就是允许你跟我说话,echo-reply就是允许我跟你说话,如果只允许了echo,就只允许你跟我讲话,一样的,echo-reply 就是只准我跟你讲话不准你跟我。例子:
用实验题的ACL-1 那个配置
SWC 的地址为10.4.4.1, Router的地址为10.4.4.3, 在router 上最开始有一个ACL, 如下:
RouterC#show ip int f0/0
FastEthernet0/0 is up, line protocol is up (connected)
Internet address is 10.4.4.3/24
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access list is not set
Inbound access list is 106
我们看到ID是106, 然后去看106 是什么,
RouterC#show access-lists 106
Extended IP access list 106
permit tcp any any eq ftp
deny tcp any any eq telnet
permit icmp any any echo-reply
这个就是echo-reply被允许,对不对? 我们再看一下结果,Router可以ping switch, switch 就不可以ping 通router, 演示:
RouterC#ping 10.4.4.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.4.4.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/4 ms
SwitchC#ping 10.4.4.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.4.4.3, timeout is 2 seconds:
UUUUU
Success rate is 0 percent (0/5) |
-
板凳
2018-12-5 00:29:33
回复(0)
收起回复
|