当前位置:网站首页>NAT地址转换
NAT地址转换
2022-07-07 16:36:00 【陈叉叉__】
技术背景
- 合法的IP地址资源日益短缺
- 有效隐藏内部主机IP,有一定的网络安全保护作用
NAT 原理:改变IP包头、使目的地址、源地址或两个地址在包头中被不同地址替换
NAT分类:
静态NAT:一对一的地址映射
动态NAT:从地址池中挑选
NAT过载(PAT):允许内部地址映射到一个外部地址
静态NAT
两台路由器分别配置默认路由,全网连通
1.PC0使用公网地址访问外网server ,在R0上配置使内部本地和外部合法地址之间建立静态地址转换
ip nat inside soure static 192.168.10.1 76.12.16.139 #前为内部地址,后为要映射的外部地址
在内部和外部端口上启用NAT
int e0/0/0
ip nat inside
int f0/1
ip nat outside
show ip nat translations
2.将内部server HTTP服务映射成公网IP PC通过公网IP访问内部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
动态NAT
动态NAT配置步骤
1.配置ACL,用于做地址转换的内网范围
access-list 1 permit 192.168.10.0 0.0.0.255
int f0/0
ip access-group in
2.配置转换的地址池
ip nat pool pool-1 76.12.16.139 76.12.16.141 netmask 255.255.255.248
3.设置ACL和地址池的映射关系
ip nat inside source list 1 pool pool-1
4.在内部和外部端口上启用NAT
int f0/0
ip nat inside
int f0/1
ip nat outside
show ip nat translation #查看使用的NAT地址转换地址
边栏推荐
- 2022年理财有哪些产品?哪些适合新手?
- Year SQL audit platform
- Disk storage chain B-tree and b+ tree
- Introduction to OTA technology of Internet of things
- Chapter 3 business function development (to remember account and password)
- pip相关命令
- nest. Database for getting started with JS
- What skills can you master to be a "master tester" when doing software testing?
- 通过 Play Integrity API 的 nonce 字段提高应用安全性
- SD_DATA_RECEIVE_SHIFT_REGISTER
猜你喜欢
Year SQL audit platform
Click on the top of today's headline app to navigate in the middle
go语言的字符串类型、常量类型和容器类型
Disk storage chain B-tree and b+ tree
Nunjuks template engine
Sanxian Guidong JS game source code
Skills of embedded C language program debugging and macro use
[answer] if the app is in the foreground, the activity will not be recycled?
持续测试(CT)实战经验分享
[principle and technology of network attack and Defense] Chapter 1: Introduction
随机推荐
Chapter 1 Introduction to CRM core business
Unlike the relatively short-lived industrial chain of consumer Internet, the industrial chain of industrial Internet is quite long
Discuss | what preparations should be made before ar application is launched?
Chapter 2 build CRM project development environment (database design)
SD_DATA_RECEIVE_SHIFT_REGISTER
财富证券证券怎么开户?通过链接办理股票开户安全吗
五种网络IO模型
golang 客户端服务端登录
[OKR target management] case analysis
DataSimba推出微信小程序,DataNuza接受全场景考验? | StartDT Hackathon
万字保姆级长文——Linkedin元数据管理平台Datahub离线安装指南
Tips of the week 136: unordered containers
More than 10000 units were offline within ten days of listing, and the strength of Auchan Z6 products was highly praised
Ten thousand words nanny level long article -- offline installation guide for datahub of LinkedIn metadata management platform
保证接口数据安全的10种方案
[principle and technology of network attack and Defense] Chapter 6: Trojan horse
体总:安全有序恢复线下体育赛事,力争做到国内赛事应办尽办
debian10系统问题总结
“解密”华为机器视觉军团:华为向上,产业向前
Disk storage chain B-tree and b+ tree