当前位置:网站首页>Nat address translation
Nat address translation
2022-07-07 18:38:00 【Chen chacha__】
Technical background
- legal IP Address resources are increasingly scarce
- Effectively hide internal hosts IP, It has a certain role in network security protection
NAT principle : change IP baotou 、 Make destination address 、 The source address or two addresses are replaced by different addresses in the header
NAT classification :
static state NAT: One to one address mapping
dynamic NAT: Pick from the address pool
NAT overload (PAT): Allow internal address mapping to an external address
static state NAT

Two routers are respectively configured with default routes , The whole network is connected
1.PC0 Use the public address to access the Internet server , stay R0 The upper configuration enables static address translation between internal local and external legal addresses
ip nat inside soure static 192.168.10.1 76.12.16.139 # The former is the internal address , Followed by the external address to be mapped
Enable on internal and external ports NAT
int e0/0/0
ip nat inside
int f0/1
ip nat outside
show ip nat translations
2. Will be inside server HTTP Services are mapped to the public network IP PC Through the public network IP Internal access server
ip nat inside source static tcp 192.168.20.1 80 76.12.16.140 80
int f0/0
ip nat in
show ip nat translations
dynamic NAT

dynamic NAT Configuration steps
1. To configure ACL, Intranet range for address translation
access-list 1 permit 192.168.10.0 0.0.0.255
int f0/0
ip access-group in
2. Configure the translated address pool
ip nat pool pool-1 76.12.16.139 76.12.16.141 netmask 255.255.255.248
3. Set up ACL Mapping relationship with address pool
ip nat inside source list 1 pool pool-1
4. Enable on internal and external ports NAT
int f0/0
ip nat inside
int f0/1
ip nat outside
show ip nat translation # Check out the NAT Address translation address

边栏推荐
- C语言中匿名的最高境界
- Chapter 2 building CRM project development environment (building development environment)
- 能同时做三个分割任务的模型,性能和效率优于MaskFormer!Meta&UIUC提出通用分割模型,性能优于任务特定模型!开源!...
- 现在网上期货开户安全吗?国内有多少家正规的期货公司?
- sqlite sql 异常 near “with“: syntax error
- 开发一个小程序商城需要多少钱?
- Five simple ways to troubleshoot with Stace
- 元宇宙带来的创意性改变
- SD_DATA_SEND_SHIFT_REGISTER
- [PaddleSeg源码阅读] PaddleSeg Validation 中添加 Boundary IoU的计算(1)——val.py文件细节提示
猜你喜欢

标准ACL与扩展ACL

Disk storage chain B-tree and b+ tree

Win11C盘满了怎么清理?Win11清理C盘的方法

嵌入式C语言程序调试和宏使用的技巧

强化学习-学习笔记8 | Q-learning

Kirk Borne的本周学习资源精选【点击标题直接下载】

String type, constant type and container type of go language

Tsinghua, Cambridge and UIC jointly launched the first Chinese fact verification data set: evidence-based, covering many fields such as medical society

Year SQL audit platform

3分钟学会制作动态折线图!
随机推荐
[unity shader] insert pass to realize the X-ray perspective effect of model occlusion
pip相关命令
云景网络科技面试题【杭州多测师】【杭州多测师_王sir】
Tips of this week 141: pay attention to implicit conversion to bool
Performance test process and plan
Discuss | frankly, why is it difficult to implement industrial AR applications?
回归测试的分类
Rules for filling in volunteers for college entrance examination
性能测试过程和计划
直播软件搭建,canvas文字加粗
【C语言】字符串函数
Hash, bitmap and bloom filter for mass data De duplication
Skills of embedded C language program debugging and macro use
NAT地址转换
Tips of this week 135: test the contract instead of implementation
Introduction of common API for socket programming and code implementation of socket, select, poll, epoll high concurrency server model
低代码助力企业数字化转型会让程序员失业?
财富证券证券怎么开户?通过链接办理股票开户安全吗
sqlite sql 异常 near “with“: syntax error
[trusted computing] Lesson 13: TPM extended authorization and key management