fbpx

How are public IPs assigned to clients?

The assignment of public IPs can be done in two ways, the first is to segment the pool of public IPs with the purpose of routing /30 segments in order to assign routed public IPs to clients, the second way is to generate a port forwarding, this will allow That the user receives the public IP, however, it will not be a public IP that can be managed by the client since it will never be received on the client's router.

Assigning public IP addresses to clients is done through several methods and can vary depending on the scale of the network, Internet Service Provider (ISP), and IP address management policies. Here is an overview of how public IPs are assigned:

1. Static Allocation

  • Direct from the ISP: In a residential or small business environment, the ISP may assign one or more static public IP addresses to the subscriber. These addresses do not change unless the ISP's network is reconfigured or the customer requests a change. The assignment is done manually, and the customer configures the static IP address on their device (router, firewall) according to the ISP's instructions.
  • In enterprise and data center environments: Companies or entities that require multiple public IP addresses can receive a block of addresses (for example, /29, /28, etc.) that they manage internally, assigning specific addresses to servers, network devices or other services that need accessibility from the outside.

2. Dynamic Allocation

  • DHCP (Dynamic Host Configuration Protocol): For ISPs that offer dynamic connections, DHCP is used to assign public IP addresses to clients automatically. When a device connects to the ISP's network, it makes a DHCP request and the ISP's DHCP server assigns it a public IP from its pool of available addresses. This address may change over time, especially if the device is disconnected and reconnected after a certain period.

3. NAT (Network Address Translation)

  • Single IP for multiple clients: With the shortage of IPv4 addresses, ISPs use NAT to allow multiple clients to share a single public IP address. In this case, clients receive private IP addresses on their devices, and the ISP uses a NAT device on its network to translate these private addresses to a public address when they access the Internet. This is common in residential settings.

4. CGNAT (Carrier-Grade NAT)

  • Large scale NAT: Similar to traditional NAT, but on a much larger scale. CGNAT is used by ISPs to assign the same public IP address to hundreds or even thousands of clients simultaneously, using specific ports to distinguish each client's traffic. This helps alleviate IPv4 address shortages but can cause problems with certain types of incoming connections or services that require port mapping.

5. IPv6

  • Mass IP assignment: With the advent of IPv6 and its virtually unlimited address space, ISPs can assign unique IPv6 addresses to all of their client devices directly, eliminating the need for NAT. Assignment can be static or dynamic, similar to IPv4, but with the flexibility to assign multiple addresses to each device if necessary.

Each of these methods has its own advantages and disadvantages, and choosing one over the other depends on the specific needs of the network, ISP policies, and technical limitations.

There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

Your email address will not be published. Required fields are marked with *

Tutorials available at MikroLABs

No Courses Found!

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

17%

all MikroTik OnLine courses

CW23-AX

30%

all Academy courses

CW23-LIB

25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

22%

all MikroTik OnLine courses

BF23-AX

35%

all Academy courses

BF23-LIB

30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011