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

1. To configure IP Address
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip add 192.168.1.1 24
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 12.1.1.2 24
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]ip add 1.1.1.1 24




2. by R1 Configure default pointing 12.1.1.2
[r1]ip route-static 0.0.0.0 0 12.1.1.2
( verification )


( It can be concluded that ,R1 Of G0/0/0 Interface is public IP)
3.“ One to many ”
[r1]acl 2000
[r1-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]nat outbound 2000
( verification )

4. Port mapping
(1) Configure server


(2) Configure port mapping
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]nat server protocol tcp global current-interface 80 inside 192.168.1.10 80
Warning:The port 80 is well-known port. If you continue it may cause function failure.
Are you sure to continue?[Y/N]:y
[r1-GigabitEthernet0/0/0]nat server protocol tcp global current-interface 8888 inside 192.168.1.20 80

(3) test


4. Access one through the domain name server



边栏推荐
- Acquisition and compilation of UE4 source code
- HCIP实验(04)
- 大佬们,flink cdc table api , mysql to mysql,一个应用程序,可以
- Electromagnetic field and electromagnetic wave experiment I familiar with the application of MATLAB software in the field of electromagnetic field
- How to notify users of wechat applet version update?
- 100W了!
- C3d model pytorch source code sentence by sentence analysis (III)
- HCIA实验(07)综合实验
- Learn NLP with Transformer (Chapter 7)
- [flask advanced] deeply understand the application context and request context of flask from the source code
猜你喜欢

UE4 external open EXE file

异步Servlet在转转图片服务的实践

HCIP(11)

AI technology stack is too huge! Wu Enda gives career planning: lifelong learning

HCIP (01)

JS collection

HCIP(12)

Nb-iot control LCD (date setting and reading)

Keras deep learning practice (16) -- detailed explanation of self encoder

Flame framework - Flame WTF form: file upload, verification code
随机推荐
学习周刊 - 总第 63 期 - 一款开源的本地代码片段管理工具
[domain generalization] 2022 IJCAI domain generalization tutorial Report
100W!
微波技术基础实验一 滤波器的设计
ESP8266 使用 DRV8833驱动板驱动N20电机
HCIP(11)
The practice of asynchronous servlet in image service
MySQL advanced statement (I) (there is always someone who will make your life no longer bad)
从开源的视角,解析SAP经典ERP “三十年不用变”的架构设计
UE4 collision
Learn NLP with Transformer (Chapter 4)
【信息系统项目管理师】思维导图系列精华汇总
Basic experiment of microwave technology - Filter Design
HCIP实验(03)
异步Servlet在转转图片服务的实践
TPS calculation in performance test [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]
JS hash table 01
C3d model pytorch source code sentence by sentence analysis (III)
Learn NLP with Transformer (Chapter 7)
I wrote code for openharmony, and the second phase of "code" pioneer officially opened!