当前位置:网站首页>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)
![]()
边栏推荐
- Trojang attack on neural networks paper reading notes
- 3. Believe you can understand! Circular statements and functions of shell scripts, arrays, bubble sorting
- Angr (III) - angr_ ctf
- Hucang integrated e-commerce project (II): project use technology, version and basic environment preparation
- How to connect tdengine through open source database management tool dbeaver
- Using numpy for elevation statistics and visualization
- 电磁场与电磁波实验一 熟悉Matlab软件在电磁场领域的应用
- 搭建LNMP+DISCUZ论坛
- 2021 牛客网笔试总结 02
- 云原生IDE:iVX免费的首个通用无代码开发平台
猜你喜欢

Angr (IV) -- angr_ ctf

6.PXE结合Kickstart原理和配置实现无人值守自动装机

2.shell脚本之条件语句

Configuration of OSPF protocol (take Huawei ENSP as an example)

3.信你能理解的!shell脚本之循环语句与函数,数组,冒泡排序

Ansible Deployment Guide

CONDA configures the deep learning environment pytorch transformers

湖仓一体电商项目(二):项目使用技术及版本和基础环境准备

Fastdfs offline deployment (Graphic)

2021 致景笔试总结
随机推荐
Use of mongodb
2021 去哪儿网笔试总结
When installing mysql, string the service installation failure > mysql80 startup failure
8.shell文件处理三剑客之sed
5. NFS shared services and SSH Remote Control Services
Fastdfs离线部署(图文)
Basic concepts of testing
Research summary of voice self-monitoring pre training model CNN encoder
Voxceleb1 dataset Download
QT | mouse events and wheel events qmouseevent, qwheelevent
2021 Niuke written examination summary 02
使用Three.js实现炫酷的赛博朋克风格3D数字地球大屏
Storage, computing and distributed computing (collection and sorting is suitable for Xiaobai)
For cycle: daffodil case
C class library generation, use class library objects to data bind DataGridView
Number theory -- negative Radix conversion
微波技术大作业课设-分立电容电感+微带单枝短截线+微带双枝短截线
Pytorch calculates the loss for each sample in the batch
搭建LNMP+DISCUZ论坛
Use three.js to realize the cool cyberpunk style 3D digital earth large screen