当前位置:网站首页>HCIA experiment (09)
HCIA experiment (09)
2022-07-25 11:08:00 【Rainy days_】

1. To configure IP Address and PC End gateway
[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
( To configure R2 The default route for )
[r2]ip route-static 192.168.1.0 24 192.168.2.1
test 
2. Turn on Telnet service , Remote login
[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
test 

3. analysis
(ACL Matching rules : Huawei implicitly allows all )
4. Conduct ACL To configure
[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
( see )
( call )
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]traffic-filter inbound acl 3000
5. verification
(1)PC1
(ping)

(telnet)
![]()
(2)PC2
(ping)
(telnet)
![]()
边栏推荐
- Reinforcement Learning 强化学习(四)
- UE4 quickly find the reason for packaging failure
- 信号完整性(SI)电源完整性(PI)学习笔记(三十三)102条使信号完整性问题最小化的通用设计规则
- HCIP(11)
- Learn NLP with Transformer (Chapter 5)
- How to notify users of wechat applet version update?
- UE4 loadingscreen dynamic loading startup animation
- C3d model pytorch source code sentence by sentence analysis (II)
- AI系统前沿动态第43期:OneFlow v0.8.0正式发布;GPU发现人脑连接;AI博士生在线众筹研究主题
- 上周热点回顾(7.18-7.24)
猜你喜欢

Using px2rem does not take effect

使用Numpy进行高程统计及可视化

Using numpy for elevation statistics and visualization

Flask框架——Session与Cookie

Flask框架——flask-caching缓存
Learn NLP with Transformer (Chapter 4)

Analysis of event channel principle in Kraken

我,AI博士生,在线众筹研究主题
Learning Weekly - total issue 63 - an open source local code snippet management tool

ONNX Runtime介绍
随机推荐
信号完整性(SI)电源完整性(PI)学习笔记(三十三)102条使信号完整性问题最小化的通用设计规则
Learn NLP with Transformer (Chapter 8)
Guys, flick CDC table API, Mysql to MySQL, an application that can
代码的表示学习:CodeBERT及其他相关模型介绍
基于cornerstone.js的dicom医学影像查看浏览功能
mysql主从复制与读写分离
ESP8266 使用 DRV8833驱动板驱动N20电机
Basic experiment of microwave technology - Filter Design
redis 哨兵,高可用的执行者
MySQL advanced statement (I) (there is always someone who will make your life no longer bad)
Wechat applet wxprase contains files that cannot be solved by clicking
HCIP (01)
HCIP实验(02)
DICOM medical image viewing and browsing function based on cornerstone.js
Openstack Skyline 组件安装
[domain generalization] 2022 IJCAI domain generalization tutorial Report
UE4 loadingscreen dynamic loading startup animation
HCIP(12)
Learn NLP with Transformer (Chapter 3)
淦,为什么 '𠮷𠮷𠮷' .length !== 3 ??