Learn about NAT configuration (part 2)
In Part 1, Network Administrator introduced you to the mechanism of NAT (Network Address Translation) and some basic NAT (4 basic NAT types). In the next section, how will the Network Administrator introduce you to the NAT configuration?
Before learning about NAT configuration, learn some The term used in NAT is defined by Cisco :
- Inside local address: The IP address is assigned to a host of the local network. This is the address configured as a parameter of the computer's operating system or automatically assigned via protocols such as DHCP . This address is not valid IP addresses issued by the NIC (Network Information Center) or Internet service provider.
- Inside global address: A valid address issued by the NIC ( Network Information Center) or an intermediary service provider. This address represents one or more inside local IP addresses in communicating with the external network.
- Outside local address: As the IP address of an external network host, the internal network hosts will see the external network host through this address. Outside local is not necessarily a valid address on the IP network (it may be a Private IP address).
- Outside global address: The IP address assigned to a host belonging to the external network by the owner of that host. This address is assigned by a valid IP address on the Internet.
Learn more about the operation mechanism of NAT (Network Address Translation), refer here.
NAT can be configured in different ways. In the example below, the NAT Router is configured by compiling a private IP address (usually a Private IP: Inside local address ) into a public IP address (IP Public) . This applies when a device in a private IP address must communicate with the public IP address.
The ISP assigns a range of IP addresses . The IP address range is blocked by a valid address provided by the intermediate service provider or provided by the NIC ( Network Information Center) , also known as Inside Global Address.
Private IP address is divided into 2 different groups. A small group (Outside local address) will be used by the NAT router . The bigger group (Inside local address) is used on Stub Domain.
Address Outside local address is used to compile the unique IP address of a device on Public Network.
Most computers on the Stub Domain communicate with each other using the Inside local address. In addition, some computers on the Stub Domain can communicate with many external addresses ( Outside the network) if the computers This contains the Inside global address , which does not require address translation.
When a computer on a Stub Domain has an Inside local address that wants to communicate with an external network address (Outsie the network) , packets will be transferred to a NAT router. The NAT router checks on the Routing table to search if there is an entry address (entry) to the destination address. If any address is found, the NAT router will compile the packet and create a port for this packet on the compiled address table. If the destination address is not in the Routing Table , the packet will be discarded.
In order for the Router to send packets to the destination address, using Inside Global Address (which is a valid address issued by the NIC or an intermediate service provider. This address represents one or more IP addresses inside local. in communicating with external networks).
A computer on Public Network sends packets to Private Network. The source address in the packet is the address of Outside Global Address . The destination address is the Inside global address.
NAT router searches on the compiled address table and identifies the destination address, maps (map) to a computer on Stub Domain.
The NAT router compiles the address of the Inside Global Address of the packet to the Insdie Local Address address and sends it to the destination computer.
NAT overloading takes advantage of the TCP / IP protocol , multiplexing, allowing a computer to simultaneously maintain several connections to a computer or another remote computer using other UDP or TCP ports together. An IP packet with a header contains the following information:
- Source Address (source address) - IP address of the computer such as 201.3.83.132.
- Source Port - The TCP or UDP port number that the computer assigns to this packet, such as Port 1080.
- Destination Address - The IP address of the computer receiving the packet, for example 145.51.18.223.
- Destination Port - The port number of TCP or UDP port that the computer sends the packet requesting the receiving computer, such as Port 3021.
The port number to ensure connecting two computers together is a unique number. Each port number uses 16 bits, which means a port is worth about 65,536. In fact, different manufacturers will map ports in slightly different ways.
The next part of Network Administration will introduce Dyanamic NAT (dynamic NAT ) and Overloading NAT.
You should read it
- IP, Subnet mask, installation and configuration for 1 server
- Learn about the mechanism of NAT (Network Address Translation) (Part 1)
- Things you need to know about Private IP addresses
- What is DHCP or dynamic host configuration protocol?
- Why is Localhost's IP address 127.0.0.1?
- How does Dynamic NAT (dynamic NAT) and Overloading NAT work? (Part 3)
- Learn basic functions of network devices
- Learn 192.168.0.100 IP address for local network
May be interested
- How does Dynamic NAT (dynamic NAT) and Overloading NAT work? (Part 3)in dynamic nat, a private ip address will be mapped with a public ip address in the public ip address group. to learn more about the dynamic mechanism of dynamic nat, please refer to the article below.
- Learn about Stub Domainhow computers on the stub domain can be connected to external networks. the following article the network administrator will introduce you to the mechanism of operation on stub domain.
- Learn about NAT (Last part)the biggest benefit of nat is that network administration (network administation) is clear. for example, you can move your web server or ftp server to another host computer without worrying about broken links.
- Learn about 802.11ac standard Wifitheoretically, 802.11ac is capable of transmitting a maximum of 1.3gbits / sec (162.5 mb / sec), the traffic of an 802.11ac router twice the traffic of 802.11n routers.
- How to share data between 2 computers via LAN?normally, when you need to share data between two computers, we often choose the option of using an intermediary tool, usb or portable hard drive. in addition, you can use the internet. however, if you do not have a usb connection and the network connection fails, what should you do? do not worry. we will show you how to share data between 2 computers via lan (network system used to connect computers in a small range) in the article content below.
- How to fix Network Protocols errors are Missing on Windows?with many different solutions, users can optionally apply to network protocols are missing errors on their computers.