当前位置:网站首页>Hcia-r & s self use notes (25) NAT technical background, NAT type and configuration
Hcia-r & s self use notes (25) NAT technical background, NAT type and configuration
2022-07-29 05:38:00 【Master basket ladle Xiao Lu】
NAT Technical background (7/27,29min)


There will be no private network route in the router of the operator ( mention MPLS VPN)

Broadband / The difference between wireless router and carrier router
A terminal will make the router produce a lot of NAT Convert information
NAT Type and configuration (7/27,86min)
static state NAT

If the operator assigns me five public network addresses ? Can I configure five addresses on one interface ?( Just use the address pool )
static state NAT To configure :
| command | remarks |
| nat static enable | Turn on static NAT function |
| nat static global x.x.x.x( Male )inside 192.168.1.1 | Create static NAT |
| display nat static | View static NAT To configure |
Be careful , static state NAT For one-on-one , A private address corresponds to a public address , It is mostly used for server mapping .
dynamic NAT

The characteristic is the need etc.
dynamic NAT And PAT To configure :
| command | remarks |
| nat address-group 1 x.x.x.x x.x.x.x.y | To configure NAT Address pool , The range can be set (0-7) |
| nat outbound acl 2000 address group 1 | It's related to a ACL With a ACL Address pool ; ACL Used to match the source address that needs to be converted ( This is the case PAT Pattern ) |
| nat outbound acl 2000 address group 1 no-pat | ditto , This is a normal dynamic NAT Pattern |
| display nat address-group | see NAT Address pool configuration information |
| display nat outbound | See what's going on NAT Configuration information |
| display nat session all | Check out the router NAT The mapping table |
dynamic NAT Under the circumstances , Even a terminal once ping All use a public address
PAT/NAT-PT/NAPT

Usually suitable for large enterprise networks ( Applied for multiple fixed public networks IP)
Every time of different terminals ping when ID(New IcmpID) Dissimilarity , And others include TCP/UDP The message port number of is also different
Easy IP/SNAT( Source NAT)

Do not create an address pool (PAT You need to create an address pool ), Directly associate the interface
Easy IP To configure :
| command | remarks |
| int GigabitEthernet 0/0/1 | |
| nat outbound acl 2000 | Associate the outbound interface with ACL |
NAT The server /DANT

When an Internet user accesses an intranet server ,NAT Server By pre configured “ Public network IP Address + Port number ” And “ The private network IP Address + Port number ” The mapping relationship between , Will server's “ Public network IP Address + Port number ” According to the mapping relationship, replace it with correspondence to get “ The private network IP Address + Port number ”
NAT Server configuration :
| command | remarks |
( Interface view ) nat server protocol tcp/udp global x.x.x.x/Gigabitethernet 0/0/x 3333 inside 192.168.1.1 80 | To configure NAT The server ( Internet user access x.x.x.x:3333 when , Actually visit 192.168.1.1:80) |
| display nat server | verification NAT The server |
There are two ways for the external network to access the internal network :
Port mapping /NAT The server ( Publish services to the Internet )、VPN( More secure )

R1 Interface configuration for :
#
interface GigabitEthernet0/0/0
ip address 192.168.0.254 255.255.255.0
dhcp select interface
#
interface GigabitEthernet0/0/1
ip address 12.0.0.1 255.255.255.0
traffic-filter outbound acl 2000
nat server protocol tcp global 12.0.0.10 8888 inside 192.168.0.100 www
// Be careful , This is not an interface address
nat outbound 2000
#Other addresses are configured as above , here HTTP client (2.0.0.20) You can access Server1

边栏推荐
- TXT 纯文本操作
- HCIA-R&S自用笔记(27)综合实验
- 第三课threejs全景预览房间案例
- [C language series] - realize the exchange of two numbers without creating the third variable
- Detailed explanation of exit interrupt
- 【TypeScript】TypeScript中类型缩小(含类型保护)与类型谓词
- Storage category
- 第一周总结
- Application of Huffman tree and Huffman coding in file compression
- paddle.fluild常量计算报错‘NoneType‘ object has no attribute ‘get_fetch_list‘
猜你喜欢

ClickHouse学习(七)表查询优化

B - identify floating point constant problems

Realize simple database query (incomplete)

ClickHouse学习(六)语法优化

Clickhouse learning (V) cluster operation

table中同一列中合并相同项

ClickHouse学习(二)ClickHouse单机安装

Clickhouse learning (x) monitoring operation indicators

ClickHouse学习(四)SQL操作
![[C language series] - storage of deep anatomical data in memory (II) - floating point type](/img/a4/126d9f8e812d8f69b4249eac837bf6.png)
[C language series] - storage of deep anatomical data in memory (II) - floating point type
随机推荐
解决表单校验提示信息不消失问题以及赋值不生效问题
Clickhouse learning (IX) Clickhouse integrating MySQL
力扣994:腐烂的橘子(BFS)
How does the MD editor of CSDN input superscripts and subscripts? The input method of formula and non formula is different
省市区三级联动(简单又完美)
paddle.fluild常量计算报错‘NoneType‘ object has no attribute ‘get_fetch_list‘
Day 1
重绘与回流的关系
[C language series] - three methods to simulate the implementation of strlen library functions
虚拟增强与现实第二篇 (我是一只火鸟)
用sql-client.sh生成的job在cancle过后 如何实现断点续传?
·Let's introduce ourselves to the way of programming·
js深拷贝-笔记
Global components component registration
【C语言系列】— 不创造第三个变量,实现两个数的交换
【TypeScript】深入学习TypeScript函数
Allocate memory: malloc() and free()
【C语言系列】— 一道递归小题目
paddle. Fluid constant calculation error 'nonetype' object has no attribute 'get_ fetch_ list‘
[C language series] - realize the exchange of two numbers without creating the third variable