当前位置:网站首页>ACL访问控制实验
ACL访问控制实验
2022-07-23 05:47:00 【.98℃】
1.要求

2.拓扑

3.分析
4.配置
给路由器配置ip
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.2.24 24
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip add 192.168.1.1 30
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.1.2 30
给pc配置ip,用缺省代替网关
[pc1]int g0/0/0
[pc1-GigabitEthernet0/0/0]ip add 192.168.2.1 24
[pc1]ip route-static 0.0.0.0 0 192.168.2.24
[pc2]int g0/0/0
[pc2-GigabitEthernet0/0/0]ip add 192.168.2.2 24
[pc2]ip route-static 0.0.0.0 0 192.168.2.24
在路由器上分别创建一个lyc的用户
[r1]aaa
[r1-aaa]local-user lyc privilege level 15 password cipher a12345
[r1-aaa]local-user lyc service-type telnet
[r1-aaa]q
[r1]user-interface vty 0 1
[r1-ui-vty0-1]authentication-mode aaa
[r2]aaa
[r2-aaa]local-user lyc privilege level 15 password cipher a12345
[r2-aaa]local-user lyc service-type telnet
[r2-aaa]q
[r2]user-interface vty 0 1
[r2-ui-vty0-1]authentication-mode aaa
设置拒绝ICMP和tcp23号端口服务
[r1]acl 3002
[r1-acl-adv-3002]rule deny icmp source 192.168.2.1 0 destination 192.168.2.24 0
[r1-acl-adv-3002]rule deny tcp source 192.168.2.2 0 destination 192.168.2.24 0 destination-port eq 23
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]traffic-filter inbound acl 3002
[r2]acl 3003
[r2-acl-adv-3003]rule deny icmp source 192.168.2.2 0 destination 192.168.1.2 0
[r2-acl-adv-3003]rule deny tcp source 192.168.2.1 0 destination 192.168.1.2 0 destination-port eq 23
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]traffic-filter inbound acl 30035.验证
PC1- ping - R1

PC1- ping - R2

PC1- Telnet -R1

PC1- Telnet -R2

PC2- ping - R1

PC2- ping - R2

PC2- Telnet -R1

PC2- Telnet -R2

边栏推荐
- Super easy to use packet capturing tool tcpdump
- Summary of basic SQL operations
- psutil监控的简单使用
- Unity3d+gameframework: resource analysis, resource dependency, circular dependency detection
- Knowledge points and skills of Wireshark network analysis is so simple
- 查询交叉编译出的可执行文件依赖库
- Sword finger offer summary
- How many seats do you need for 1000 people to eat in 2 hours?
- Secret key remote login server to realize secret free login
- 为什么要搭建本地yum仓库?
猜你喜欢

Instant messaging websocket

路由与交换技术——静态路由

Default routing configuration instance learning record

为什么要搭建本地yum仓库?

Learning diary - (routing and switching technology) single arm routing

Super easy to use packet capturing tool tcpdump

Telnet configuration instance learning record

psutil监控的简单使用

FTP experiment and overview

浅做一下思科实验吧!
随机推荐
帧中继网配置实例学习记录
Learning diary - (routing and switching technology) network address translation NAT Technology
Real questions required for Niuke interview [algorithm] summary of high-frequency TOP200 questions
[untitled]
2020-09-22
0 dynamic programming leetcode918. Maximum sum of circular subarrays
Telnet configuration instance learning record
Knowledge points and skills of Wireshark network analysis is so simple
PostgreSQL k8s部署模板
Liveness、Readiness 和 Startup Probes
Integer times integer overflow
Unity3d: vector calculation, AOE graph intersection
OSPF single area configuration instance learning record
手动配置DHCP服务
app编译打包部署手册
2020-09-20
超好用的抓包工具tcpdump
Leetcode problem solution summary
写一个可执行文件依赖.so的测试用例
Understand the article frankly and get the HTTP protocol cache