当前位置:网站首页>Nat experiment demonstration (Huawei switch equipment configuration)
Nat experiment demonstration (Huawei switch equipment configuration)
2022-07-28 20:46:00 【51CTO】
One 、NAT Introduce
NAT(Network Address Translation) Network address translation , Can be IP In the data header IP Address translation to another IP Address , The purpose of address reuse is achieved by converting the port number ,NAT Because the implementation is simple , Effectively alleviated IPv4 The shortage of public addresses , At present, it is widely used .
Two 、 The experiment purpose
adopt NAT, Realization PC1 and PC2 Can access the Server1;
3、 ... and 、 The topology

Four 、 Experimental configuration
(1)PC1,PC2 Configuration IP Address , Subnet mask and gateway .


(2)R1 To configure
<Huawei>system-view
# Enter view mode
[Huawei]sysname R1
# Modify the router name
[R1]un in en
# Turn off log prompt
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.254 24
[R1-GigabitEthernet0/0/0]q
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]ip add 12.1.1.1 24
[R1-GigabitEthernet0/0/1]q
[R1]nat address-group 1 12.1.1.3 12.1.1.5
# Create an address pool
[R1]acl 2000
# Create standards ACL
[R1-acl-basic-2000]rule 10 permit source 192.168.1.0 0.0.0.255
# Allow intranet address segments
[R1-acl-basic-2000]q
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]nat outbound 2000 address-group 1
# External network interface call ACL And address pool
[R1-GigabitEthernet0/0/1]q
[R1]ip route-static 0.0.0.0 0 12.1.1.2
#R1 Configure the default route on Next is ISP Of G0/0/0 mouth
(3)ISP To configure
<Huawei>system-view
[Huawei]sysname ISP
[ISP]un in en
[ISP]int g0/0/0
[ISP-GigabitEthernet0/0/0]ip add 12.1.1.2 24
[ISP-GigabitEthernet0/0/1]int g0/0/1
[ISP-GigabitEthernet0/0/1]ip add 23.1.1.1 24
[ISP-GigabitEthernet0/0/1]q
[ISP]ospf 1
[ISP-ospf-1]area 0
[ISP-ospf-1-area-0.0.0.0]network 12.1.1.0 0.0.0.255
[ISP-ospf-1-area-0.0.0.0]network 23.1.1.0 0.0.0.255
(4)Server1 To configure
<Huawei>system-view
[Huawei]sys Server1
[Server1]interface g0/0/0
[Server1-GigabitEthernet0/0/0]ip add 23.1.1.2 24
[Server1-GigabitEthernet0/0/0]q
[Server1]un in en
[Server1]ospf 1
[Server1-ospf-1]area 0
[Server1-ospf-1-area-0.0.0.0]network 23.1.1.0 0.0.0.255
(5) use PC1 and PC2 ping Server1 Test connectivity


PC1 and PC2 ping Server1 Sure ping through , Configuration is successful .
边栏推荐
- 平均海拔4000米!我们在世界屋脊建了一朵云
- Configure Windows Server + install MySQL database on the server + Remote Access database
- JS drag and drop alert pop-up plug-in
- Beautiful blue background form input box style
- Nocturnal simulator settings agent cannot be saved
- 一个程序员的水平能差到什么程度?尼玛,都是人才呀...
- NAT实验演示(Huawei交换机设备配置)
- [C语言刷题篇]链表运用讲解
- How to make the design of governance structure more flexible when the homogenization token is combined with NFT?
- The product power is greatly improved, and the new Ford Explorer is released
猜你喜欢

js图片悬挂样式照片墙js特效

JS win7 transparent desktop switching background start menu JS special effect

Use of DDR3 (axi4) in Xilinx vivado (5) board test

卡通js射击小游戏源码

Unity makes prefabricated bodies with one key and modifies prefabricated bodies with one key
![Linxu [basic instructions]](/img/94/98d7b2cb4a72c6437a9f604ec5da9d.png)
Linxu [basic instructions]
![[task02: SQL basic query and sorting]](/img/10/c2a936c882cd77f422396840282ed5.png)
[task02: SQL basic query and sorting]

Classes and objects (medium)
![Linxu [permission, sticky bit]](/img/57/ceacb5c67b97db8a4743cb319f81d7.png)
Linxu [permission, sticky bit]

Pop up modal box
随机推荐
Oracle库访问很慢,是什么原因?
Unity performance optimization
How bad can a programmer be? Nima, they are all talents
Clock distribution of jesd204 IP core (ultrascale Series)
Character device drive structure
【1331. 数组序号转换】
网络各层性能测试
PXE_ KS unattended system
阿里云 MSE 支持 Go 语言流量防护
Voice controlled robot based on ROS (II): implementation of upper computer
About IP address
Extract China map from global.Nc data and calculate regional CO2 value based on acgis
The product power is greatly improved, and the new Ford Explorer is released
动态规划:背包问题模板代码汇总
EasyNLP中文文图生成模型带你秒变艺术家
Scheduled backup of MySQL database under Windows system
Mysql报错:Specified key was too long; max key length is 767 bytes
[task03: complex query methods - views, subqueries, functions, etc.]
3D激光SLAM:LeGO-LOAM论文解读---简介部分
H5 wechat shooting game source code