Mostrando entradas con la etiqueta Rutas. Mostrar todas las entradas
Mostrando entradas con la etiqueta Rutas. Mostrar todas las entradas

martes, 16 de noviembre de 2010

Rutas Cisco

Pequeña guía básica para enrutar caminos en un router Cisco.

Rutas estáticas

- Configurar una ruta estática (ip route)
r2>enable
Password:
r2#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
r2(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1
r2(config)#end
%SYS-5-CONFIG_I: Configured from console by console
r2#


- Ver rutas conectadas (show ip route)
R2#show 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 le
       ia - IS-IS inter area, * - candidate default, U - per-user stati
       o - ODR, P - periodic downloaded static route

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

     172.1.0.0/16 is variably subnetted, 3 subnets, 2 masks
S       172.1.0.1/32 [1/0] via 172.4.0.2
D       172.1.0.0/16 [90/297246976] via 10.10.12.25, 10:06:16, Tunnel2
S       172.1.0.3/32 [1/0] via 172.4.0.2
D    172.2.0.0/16 [90/310046976] via 10.10.12.25, 10:06:10, Tunnel2
D    172.3.0.0/16 [90/310046976] via 10.10.12.25, 10:06:14, Tunnel2
C    172.4.0.0/16 is directly connected, FastEthernet0
D    172.5.0.0/16 [90/310046976] via 10.10.12.25, 06:22:36, Tunnel2
D    172.7.0.0/16 [90/310046976] via 10.10.12.25, 00:14:59, Tunnel2
D    172.8.0.0/16 [90/310046976] via 10.10.12.25, 10:06:12, Tunnel2
Gateway of last resort is not set
…..

Rutas  Dinámicas

- Activar el protocolo de enrutamiento (route)
Router(config)# router name_of_the_IP_routing_protocol   
Router(config-router)#

- Para consultar tipos de protocolo (route ?)
r2(config)#route ?
  eigrp  Enhanced Interior Gateway Routing Protocol (EIGRP)
  ospf   Open Shortest Path First (OSPF)
  rip    Routing Information Protocol (RIP)

r2>enable
Password:
r2#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
r2(config)#route rip
r2(config-router)#network 192.168.0.1


RIP Configuration

-Opción 1:
R2(config)# router rip
R2(config-router)# network IP_network_#
R2(config-router)# version 1|2

-Opción 2:
r2(config)# interface type [slot_#/]port_#
r2(config-router)# ip rip send version 1 | version 2

- Ejemplo

r2>enable
Password:
r2#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
r2(config)#route rip
r2(config-router)#network 192.168.0.1
r2(config-router)#network 172.0.0.1
r2(config-router)#version 2
r2(config-router)#

Más comandos útiles relacionados con el post:

Clear ip route * : Vacía y reconstruye la tabla de enrutamiento, las rutas dinámicas.
show ip route : para ver la tabla de enrutamiento
no ip route : para borrar rutas estáticas.