This paper is participating in theNetwork protocols must be known and must be known”Essay campaign

Profile: Li Bai, Huawei cloud enjoy expert, CSDN network field quality creator, gold digging creator, BOSS creator, public account [New network worker Li Bai], Huawei HCIE, the whole network fans more than 10,000. I am a blogger who loves computer science, pursues logical thinking and keeps in mind philosophy and romantic science, and is willing to share technology and happiness. The content of the blog covers network, Huawei, H3C routing and switching, network security, penetration testing and so on.

🍎 preface

IPV4 address exhaustion limits the bottleneck of network discovery. Network address translation (NAT) is used to test the problem of insufficient public addresses. Translates a private IP address into a public one.

🍏 Technical Background

  • The network used by an enterprise or court is a private network and uses a private address. (network)
  • The network maintained by the carrier is a public network and uses public addresses. (net)
  • The private address cannot be routed through the public network.
  • NAT is generally deployed on the gateway device that connects the Intranet and the Internet.

\

\

\

🍊 NAT

Network Address Translation

  • The process of converting an IP address in an IP data packet header to another IP address.
  • Effectively avoiding attacks from the external network can greatly improve network security.
  • The Intranet can access the Internet, and the Internet can access the Intranet.

  • \

🍋 NAT types

Static NAT: one-to-one address translation. One public address is reserved for only one private address.

\

Dynamic NAT: dynamic NAT based on the address pool. However, when the IP addresses are used up, you can only wait for the occupied public IP addresses

After being released, other hosts can be used.

\

NAPT: Network Address Port Translation, many-to-one Translation, mapping multiple private Network addresses to

Address multiplexing is implemented on the same public IP address.

\

Easy IP: Similar to NAPT, Easy IP translates IP addresses of public network interfaces. It is applicable to dial-up scenarios.

\

NAT Server: To access Intranet services from the Internet, set public IP address + port number.

And private IP address + port number.

\

🍒 Configuration Cases

Static NAT configuration:

\

\

Dynamic NAT and NAPT configuration:

\

\

Easy IP configuration:

\

\

NAT Server configuration:

\

🍆 Free benefits

Wechat search “new network worker Li Bai” plus concern reply “Huawei certification” free huawei HCIA tutorial 👇 👇 👇

\