当前位置:网站首页>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)
![]()
边栏推荐
- 【域泛化】2022 IJCAI领域泛化教程报告
- Flame framework - Flame WTF form: file upload, verification code
- 基于cornerstone.js的dicom医学影像查看浏览功能
- Google Earth Engine——统计逐年土地分类的频率
- TPS calculation in performance test [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]
- 学习周刊 - 总第 63 期 - 一款开源的本地代码片段管理工具
- [high concurrency] how to realize distributed flow restriction under 100 million level traffic? You must master these theories!!
- The practice of asynchronous servlet in image service
- HCIA实验(09)
- Qt | 鼠标事件和滚轮事件 QMouseEvent、QWheelEvent
猜你喜欢
C class library generation, use class library objects to data bind DataGridView

Introduction to onnx runtime

JS hash table 01

Motivation of enterprises to practice open source

Visual thematic map of American airport go style: ArcGIS Pro version

思路再次完美验证!加息临近,趋势明了,好好把握这波行情!
Qt | 鼠标事件和滚轮事件 QMouseEvent、QWheelEvent

2021 CEC written examination summary

HCIP实验(02)

Flask框架——Session与Cookie
随机推荐
HCIP (01)
Openstack Skyline 组件安装
JS collection
Last week's hot review (7.18-7.24)
从开源的视角,解析SAP经典ERP “三十年不用变”的架构设计
UE4.26源码版学习广域网独立服务器时遇到的客户端运行黑屏问题
哥廷根大学提出CLIPSeg:一个使用文本和图像prompt能同时作三个分割任务的模型
AI technology stack is too huge! Wu Enda gives career planning: lifelong learning
TPS calculation in performance test [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]
Druid 查询超时配置的探究 → DataSource 和 JdbcTemplate 的 queryTimeout 到底谁生效?
UE4 framework introduction
HCIA实验(06)
HCIP实验(04)
Learn NLP with Transformer (Chapter 2)
HCIA实验(08)
【flask高级】结合源码解决flask经典报错:Working outside of application context
云原生IDE:iVX免费的首个通用无代码开发平台
2021 qunar written examination summary
mysql事务是什么
Qt | 鼠标事件和滚轮事件 QMouseEvent、QWheelEvent