当前位置:网站首页>HCIA_NAT实验
HCIA_NAT实验
2022-07-17 00:16:00 【 ᝰꫛꫀꪝ】
1、实验需求
1、R2为ISP设备,只能在该设备上配置IP地址,不得在进行其他的任何配置
2、1.1.1.0/24网段代表整个互联网的所有网段
3、PC1可以正常pingPC2
4、R1仅拥有一个公有IP地址,在G0/0/1接口上
5、CLIENT可以通过http访问到两台server
6、client在访问其他一台server通过域名
2、实验拓扑
3、分析过程
1、PC1能ping通PC2,且1.1.1.0/24代表整个互联网的所有网段,所以需要在R1上写一条缺省指向ISP路由器,然后单单一条缺省是不够的,还需要在R1上配置NAT,首先书写ACL抓取感兴趣的流量,然后进行NAT的转换,将私有地址转换为公有地址12.1.1.1,然后进行对互联网的访问。
2、client可以通过HTTP访问到两台HTTP的server,需要在R1上进行端口与端口的映射,使得cilent使用http服务的80端口的时候访问到的是HTTP1,在使用http的8888的接口时,对应到HTTP2,这样就可以实现对两台不同server的分别访问
3、client在访问其中一台server时使用域名进行访问,暂时将HTTP1的对应关系写到DNS服务器中,使得client在使用域名访问时,对应到HTTP1的服务器。
4、配置内容
R1:
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 255.255.255.0
[r1]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip address 12.1.1.1 255.255.255.0
[r1]ip route-static 0.0.0.0 0.0.0.0 12.1.1.2
[r1]acl 2000
[r1-acl-basic-2000]rule 5 permit source 192.168.1.0 0.0.0.255
[r1-GigabitEthernet0/0/1]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/1]nat server protocol tcp global current-interface 8888 inside 192.168.1.20 80
R2:
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip address 12.1.1.2 255.255.255.0
[r2]int g 0/0/1
[r2-GigabitEthernet0/0/1]ip address 1.1.1.1 255.255.255.0
5、结果验证
1、PC1可以正常ping通PC2
2、CLIENT可以通过http访问到两台server
3、client在访问其他一台server通过域名
边栏推荐
- Test knowledge preparation
- [unity development tips] unity mixer mixer controls global volume
- 不会叭不会叭,昨天真有人没写出二进制枚举
- MySQL数据库安装
- Traversal of binary tree
- Leetcode 322: coin change - Dynamic Planning
- "Visual C # from getting started to mastering" personal learning arrangement
- status 500 reading AftersaleService#getAftersaleList(Long)+com. sun. proxy.$ Proxy214.getAftersaleList
- Uniapp wechat applet login (authorize wechat first and then mobile phone number) - (1)
- Interpretation of concurrent virtual users, RPS and TPS
猜你喜欢

子网划分(详)

Sword finger offer 53 - I. find the number I in the sorted array

Nmon使用方法

服务器知识(详情)
![[Ruiji takeout ⑩] rough learning of Linux & rough learning of redis](/img/2f/9788ddea24f090d872ccdf82ccd8d8.png)
[Ruiji takeout ⑩] rough learning of Linux & rough learning of redis

Response assertion of JMeter interface test

Zabbix6.0通过iDRAC,IMM2监控DELL,IBM服务器硬件

Use JMeter to test services based on websocket protocol

LAMP平台部署及应用

ctfhub--ssrf
随机推荐
Shell脚本变量、脚本编写和执行(部署Apache与远程备份MySQL数据库)
性能瓶颈定位XMind
MySQL备份和恢复
Use of sqlmap
Interpretation of concurrent virtual users, RPS and TPS
Flyway的SaaS多租户实现方案
status 500 reading AftersaleService#getAftersaleList(Long)+com. sun. proxy.$ Proxy214.getAftersaleList
[Ruiji takeout ⑩] rough learning of Linux & rough learning of redis
NFS服务
Understand HTTP cache in 30 minutes
Chapter 1 - multi agent system
Performance test implementation specification Guide
Test points of login function
WINRAR命令拷贝指定文件夹为压缩文件,调用计划任务进行备份。
服务器知识(详情)
The difference between cookies and sessions
Inverse yuan (I'll add these words if there are too many people using the name)
Known preorder traversal, preorder traversal, find the sequence traversal of the tree
Convert string to integer
ARM 交叉编译器命名规则




