Escenario par pruebas
Utilizamos dos router para crear un sistema autónomo
Configuracion R1 | Configuracion R2 |
interface Loopback10 ip address 192.168.10.1 255.255.255.252 ! interface FastEthernet0/0 ip address 192.168.1.1 255.255.255.252 speed auto ! router eigrp 10 network 192.168.1.0 0.0.0.3 network 192.168.10.0 0.0.0.3 auto-summary ! | interface Loopback20 ip address 192.168.20.1 255.255.255.252 ! interface FastEthernet0/0 ip address 192.168.1.2 255.255.255.252 speed auto ! router eigrp 10 network 192.168.1.0 0.0.0.3 network 192.168.20.0 0.0.0.3 auto-summary |
Este comando generamos una ruta por defecto hacia una red classfull, se utiliza en para establecer una ruta por defecto en una nube con enrrutamiento dinámico. Se pueden utilizar varias veces y se encoje como ruta por defecto la de la mascara menor. En EIGRP esta ruta es propagada como ruta por defecto.
R1(config)#ip default-network 192.168.10.0 |
Podemos observar la tabla de routing de los dos router , el router R1 tiene configurada la ip default-network, el router R2 aprende por EIGRP la ruta por defecto.
Router - R1 | Router - R2 |
R1#sh ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is 0.0.0.0 to network 192.168.10.0 * 192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.10.0/30 is directly connected, Loopback10 D* 192.168.10.0/24 is a summary, 01:32:34, Null0 D 192.168.20.0/24 [90/156160] via 192.168.1.2, 01:31:47, FastEthernet0/0 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.1.0/30 is directly connected, FastEthernet0/0 D 192.168.1.0/24 is a summary, 01:32:34, Null0 R1# | R2#sh ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is 192.168.1.1 to network 192.168.10.0 D* 192.168.10.0/24 [90/156160] via 192.168.1.1, 00:00:18, FastEthernet0/0 192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.20.0/30 is directly connected, Loopback20 D 192.168.20.0/24 is a summary, 01:27:32, Null0 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.1.0/30 is directly connected, FastEthernet0/0 D 192.168.1.0/24 is a summary, 01:27:32, Null0 R2# |
Comando ip route 0.0.0.0 0.0.0.0
Comando para crear una ruta estática por defecto , esta ruta es catalogada como una ruta estática en los procesos de ruteo automático.
En IGRP para propagar la ruta estática debemos inscribir la red 0.0.0.0 en el proceso autónomo.
en este ejemplo la ruta por defecto apunta a null 0
R1(config)#ip route 0.0.0.0 0.0.0.0 null 0 R1(config)#router eigrp 10 R1(config-router)#network 0.0.0.0 R1(config-router)# |
observamos la tabla de ruteo
Router - R1 | Router - R2 |
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is 0.0.0.0 to network 0.0.0.0 192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.10.0/30 is directly connected, Loopback10 D 192.168.10.0/24 is a summary, 02:45:48, Null0 D 192.168.20.0/24 [90/156160] via 192.168.1.2, 02:45:01, FastEthernet0/0 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.1.0/30 is directly connected, FastEthernet0/0 D 192.168.1.0/24 is a summary, 02:45:48, Null0 S* 0.0.0.0/0 is directly connected, Null0 R1# | Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is 192.168.1.1 to network 0.0.0.0 D 192.168.10.0/24 [90/156160] via 192.168.1.1, 00:05:54, FastEthernet0/0 192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.20.0/30 is directly connected, Loopback20 D 192.168.20.0/24 is a summary, 02:39:49, Null0 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.1.0/30 is directly connected, FastEthernet0/0 D 192.168.1.0/24 is a summary, 02:39:49, Null0 D* 0.0.0.0/0 [90/28160] via 192.168.1.1, 00:04:05, FastEthernet0/0 R2# |
Comando ip summary-address eigrp
Comando para sumarizar rutas classless , con este comando podemos crear una ruta por defecto dirigida a un router. Esta sumarizacion en EIGRP crea una ruta en el router que se configura y en el router vecino de la interfaz.
La sumarizacion en EIRP se configura sobre la interfaz.
R1(config)#interface f0/0 R1(config-if)#ip summary-address ei R1(config-if)#ip summary-address eigrp 10 0.0.0.0 0.0.0.0 R1(config-if)# |
Este comando resetea la interfaz donde se configura.
Observemos las tablas de ruteo en los router involucrados.
Router - R1 | Router - R2 |
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is 0.0.0.0 to network 0.0.0.0 192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.10.0/30 is directly connected, Loopback10 D 192.168.10.0/24 is a summary, 03:16:12, Null0 D 192.168.20.0/24 [90/156160] via 192.168.1.2, 00:02:10, FastEthernet0/0 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.1.0/30 is directly connected, FastEthernet0/0 D 192.168.1.0/24 is a summary, 03:16:12, Null0 D* 0.0.0.0/0 is a summary, 00:02:18, Null0 R1# | Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is 192.168.1.1 to network 0.0.0.0 192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.20.0/30 is directly connected, Loopback20 D 192.168.20.0/24 is a summary, 03:08:07, Null0 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.1.0/30 is directly connected, FastEthernet0/0 D 192.168.1.0/24 is a summary, 03:08:07, Null0 D* 0.0.0.0/0 [90/30720] via 192.168.1.1, 00:01:33, FastEthernet0/0 R2# |
Seudotags:
Rutas EIGRP, ruta por defecto EIGRP, Sumarizar en EIGRP.
Muchisimas gracias por la claridad, me ha sido de mucha ayuda. Excelente.
ResponderBorrar