Comparto con ustedes material CCNA 2 de la curricula de CISCO. Básicamente la información habla sobre VLSM, RIP, EIGRP y OSPF.
VLSM
Se utiliza cuando tenemos distintas mascaras de subred.
Para calcular las mascaras, debes saber cuantas IP disponibles debes tener y en que rango de mascara calza.
Ejemplo: una subred para 10 IP, necesitas la mascara 255.255.255.240, ya que esta acepta hasta 14 IP disponible + numero de red y broadcast (16 IP totales).
La siguiente es una tabla que sirve para identificar mascaras según cantidad de IP que necesites en una subred:
MASCARA | POTENCIA | TOTAL IPs | IPs DISPONIBLES | BINARIO | SUFIJO |
255.255.255.0 | 28 | 256 | 254 | 00000000 | /24 |
255.255.255.128 | 27 | 128 | 126 | 10000000 | /25 |
255.255.255.192 | 26 | 64 | 62 | 11000000 | /26 |
255.255.255.224 | 25 | 32 | 30 | 11100000 | /27 |
255.255.255.240 | 24 | 16 | 14 | 11110000 | /28 |
255.255.255.248 | 23 | 8 | 6 | 11111000 | /29 |
255.255.255.252 | 22 | 4 | 2 | 11111100 | /30 |
255.255.255.254 | 21 | 2 | NO SE UTILIZA | 11111110 | /31 |
255.255.255.255 | 20 | 1 | NO SE UTILIZA | 11111111 | /32 |
Siempre se parte calculando la subred con la mayor cantidad de hosts.
Para ingresar al router se utiliza el comando “enable”.
Configuración básica de router dentro de “configure terminal”:
UTILIZACIÓN | COMANDO | EJEMPLO |
NOMBRE ROUTER | hostname (nombre del router) | hostname ROUTER1 |
CONTRASEÑA GLOBAL EXEC | enable secret (clave) | enable secret cisco |
CONTRASEÑA LOCAL | enable password (clave) | enable password cisco |
CONTRASEÑA DE CONSOLA | line console 0 password (clave) login | line console 0 password cisco login |
CONTRASEÑA DE TELNET (VTY) | line vty 0 4 password (clave) login | line vty 0 4 password cisco login |
BANNER | banner motd #(banner)# | banner motd #ACCESO DENEGADO# |
Ingreso de datos a interfaz:
UTILIZACIÓN | COMANDO | EJEMPLO |
INGRESO INTERFAZ | interface (tipo) (numero) | interface fastethernet 0/0 |
INGRESO IP Y MASCARA | ip address (IP) (Mascara) | ip address 192.168.0.1 255.255.255.0 |
BITS RELOJ | clock rate (bits por segundo) | Clock rate 128000 |
LEVANTAR INTERFAZ | no shutdown | no shutdown |
Enrutamiento estático
En este tipo de enrutamiento se ingresan las redes que no están directamente conectadas. Esto es en ambos routers que enlazan, en pocas palabras todos con todos.
Si quiero enrutar (estatico) R1 con R3, debo incluir el enrutamiento estatico hacia R3 en R1 y viceversa.
UTILIZACIÓN | COMANDO | EJEMPLO |
INGRESAR RUTA | ip route (numero red) (mascara) (interfaz salida) | Ip route 10.10.10.10 255.255.255.0 serial 0/0/0 |
La forma mas fácil de dar salida es por medio del interfaz, también se puede hacer por intermedio del siguiente salto.
Enrutamiento estático por defecto
Se ingresa de la siguiente manera:
Ip route 0.0.0.0 0.0.0.0 (interfaz)
Enrutamiento RIP
Por lo general trabajamos con RIP versión 2, ya que acepta VLSM.
A diferencia del enrutamiento estático, RIP (y los enrutamientos dinámicos) ingresan las IP directamente conectadas.
UTILIZACIÓN | COMANDO | EJEMPLO |
INGRESAR ENRUTAMIENTO | router rip | router rip |
INGRESAR VERSION | version 2 | version 2 |
INGRESAR RED | network (IP) | network 10.10.10.10 |
QUITAR AUTOSUMARIZACION | no auto-summary | no auto-summary |
REDISTRIBUCION POR DEFECTO | default-information originate | default-information originate |
REDISTRIBUCION ESTATICA | redistribute static | redistribute static |
REDISTRIBUCION EIGRP | Redistribute eigrp (ID) metric (numero métrica) | Redistribute eigrp 100 metric 10 |
REDISTRIBUCION OSPF | redistribute ospf (ID) | redistribute ospf |
Enrutamiento EIGRP
EIGRP y OSPF utilizan la wildcard en vez de la mascara. Esto es restando la mascara de la siguiente manera:
255.255.255.255 – 255.255.255.252 = 0.0.0.3
UTILIZACIÓN | COMANDO | EJEMPLO |
INGRESAR ENRUTAMIENTO | router eigrp (ID) | router eigrp 10 |
INGRESAR RED | network (IP) (wildcard) | network 10.10.10.10 0.0.0.3 |
QUITAR AUTOSUMARIZACION | no auto-summary | no auto-summary |
REDISTRIBUCION ESTATICA | redistribute static metric (métrica) (ancho de banda) (delay) (confiabilidad) (banda ancha efectiva) (MTU) | redistribute static metric 1024 500 100 255 100 |
REDISTRIBUCION EIGRP | redistribute eigrp metric (métrica) (ancho de banda) (delay) (confiabilidad) (banda ancha efectiva) (MTU) | redistribute eigrp metric 1024 500 100 255 100 |
REDISTRIBUCION OSPF | redistribute ospf metric (métrica) (ancho de banda) (delay) (confiabilidad) (banda ancha efectiva) (MTU) | redistribute ospf metric 1024 500 100 255 100 |
Enrutamiento OSPF
UTILIZACIÓN | COMANDO | EJEMPLO |
INGRESAR ENRUTAMIENTO | router ospf (ID) | router ospf 10 |
INGRESAR RED | network (IP) (wildcard) area (numero área) | network 10.10.10.10 0.0.0.3 area 100 |
QUITAR AUTOSUMARIZACION | no auto-summary | no auto-summary |
REDISTRIBUCION ESTATICA | redistribute static metric (métrica) metric-type (tipo de métrica) subnets tag (tag) | redistribute static metric 10 metric-type 1 subnets tag 10 |
REDISTRIBUCION EIGRP | redistribute eigrp (ID) metric (métrica) metric-type (tipo de métrica) subnets tag (tag) | redistribute eigrp 10 metric 10 metric-type 1 subnets tag 10 |
REDISTRIBUCION OSPF | redistribute ospf (ID) | redistribute ospf 100 |