Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure NAT

2025-04-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

Today, the editor will share with you the relevant knowledge about how to configure NAT. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.

Why use NAT?

What are the benefits of using NAT?

In fact, the function of NAT is very simple to achieve internal and external address translation, can also be summarized into the following three points:

1: save internal IP address

2: hide the real internal network topology

3: load balancing can be realized.

There are several concepts we need to understand before configuring NAT:

Inside local address: the address used by the internal device, which is a private address

Global address: the address provided by ISP for internal and external communication

Classification of NAT:

1: static NA: (Snat)

2: dynamic NAT (Dnat)

Overload of 3:NAT (overload)

Basic configuration of NAT

Define internal and external interfaces

Interface interface_number

Ip nat inside | outside

Static NAT configuration

Ip nat inside source static local_address_ip global_address_ip

Ip nat inside source static 192.168.1.152 202.136.23.65

Dynamic NAT configuration

Define an address pool

Ip nat pool pool_name ip netmask

Ip nat pool translations_pool 61.159.62.130 255.255.255.192

Define the list of external access allowed in the internal network

Access-list list_number permit source_ip wildcard_mask

Access-list 1 permit 192.168.1.0 0.0.0.255

Configure dynamic NAT

Ip nat inside source list list_number pool pool_name

Ip nat inside source list 1 pool translations_pool

Dynamic NAT overload

Define an address pool

Ip nat pool pool_name ip netmask

Ip nat pool translations_pool 61.159.62.130 255.255.255.192

Define the list of external access allowed in the internal network

Access-list list_number permit source_ip wildcard_mask

Access-list 1 permit 192.168.1.0 0.0.0.255

Configure dynamic NAT overload

Ip nat inside source list list_number pool pool_name

Ip nat inside source list 1 pool translations_pool overload

TCP load balancing based on NAT

Define an inside global address for TCP load

Access-list list_number permit ip

Define an address pool

Ip nat pool pool_name ip ip netmask type rotary

Configure TCP load

Ip nat inside destination list list_number pool pool_name

Access-list 1 permit 202.136.23.2

Ip nat pool sever_pool_addree 172.16.0.1 172.16.0.4 netmask 255.255.255.0 type rotary

Ip nat inside destination list 1 pool server_pool_address

After the configuration is complete, when data is generated, we can use the

Show ip nat translations View NAT address Translation Table

These are all the contents of this article "how to configure NAT". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report