当前位置:网站首页>HCIA实验(09)
HCIA实验(09)
2022-07-25 09:47:00 【雨天_】

1.配置IP地址和PC端网关
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip add 192.168.1.1 24
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.2.1 24
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.2.2 24
[pc1]int g0/0/0
[pc1-GigabitEthernet0/0/0]ip add 192.168.1.2 24
[pc1]ip route-static 0.0.0.0 0 192.168.1.1
[pc2]int g0/0/0
[pc2-GigabitEthernet0/0/0]ip add 192.168.1.3 24
[pc2]ip route-static 0.0.0.0 0 192.168.1.1
(配置R2的缺省路由)
[r2]ip route-static 192.168.1.0 24 192.168.2.1
测试
2.开启Telnet服务,远程登录
[r1]aaa
[r1-aaa]local-user sss privilege level 15 password cipher 123456
Info: Add a new user.
[r1-aaa]local-user sss service-type telnet
[r1]user-interface vty 0 4
[r1-ui-vty0-4]authentication-mode aaa
[r2]aaa
[r2-aaa]local-user sss privilege level 15 password cipher 654321
Info: Add a new user.
[r2-aaa]local-user sss service-type telnet
[r2]user-interface vty 0 4
[r2-ui-vty0-4]authentication-mode aaa
测试

3.分析
(ACL匹配规则:华为末尾隐含允许所有)
4.进行ACL配置
[r1]acl 3000
[r1-acl-adv-3000]rule deny icmp source 192.168.1.2 0 destination 192.168.1.1 0
[r1-acl-adv-3000]rule deny icmp source 192.168.1.2 0 destination 192.168.2.1 0
[r1-acl-adv-3000]rule deny tcp source 192.168.1.2 0 destination 192.168.2.2 0 destination-port eq 23
[r1-acl-adv-3000]rule deny tcp source 192.168.1.3 0 destination 192.168.1.1 0 destination-port eq 23
[r1-acl-adv-3000]rule deny tcp source 192.168.1.3 0 destination 192.168.2.1 0 destination-port eq 23
[r1-acl-adv-3000]rule deny icmp source 192.168.1.3 0 destination 192.168.2.2 0
(查看)
(调用)
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]traffic-filter inbound acl 3000
5.验证
(1)PC1
(ping)

(telnet)
![]()
(2)PC2
(ping)
(telnet)
![]()
边栏推荐
- 2021 牛客网笔试总结 01
- 信号完整性(SI)电源完整性(PI)学习笔记(三十三)102条使信号完整性问题最小化的通用设计规则
- Attention is all you need paper intensive reading notes transformer
- Qt | 鼠标事件和滚轮事件 QMouseEvent、QWheelEvent
- Angr (I) - Installation
- 使用Three.js实现炫酷的赛博朋克风格3D数字地球大屏
- 【信息系统项目管理师】思维导图系列精华汇总
- 5. NFS shared services and SSH Remote Control Services
- Angr (VI) -- angr_ ctf
- What is the meaning of ordinary people's life?
猜你喜欢
随机推荐
js 双向链表 02
Software test notes, test case design
Erlang (offline deployment)
湖仓一体电商项目(二):项目使用技术及版本和基础环境准备
搭建LNMP+DISCUZ论坛
2021 written examination summary of niuke.com 01
Angr (II) -- angr_ ctf
Redis usage scenario
9.shell文本处理三剑客之awk
Voxceleb1 dataset Download
平凡人的一生的意义是什么?
Number theory --- the greatest common divisor and the least common multiple
5.NFS共享服务和ssh远程控制服务
Basic concepts of testing
Upgrade glibc 2.29 checking LD_ LIBRARY_ Path variable... Contains current directory error solution
推荐系统-协同过滤在Spark中的实现
存储、计算、分布式存储篇(收集整理适合小白)
What is the meaning of ordinary people's life?
【蓝桥杯集训100题】scratch太极图 蓝桥杯scratch比赛专项预测编程题 集训模拟练习题第22题
ESP32C3基于Arduino框架下的 ESP32 RainMaker开发示例教程








