ACL基础实验

题目要求:

 第一步:给各个接口配置IP,因为下面两个路由器充当pc,所以需要写两条缺省,下一跳是R1的0/0/0接口

第二步:先进行ping的配置(PC1不可以pingR1,PC2不可以pingR2)

[R1]acl 3000
[R1-acl-adv-3000]rule deny icmp source 192.168.1.1 0 destination 192.168.1.3 0
[R1-acl-adv-3000]rule deny icmp source 192.168.1.2 0 destination 192.168.2.2 0
[R1-acl-adv-3000]q
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]traffic-filter inbound acl 3000
[R1]acl 3000
 

第三步:在路由器上开启远程端口

[R1]aaa
[R1-aaa]local-user niuma privilege level 15 password cipher 123456
[R1-aaa]local-user niuma service-type telnet 
[R1-aaa]q
[R1]user-interface vty 0 4	
[R1-ui-vty0-4]authentication-mode aaa
[R2]aaa
[R2-aaa]local-user niuma privilege level 15 password cipher 123456	
[R2-aaa]local-user niuma service-type telnet 
[R2-aaa]q
[R2]user-interface vty0 4	
[R2-ui-vty0-4]authentication-mode aaa

第四步:配置telnet设置

[R1]acl 3001
[R1-acl-adv-3001]rule deny tcp source 192.168.1.1 0 destination 192.168.2.2 0 de
stination-port eq 23 
[R1-acl-adv-3001]rule deny tcp source 192.168.1.2 0 destination 192.168.1.3 0 de
stination-port eq 23
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]traffic-filter inbound acl 3001
[R1]acl 3001
 

最后查看是否完成配置要求

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值