acl远程登录与测试

项目场景:

在这里插入图片描述
在这里插入图片描述


问题描述

由图上所知,本题分为以下几个问题:

一、基础配置

二、pc1不能ping通AR1,不能登录 AR2

三、pc2不能登录AR2,不能ping通AR2

四、注意事项

一、基础配置:

静态路由:
pc1、pc2:
ip route-static 192.168.2.0 255.255.255.0 192.168.1.1
AR2:
ip route-static 192.168.1.0 255.255.255.0 192.168.2.1
登录账户创建:
AR1:
[R1]aaa//存储帐户密码
[R1-aaa]local-user ybc privilege level 15 password cipher 123456
[R1-aaa]local-user ybc service-type telnet
在这里插入图片描述
AR2:
[R2]aaa//存储帐户密码
[R2-aaa]local-user ybcx privilege level 15 password cipher 12345
[R2-aaa]local-user ybcx service-type telnet
在这里插入图片描述

二、pc1不能ping通AR1,不能登录 AR2:

R1:
rule 5 deny icmp source 192.168.1.2 0 destination 192.168.1.1 0
R2:
rule 10 deny tcp source 192.168.1.2 0 destination 192.168.2.2 0 destination-por
t eq telnet

三、pc2不能登录AR1,不能ping通AR2

R1:
rule 10 deny tcp source 192.168.1.3 0 destination 192.168.1.1 0 destination-por
t eq telnet
R2: rule 5 deny icmp source 192.168.1.3 0 destination 192.168.2.2 0

四、注意事项

ACL规则编写完成后,必须在接口调用后方可生效,T如:
[R2]interface g0/0/0
[R2-GigabitEthernet0/0/1]traffic-filter ? 调用时一定注意方向
inbound Apply ACL to the inbound direction of the interface //进站
outbound Apply ACL to the outbound direction of the interface //出栈
[R2-GigabitE thernet0/0/1]traffic-filter outbound acl 3003

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值