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

1.配置IP地址
[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.为R1配置缺省指向12.1.1.2
[r1]ip route-static 0.0.0.0 0 12.1.1.2
(验证)


(可得出,R1的G0/0/0接口为公有IP)
3.“一对多”
[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
(验证)

4.端口映射
(1)配置服务器


(2)配置端口映射
[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)测试


4.通过域名访问一台server



边栏推荐
- Angr (x) - official document (Part1)
- Modify MySQL group error expression 1 of select list is not in group
- 3.信你能理解的!shell脚本之循环语句与函数,数组,冒泡排序
- 配置FTP虚拟用户及访问控制
- C# 类库的生成,使用类库对象对DataGridView 进行数据绑定
- 微信小程序WxPrase中包含文件无法点击解决
- Pytorch code template (CNN)
- Research summary of voice self-monitoring pre training model CNN encoder
- 3. Believe you can understand! Circular statements and functions of shell scripts, arrays, bubble sorting
- Redis usage scenario
猜你喜欢

使用Three.js实现炫酷的赛博朋克风格3D数字地球大屏

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

js 集合

UE4 quickly find the reason for packaging failure

2021 致景笔试总结

Storage, computing, distributed storage (collection and sorting is suitable for Xiaobai)

2021 京东笔试总结

Pytorch tensor list is converted to tensor list of tensor to tensor using torch.stack()

Pow(x,n)

JS hash table 02
随机推荐
Ansible Deployment Guide
Deadlock event of thread pool
微信小程序WxPrase中包含文件无法点击解决
使用Three.js实现炫酷的赛博朋克风格3D数字地球大屏
The most comprehensive UE4 file operation in history, including opening, reading, writing, adding, deleting, modifying and checking
Install MySQL database version 5.7.29 under ubuntu20.04 system
5.这简单的 “echo” 用法隔壁小孩能不会吗!
7.shell实用的小工具cut等
Upgrade glibc 2.29 checking LD_ LIBRARY_ Path variable... Contains current directory error solution
Number theory -- negative Radix conversion
【信息系统项目管理师】思维导图系列精华汇总
搭建LNMP+DISCUZ论坛
Attention is all you need paper intensive reading notes transformer
Research summary of voice self-monitoring pre training model CNN encoder
6. PXE combines kickstart principle and configuration to realize unattended automatic installation
4、 Testfixture test fixture, or test firmware
5.NFS共享服务和ssh远程控制服务
Supervisor deployment (offline deployment requires downloading the deployment package in advance)
信号完整性(SI)电源完整性(PI)学习笔记(三十三)102条使信号完整性问题最小化的通用设计规则
Vs Code connects to the remote jupyter server