当前位置:网站首页>HCIA_ Nat experiment
HCIA_ Nat experiment
2022-07-19 02:53:00 【 ᝰꫛꫀꪝ】
1、 The experimental requirements
1、R2 by ISP equipment , Can only be configured on this device IP Address , No other configuration is allowed
2、1.1.1.0/24 Network segment represents all network segments of the whole Internet
3、PC1 It's ok pingPC2
4、R1 Only one public IP Address , stay G0/0/1 On the interface
5、CLIENT Can pass http Visit two server
6、client Visiting another server By domain name
2、 The topology
3、 The analysis process
1、PC1 can ping through PC2, And 1.1.1.0/24 Represents all network segments of the entire Internet , So you need to be in R1 Write a default pointing to ISP Router , Then a single default is not enough , Still need to be in R1 On the configuration NAT, Write first ACL Grab traffic of interest , Then proceed NAT Transformation , Convert private address to public address 12.1.1.1, Then visit the Internet .
2、client Can pass HTTP Visit two HTTP Of server, Need to be in R1 Port to port mapping on , bring cilent Use http Service 80 When accessing the port HTTP1, In the use of http Of 8888 When the interface of , Corresponding to HTTP2, In this way, it can be realized that two different server Separate access to
3、client Visiting one of them server Use the domain name to access , For the time being HTTP1 The corresponding relationship of is written as DNS Server , bring client When using domain name to access , Corresponding to HTTP1 Server for .
4、 Configure the content
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、 The results verify that
1、PC1 It's ok ping through PC2
2、CLIENT Can pass http Visit two server
3、client Visiting another server By domain name
边栏推荐
猜你喜欢

Binary installation kubernetes 1.24.1
![[solution] the local Group Policy Editor (gpedit.msc) in Win 11 cannot be opened](/img/8c/705d5f03ca12eef740957c7c80a9f7.png)
[solution] the local Group Policy Editor (gpedit.msc) in Win 11 cannot be opened

Squid agent service deployment

Lamp platform deployment and Application

TCP的三次握手与四次断开

使用gatekeeper限制kubernetes创建特定类型的资源

C语言回调函数 & sprinf 实际应用一例

Nat comprehensive experiment

全虚拟化与半虚拟化

一文搞懂JVM垃圾收集
随机推荐
Configure VLAN and use OSPF protocol for layer 3 switches
Leetcode buckle classic question - 42 Connect rainwater
MySQL差删改查用户登录修改密码
squid代理服务部署
MySQL主从复制+读写分离
Leetcode 198:House Robber
echo -e用法
Leetcode 70:Climbing Stairs
Lintcode 366:fibonacci Fibonacci sequence
时间管理方法的反思与探讨
MySQL数据库安装
RIP综合实验
Understand network namespaces
Test knowledge preparation
Changes of service account in kubernetes1.24
FTP服务
全虚拟化与半虚拟化
责任链模式的高级用法
A preliminary study of MySQL
Leetcode buckle classic topic - 82 Maximum rectangle in column chart




