【 Create and Configure NAT Network 】 Step by Step Guide ▷ 2022

To correctly configure a NAT network and improve the security of communication between You will have to know what this networking tool is for and what are the benefits it presents.

In the paragraphs of this article you can find the details of the advantages of using a NAT and why it is important to configure it correctly to protect the private data of your computer.

If you want to become a computer expert, you should read this post until the end because it also We will teach you step by step to create and configure a NAT from scratch.

What is NAT and what is this tool for in the network?

NAT is Network Address Translation, which is a way of mapping different local private addresses to one public address., before beginning to transfer the information. For example, if you want multiple devices to have only one you will have to use NAT. This means that if you have a computer connected to the Internet you will have to send a request to the router to access a website, which will have to communicate with the page’s server.

It will then have to receive the data and then deliver it to the computer. All this the team will do with a public IPso the outgoing IP address of private local becomes a public address that will be known to everyone. If you use NAT, the information will be returned to your computer using the public address of the router, that is, the private address of your PC will never be known.

See also  【 Configure VPN on a VPS 】 Step by Step Guide ▷ 2022

What are the benefits of using a NAT network?

use NAT It has many benefits, but it especially influences the privacy of the data on the device that connects to the web.

Also, when you use NAT you will be able to:

  • Re-use the directions private IPs.
  • Connect to various Internet servers global using a very low number of public IP addresses. This will cause IP address space to be conserved.
  • You will maintain internal IP addressing in private networks with the external network providing more security to all participants.

Learn step by step how to create and configure a NAT network from scratch

The steps you will have to do to create a NAT from scratch are:

Activate PowerShell

The first thing you will have to do is go down in your team PowerShell.

For this, you will have to follow these steps:

  • enter to the console and write Get-Host | Select-Object .
  • check that the operating system has correctly configured the execution of scripts. You can do this by clicking on Start, then on All the programs and lastly in Accessories. Next, you will have to click on Windows PowerShell and right click to choose the option Execute as an administrator.
  • Change the execution policy by typing Set-ExecutionPolicy RemoteSigned -Force.

Create the NAT network

For start a new virtual network NAT you must open the console PowerShell being administrator.

Then you must create a computer internally and execute this command:

  • CODE: New-VMSwitch -SwitchName “SwitchName” -SwitchType Internal

Next, you will look up the interface index on the communicator that you have recently created.

To speed up the process you can enter the command:

Everything you have created will have the name of vEthernet(SwitchName). In addition, in the description of its interface you will see Hyper-V Virtual Ethernet Adapter. When you are done you will have to write ifIndex to continue to the next step.

connect devices

Next, you must configure the gateway of NAT via New-NetIPAddress.

For this you will use the command:

  • CODE:New-NetIPAddress -IPAddress -PrefixLength -InterfaceIndex

Now, you will have to configure the gatewaysfor this you will need the network information.

We show you below the concepts that you will see:

  • PrefixLength: is the length over the NAT prefix which defines the local size over the subnet. The length over this subnet prefix has a value that ranges from 0 to 32. One thing to note is that normal values ​​can be anywhere from 24 to 12.
  • IP address: is the NAT gateway address which will be specified above the address either (which is the one used as the port IP address). A gateway that everyone knows is 192.168.1.1.
  • InterfaceIndex: is known as the virtual switch index which was already defined earlier. For this you have to execute the command to create the NAT gateway CODE: New-NetIPAddress -IPAddress 192.168.0.1 -PrefixLength 24 -InterfaceIndex 24.

Network settings

To start the configuration, execute the command:

  • CODE: New-NetNat -Name -InternalIPInterfaceAddressPrefix

This command includes:

  • InternalIPInterfaceAddressPrefix: is known as the NAT prefix, which describes the gateway that has been achieved before, it is also known as the prefix length and the NAT subnet above.
  • Yam: describes the name of the network on which it is used to be able to remove network NAT.

A well-known and generic format can be known as abc0/length, which is the prefix over the NAT subnet. An example will be 192.168.0.0/24.

Loading Facebook Comments ...
Loading Disqus Comments ...