Sunteți pe pagina 1din 16

LAB 6.

3
Configuring IBGP and EBGP Sessions, Local Preference and MED

2006 Cisco Systems, Inc. All rights reserved.

Cisco

Topologa y Atributos

next-hop-self local-preference

med (mtrica)
2006 Cisco Systems, Inc. All rights reserved.

Cisco

Atributo MED (Multiple Exit Discriminator)


Comando set metric xxx Caractersticas Opcional: No necesitan ser soportados por el proceso BGP No transitivo: Los routers no los anunciarn Cdigo 4 Valor por defecto 0 Prefiere el valor MENOR!!!!

detalle

indica a los peers EBGP el path preferido para entrar en el AS.


2006 Cisco Systems, Inc. All rights reserved.

Cisco

Atributo local-preference
Comando set local-preference xxx Caractersticas Es un atributo discrecional, bien conocido. Valor por defecto 100 Prefiere el valor MAYOR!!!!

indica a los peers IBGP cual es el camino para salir del AS local.
2006 Cisco Systems, Inc. All rights reserved.

Cisco

Atributo next-hop-self
Comando neighbor X.X.X.X next-hop-self

Routers IBGP conectados con otros routers IBGP del mismo sistema autonomo NO pueden hablar con routers de otro AS. Entonces Necesitaremos configurar el keyword next-hop-self.

2006 Cisco Systems, Inc. All rights reserved.

Cisco

Solucin del Laboratorio


PASO 1: PASO 2: Direccionamiento IP

Configurar EIGRP

(config)#router eigrp 64512 (config-router)#no auto-summary (config-router)#network 172.16.0.0

PASO 3:

Configurar IBGP

SanJose1(config)#router bgp 64512 SanJose1(config-router)#neighbor 172.16.32.1 remote-as 64512 SanJose1(config-router)#neighbor 172.16.32.1 update-source lo0

2006 Cisco Systems, Inc. All rights reserved.

Cisco

Solucin del Laboratorio


PASO 3: Configurar IBGP

SanJose2(config)#router bgp 64512 SanJose2(config-router)#neighbor 172.16.64.1 remote-as 64512

SanJose2(config-router)#neighbor 172.16.64.1 update-source lo0

PASO 4:

verificar vecinos BGP

show ip bgp neighbors

2006 Cisco Systems, Inc. All rights reserved.

Cisco

Solucin del Laboratorio


PASO 5: Configurar EBGP

ISP(config)#router bgp 200 ISP(config-router)#neighbor 192.168.1.6 remote-as 64512 ISP(config-router)#neighbor 192.168.1.2 remote-as 64512 ISP(config-router)#network 192.168.100.0 SanJose1(config)#ip route 172.16.0.0 255.255.0.0 null0 SanJose1(config)#router bgp 64512 SanJose1(config-router)#neighbor 192.168.1.5 remote-as 200 SanJose1(config-router)#network 172.16.0.0 SanJose2(config)#ip route 172.16.0.0 255.255.0.0 null0 SanJose2(config)#router bgp 64512 SanJose2(config-router)#neighbor 192.168.1.1 remote-as 200 SanJose2(config-router)#network 172.16.0.0
Cisco

2006 Cisco Systems, Inc. All rights reserved.

Solucin del Laboratorio


PASO 6: verificar vecinos BGP

show ip bgp summary

2006 Cisco Systems, Inc. All rights reserved.

Cisco

Solucin del Laboratorio


PASO 7: verificar conectividad

2006 Cisco Systems, Inc. All rights reserved.

Cisco

10

Solucin del Laboratorio


PASO 8: next-hop_Self

ISP(config)#router bgp 200 ISP(config-router)#network 192.168.1.0 mask 255.255.255.252 ISP(config-router)#network 192.168.1.4 mask 255.255.255.252

SanJose1(config)#router bgp 64512 SanJose1(config-router)#neighbor 172.16.32.1 next-hop-self

SanJose2(config)#router bgp 64512 SanJose2(config-router)#neighbor 172.16.64.1 next-hop-self

2006 Cisco Systems, Inc. All rights reserved.

Cisco

11

Solucin del Laboratorio


PASO 9: Configurar Local Preference

SanJose1(config)#route-map PRIMARY_T1_IN permit 10 SanJose1(config-route-map)#set local-preference 150 SanJose1(config-route-map)#exit SanJose1(config)#router bgp 64512 SanJose1(config-router)#neighbor 192.168.1.5 route-map PRIMARY_T1_IN in

SanJose2(config)#route-map SECONDARY_T1_IN permit 10 SanJose2(config-route-map)#set local-preference 125 SanJose2(config-route-map)#router bgp 64512 SanJose2(config-router)#neighbor 192.168.1.1 route-map SECONDARY_T1_IN in

2006 Cisco Systems, Inc. All rights reserved.

Cisco

12

Solucin del Laboratorio


PASO 10: Configurar MED

SanJose1(config)#route-map PRIMARY_T1_MED_OUT permit 10 SanJose1(config-route-map)#set Metric 50 SanJose1(config-route-map)#exit SanJose1(config)#router bgp 64512 SanJose1(config-router)#neighbor 192.168.1.5 route-map PRIMARY_T1_MED_OUT out

SanJose2(config)#route-map SECONDARY_T1_MED_OUT permit 10


SanJose2(config-route-map)#set Metric 75 SanJose2(config-route-map)#exit SanJose2(config)#router bgp 64512 SanJose2(config-router)#neighbor 192.168.1.1 route-map SECONDARY_T1_MED_OUT out

2006 Cisco Systems, Inc. All rights reserved.

Cisco

13

Solucin del Laboratorio


PASO 11: Establecer una Red por Defecto

SanJose1(config)#ip default-network 192.168.100.0

SanJose2(config)#ip default-network 192.168.100.0

2006 Cisco Systems, Inc. All rights reserved.

Cisco

14

Solucin del Laboratorio


PASO 12: Comprobar nueva configuracin

2006 Cisco Systems, Inc. All rights reserved.

Cisco

15

S-ar putea să vă placă și