Está en la página 1de 17

Optimización de Rutas

Rafael Medina
Mardones

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 1


Distancia Administrativa

La distancia administrativa de los diferentes protocolos de


enrutamiento es la siguiente:

Protocolo Distancia administrativa


Directamente conectados 0
Ruta estática 1
Ruta EIGRP resumen 5
BGP externa 20
EIGRP interna 90
IGRP 100
OSPF 110
IS-IS 115
RIP 120
EGP 140
ODR 160
EIGRP externa 170
BGP interna 200
Desconocida 255

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 2


Distancia Administrativa

• En caso de que un router haya aprendido una misma red por


medio de dos o mas protocolos de enrutamiento siempre
preferirá la ruta de menor distancia administrativa.

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 3


Distancia Administrativa

• En el ejemplo anterior se preferirá siempre la ruta aprendida


por EIGRP

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 4


Distancia Administrativa

• Pero si modificamos la distancia administrativa de OSPF

• La ruta preferida será OSPF

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 5


Interfaces Pasivas

• Un interfaz pasiva opera de diferentes formas según el protocolo de


enrutamiento que se este utilizando:
– En RIP la interfaz solo recibe paquetes de actualización.
– En protocolos como EIGRP y OSPF la interfaz deja de enviar los
paquetes HELLO y con ello NO se pueden efectuar las
adyacencias.

• Para configurar una interfaz pasiva el comando es:

Router(config)#router <protocol> <AS_number | Process_ID>


Router(config-router)#passive-interface <interfaz>

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 6


Listas de Distribución

• El comando DISTRIBUTE-LIST nos sirve para “elegir” las actualizaciones de enrutamiento


que serán enviadas o recibidas.

• El comando DISTRIBUTE-LIST puede filtrar cualquier ruta de actualización tanto de salida


como de entrada, de forma global o en una interfaz en particular (depende del protocolo).

• Previamente debemos crear una lista de control de acceso estándar, que defina los
objetivos que queremos cumplir. Luego con el comando DISTRIBUTE-LIST apuntamos o
hacemos referencia a dicha lista de control de acceso.

• Es muy importante especificar la interfaz física donde se aplicara el “route filter” de lo


contrario el filtro se aplicara a todas la interfaces.

• Cuando aplicamos una DISTRIBUTE-LIST de salida en OSPF se omite la opción de


especificar la interfaz, entonces la aplicamos en configuración global.

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 7


Listas de Distribución

Esto ocultara la red 10.0.0.0

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 8


Listas de Distribución

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 9


Listas de Distribución

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 10


Route-Map

•El comando ROUTE-MAP es utilizado para políticas de enrutamiento.

•Cada instrucción del ROUTE-MAP debe poseer un número de secuencia.


Si no se especifica un numero de secuencia, entonces por defecto el
primer ROUTE-MAP tendrá 10, es segundo ROUTE-MAP 20 y así
sucesivamente.
•Después de “teclear” correctamente el comando route map, entonces
entramos al modo de configuración de route-map donde tenemos una
lista de comandos match y set asociados con el route-map.
•El comando MATCH especifica el criterio de verificación que usaremos
en el route-map.

•El comando SET especifica las acciones que tomaremos.

Router(config)#route-map <map-tag> [permit | deny] <sequence_number>


Router(config)#match ip address <ACL_number>
Router(config)#set interface <intefaz>

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 11


Route-Map

router(config)#
route-map map-tag [permit | deny] [sequence-number]

router(config-route-map)#
match {conditions}

router(config-route-map)#
set {actions}

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 12


Route-Map

· Comandos Match:
Command Description
match community Matches a BGP community
Matches any routes that have the next hop out of one
match interface
of the interfaces specified
Matches any routes that have a destination network
match ip address number address that is permitted by a standard or
extended ACL
Matches any routes that have a next-hop router
match ip next-hop
address that is passed by one of the ACLs specified
Matches routes that have been advertised by routers
match ip route-
and access servers at the address that is specified by
source
the ACLs
match length Matches based on the layer 3 length of a packet
match metric Matches routes with the metric specified
match route-type Matches routes of the specified type
match tag Matches tag of a route

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 13


Route-Map
· Comandos set:
Command Description

set as-path Modifies an AS path for BGP routes

set automatic-tag Computes automatically the tag value

set community Sets the BGP communities attribute


Indicates where to output packets that pass a match clause of a route map
set default interface
for policy routing and have no explicit route to the destination
Indicates where to output packets that pass a match clause of a route map
set interface
for policy routing
Indicates where to output packets that pass a match clause of a route map
set ip default next-hop for policy routing and for which the Cisco IOS software has no explicit route
to a destination
Indicates where to output packets that pass a match clause of a route map
set ip next-hop
for policy routing
set level Indicates where to import routes for IS-IS and OSPF
set local-preference Specifies a BGP local preference value
set metric Sets the metric value for a routing protocol
set metric-type Sets the metric type for the destination routing protocol
set tag Sets tag value for destination routing protocol
set weight Specifies the BGP weight value

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 14


Route-Map

Ejemplo route-map para filtrado de trafico ICMP

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 15


Route-Map
· Pero si configuramos un route-map y luego lo aplicamos a una interfaz.

© 2006 Cisco Systems, Inc. All rights reserved. Cisco 16

También podría gustarte