栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

ACL的扩展列表的配置及应用

ACL的扩展列表的配置及应用

首先,确定搭建及配置要求

 第一步:搭建拓扑建构,及其配置IP地址

 配IP地址

[PC1]interface GigabitEthernet 0/0/0
[PC1-GigabitEthernet0/0/0]ip add 192.168.2.2 24

[PC2]interface GigabitEthernet 0/0/0
[PC2-GigabitEthernet0/0/0]ip add 192.168.2.3 24

[AR1]interface GigabitEthernet 0/0/0
[AR1-GigabitEthernet0/0/0]ip add 192.168.2.1 24
[AR1-GigabitEthernet0/0/0]q
[AR1]interface GigabitEthernet 0/0/1
[AR1-GigabitEthernet0/0/1]ip add 192.168.1.1 24

[AR2]interface GigabitEthernet 0/0/0
[AR2-GigabitEthernet0/0/0]ip add 192.168.1.2 24

第二步:给PC1和PC2配置缺省路由

[PC1]ip route-static 0.0.0.0 0 192.168.2.1

[PC2]ip route-static 0.0.0.0 0 192.168.2.1

第三步:在给AR2添加路由表

[AR2]ip route-static 192.168.2.0 24 192.168.1.1

此时,PC1和PC2可以ping通AR1和AR2

第四步:创建ACL列表(扩展列表),并进行配置

[AR1]acl 3000	      创建acl列表,3000-3999为扩展列表;
[AR1-acl-adv-3000]rule deny icmp source 192.168.2.2 0 destination 192.168.2.1 0
[AR1-acl-adv-3000]rule deny icmp source 192.168.2.2 0 destination 192.168.1.1 0
[AR1-acl-adv-3000]rule deny icmp source 192.168.2.3 0 destination 192.168.1.2 0
[AR1-acl-adv-3000]rule deny tcp source 192.168.2.2 0 destination 192.168.1.2 0 d
estination-port eq 23	
[AR1-acl-adv-3000]rule deny tcp source 192.168.2.3 0 destination 192.168.1.1 0 d
estination-port eq 23
[AR1-acl-adv-3000]rule deny tcp source 192.168.2.3 0 destination 192.168.2.1 0 d
estination-port eq 23

第五步:在路由器上开启远程控制,并基于TCP目标端口号23工作

[AR1]aaa
[AR1-aaa]local-user shuaige privilege level 15 password cipher 666666
Info: Add a new user.
[AR1-aaa]local-user shuaige service-type telnet
[AR1-aaa]q
[AR1]user-interface vty 0 4
[AR1-ui-vty0-4]authentication-mode aaa

[AR2]aaa
[AR2-aaa]local-user shuaige privilege level 15 password cipher 666666
Info: Add a new user.
[AR2-aaa]local-user shuaige service-type telnet
[AR2-aaa]q
[AR2]user-interface vty 0 4
[AR2-ui-vty0-4]authentication-mode aaa

第五步:测试一下,是否符合要求
 

 

 此时,达到实验要求

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/682575.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号