当前位置:网站首页>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 .
边栏推荐
- C reads the data in the CSV file and displays it after importing the DataTable
- Shanghai Jiaotong University joined hands with Taobao to set up a media computing laboratory: promoting the development of key technologies such as video super score
- LeetCode_ Bit operation_ Medium_ 260. Number III that appears only once
- H5 wechat shooting game source code
- Extract China map from global.Nc data and calculate regional CO2 value based on acgis
- 同质化代币与 NFT 结合,如何使治理结构设计更灵活?
- Redis的三种删除策略以及逐出算法
- 动态规划:背包问题模板代码汇总
- [task02: SQL basic query and sorting]
- 研发效能的思考总结
猜你喜欢

“当你不再是程序员,很多事会脱离掌控”—— 对话全球最大独立开源公司SUSE CTO...

prometheus配置alertmanager完整过程
![Linxu [basic instructions]](/img/94/98d7b2cb4a72c6437a9f604ec5da9d.png)
Linxu [basic instructions]
![[detailed use of doccano data annotation]](/img/40/c18cf8d5519328d707ed89fccb70ee.png)
[detailed use of doccano data annotation]

JS picture hanging style photo wall JS special effect

Talking about canvas and three rendering modes in unity
![[POC - proof of concept]](/img/57/0916e3711b27e2debfbdb9c9cb9713.png)
[POC - proof of concept]

Unity object path query tool

【服务器数据恢复】HP StorageWorks系列存储RAID5两块盘故障离线的数据恢复案例

Clock distribution of jesd204 IP core (ultrascale Series)
随机推荐
上海交大牵手淘宝成立媒体计算实验室:推动视频超分等关键技术发展
js网页黑白背景开关js特效
The engineering practice of super large model was polished, and Baidu AI Cloud released the cloud native AI 2.0 solution
Unity package project to vs deploy hololens process summary
融合数据库生态:利用 EventBridge 构建 CDC 应用
How to make the design of governance structure more flexible when the homogenization token is combined with NFT?
瀚高数据库最佳实践配置工具HG_BP日志采集内容
Scheduled backup of MySQL database under Windows system
Network shell
Voice controlled robot based on ROS (II): implementation of upper computer
【1331. 数组序号转换】
JS chart scatter example
Music says
LVM logical volume
Linxu [permission, sticky bit]
太空射击第15课: 道具
如何平衡SQL中的安全与性能?
LVS deployment Dr cluster
The product power is greatly improved, and the new Ford Explorer is released
Three steps to teach you unity serial communication