Qué es la IP privada, NAT y puerta de enlace. Curso de redes dede 0 | Cap 2 |
Introduction to Private IP Addresses
Overview of the Course
- The speaker introduces themselves as Arroba McHossan and mentions this is the second video in a series on networking, following an introductory presentation.
Understanding Private IP Addresses
- Focus shifts to private IP addresses, contrasting them with public IP addresses discussed in the previous video. A common example of a private IP address is 192.168.1.1, typically used within home networks (LAN).
- While 192.168.x.x is commonly used for private networks, other formats exist; however, these are less frequently encountered by average users.
Public vs Private IP Addresses
- Each device connected to the internet has a unique public IP address while multiple devices at home share the same public address through private ones due to limited availability of public IP addresses.
- Historically, homes often had only one computer connected via a modem using telephone lines; thus, only one public IP was needed until the demand for more devices increased.
Transition to Private IP Addressing
- The introduction of private IP addresses arose from exhaustion of available public addresses as more devices began connecting to the internet.
- Users can request multiple public IP addresses from their Internet Service Provider (ISP), but this requires specialized routers and configurations beyond standard home setups.
How Devices Communicate Using Private and Public IP Addresses
Process of Sending Data Packets
- In a typical scenario where multiple devices use private addresses (e.g., 192.168.1.10), when one device wants to connect to Google, it creates a data packet indicating its intent and includes its own private address as the sender's address.
- The router modifies this packet by replacing the sender's private address with its own public address before sending it out to Google.
Receiving Responses from External Servers
- When Google responds, it sends data back addressed to the router’s public address; upon receipt, the router recognizes which internal device made the request based on prior records and forwards it accordingly using its original private address.
Example with Multiple Devices
Understanding NAT and Gateway in Networking
The Role of the Router in IP Address Translation
- The router receives a public IP from Facebook, which it then overwrites with its own internal IP (1.11) before sending data to a second computer. This process illustrates the complexity behind seemingly simple networking tasks.
- When a packet arrives at the router from any device (computer, smartphone), it notes the originating address and always sends outgoing packets with the same public IP, ensuring uniformity across all outgoing traffic.
- This process is known as NAT (Network Address Translation). It translates private IP addresses to public ones and vice versa, allowing devices on a local network to communicate with external networks.
- The router's function is crucial; it changes incoming packets' private IP addresses to public ones for internet communication and reverts them back when responding to requests from local devices.
Understanding Gateway Configuration
- In network configurations, "gateway" refers to the router that connects your local network to the internet. It's essential for routing traffic outside your local area.
- Typically, the gateway is set as your router's address (often 192.168.1.1 or similar). This configuration allows devices within your network to access external resources through this designated point.
How Public IP Addresses are Determined
- To connect to services like Google or Facebook, you need a public IP address composed of four numbers separated by periods. This information is obtained via DNS (Domain Name System), which will be discussed in future content.