Comandos básicos de red
Aprenda a utilizar herramientas esenciales de línea de comandos como `ip`, `ping`, `traceroute` y `netstat` para inspeccionar y diagnosticar la conectividad de red.
Comandos básicos de red es una lección gratuita de Linux Networking & TCP/IP for Developers en CoddyKit. Esta es la lección 2 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de Linux Networking & TCP/IP for Developers, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de Linux Networking & TCP/IP for Developers incluye 4 lecciones en total.
Partes de esta lección aún no han sido traducidas y se muestran en inglés.
Basic Network Tools Intro
Time for the command line. You'll learn ping, ip, traceroute, and netstat — the core tools for inspecting and diagnosing connectivity.
Ping: Check Host Reachability
ping is your first reachability check: it sends ICMP echo requests and times the replies, telling you if a host is up and how fast it responds.
Ping Command in Action
Just type ping plus an IP or hostname. The -c flag limits how many packets you send — run this to try it.
ping -c 4 google.comIP: The Modern Network Tool
The ip command is the modern replacement for older tools like ifconfig. It views and configures interfaces, addresses, and routes.
IP: Display Addresses
Run ip addr show (or ip a) to list every interface with its MAC, IPv4/IPv6 addresses, and state — your snapshot of what's connected.
ip addr showIP: View Routing Table
The routing table tells Linux where to send traffic. Inspect it with ip route show (or ip r) to see routes and gateways.
ip route showTraceroute: Map the Path
traceroute maps the path packets take to a host, revealing each router (hop) and its timing — great for pinpointing where delays creep in.
Traceroute in Action
traceroute sends packets with rising TTL values. Each hop decrements TTL; when it hits zero, that router replies and reveals itself.
traceroute google.comNetstat: Network Statistics
netstat shows network statistics — active connections, routing tables, and interface stats. Handy for seeing which ports are open.
Quick Check: Identify the Command
You're trying to quickly determine if your Linux machine has an internet connection by checking if a remote server is online and responding. Which command would you use?
Recap: Essential Network Tools
Recap of your toolkit: ping checks reachability, ip shows interfaces and routes, traceroute maps the path, and netstat lists connections and ports.
Preguntas frecuentes
¿La lección «Comandos básicos de red» es gratis?
Sí — el texto completo de «Comandos básicos de red» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de Linux Networking & TCP/IP for Developers, actualiza a CoddyKit PRO. El curso de Linux Networking & TCP/IP for Developers incluye 4 lecciones en total.
¿Qué aprenderé en «Comandos básicos de red»?
Aprenda a utilizar herramientas esenciales de línea de comandos como `ip`, `ping`, `traceroute` y `netstat` para inspeccionar y diagnosticar la conectividad de red. Practicas Linux Networking & TCP/IP for Developers con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.
¿Necesito experiencia previa para empezar Linux Networking & TCP/IP for Developers?
No se requiere experiencia previa. Linux Networking & TCP/IP for Developers en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 2 de 4.
¿Cuánto tiempo toma la lección «Comandos básicos de red»?
La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.
¿Puedo escribir y ejecutar código en esta lección de Linux Networking & TCP/IP for Developers?
Sí. Cada lección de Linux Networking & TCP/IP for Developers incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.
Todas las lecciones de este curso
- Fundamentos de redes en Linux
- Comandos básicos de red
- Interfaces de red e IP
- Inspección de conexiones de red y sockets