当前位置:网站首页>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

边栏推荐
- Alibaba cloud Zhang Xintao: heterogeneous computing provides surging power for the digital economy
- 小程序中的DOM对象元素块动态排序
- Terminal shell common commands
- The function of using wechat applet to scan code to log in to the PC web of the system
- Detailed explanation of typical application code of C language array - master enters by mistake (step-by-step code explanation)
- Common shortcut keys for Ad
- 数据库操作 Day 6
- Wechat applet video upload component is directly uploaded to Alibaba cloud OSS
- HCIA-R&S自用笔记(24)ACL
- Longest string without duplicate characters
猜你喜欢

About local variables

AR虚拟增强与现实

Basic concepts of MySQL + database system structure + extended application + basic command learning

Clickhouse learning (XI) clickhouseapi operation

Provincial and urban three-level linkage (simple and perfect)

ClickHouse学习(二)ClickHouse单机安装

ClickHouse学习(六)语法优化

Clickhouse learning (x) monitoring operation indicators
![[C language series] - realize the exchange of two numbers without creating the third variable](/img/7c/468000bcbf740c9dd3535f2734728a.png)
[C language series] - realize the exchange of two numbers without creating the third variable

Installation steps and environment configuration of vs Code
随机推荐
js简单代码判断打开页面的设备是电脑PC端或手机H5端或微信端
Day 5
ClickHouse学习(一)ClickHouse?
paddle.fluild常量计算报错‘NoneType‘ object has no attribute ‘get_fetch_list‘
Clickhouse learning (VIII) materialized view
C language file operation
Introduction to array learning simple question sum of two numbers
Best practices for elastic computing in the game industry
uniapp组件之选择选项(如套餐选择)
Question swiping Madness - leetcode's sword finger offer58 - ii Detailed explanation of left rotation string
力扣994:腐烂的橘子(BFS)
弹性盒子相关知识
Detailed installation and use tutorial of MySQL (nanny installation with pictures and texts)
[C language series] - constants and variables that confuse students
ClickHouse学习(十)监控运行指标
微信小程序-屏幕高度
Day 2
ClickHouse学习(七)表查询优化
Abstract classes and interfaces
HCIA-R&S自用笔记(27)综合实验