Sie sind auf Seite 1von 6

network 10.14.0.0 mask 255.255.255.

network 10.35.0.0 mask 255.255.255.0

neighbor 10.14.0.1 remote-as 100

neighbor 172.16.46.6 remote-as 200

neighbor 172.16.46.6 weight 200  Solo le pusimos un peso.

no auto-summary

ip forward-protocol nd

--More--

Le vamos a quitar esa configuración:

Vamos hacer una prefix-list para que nada mas la 2.2.2.2 prefiera un peso de 200 y todas las
demás se quedan igual.

R4(config)#router bgp 100

R4(config-router)#no neighbor 172.16.46.6 weight 200

R4(config-router)#do clear ip bgp * in

R4(config-router)#do clear ip bgp * out

R4(config-router)#do show ip bgp

BGP table version is 26, local router ID is 4.4.4.4

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

r RIB-failure, S Stale

Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path

*> 1.1.1.1/32 10.14.0.1 409600 32768 i

* 2.2.2.2/32 172.16.46.6 412160 0 200 i

*>i 172.16.32.2 0 100 0 200 i

* i3.3.3.3/32 10.13.0.2 0 100 0i

*> 10.14.0.1 2323456 32768 i


*> 4.4.4.4/32 0.0.0.0 0 32768 i

* i5.5.5.5/32 10.35.0.5 409600 100 0i

*> 10.14.0.1 2349056 32768 i

*> 6.6.6.6/32 172.16.46.6 0 0 200 i

*> 7.7.7.7/32 172.16.46.6 409600 0 200 i

* i10.13.0.0/30 10.13.0.2 0 100 0i

*> 10.14.0.1 2195456 32768 i

*> 10.14.0.0/24 0.0.0.0 0 32768 i

* i10.35.0.0/24 10.13.0.2 0 100 0i

*> 10.14.0.1 2221056 32768 i

* 192.168.27.0 172.16.46.6 284160 0 200 i

*>i 172.16.32.2 0 100 0 200 i

R4(config-router)#exit

R4(config)#ip pre

R4(config)#ip prefix-list ?

WORD Name of a prefix list

sequence-number Include/exclude sequence numbers in NVGEN

R4(config)#ip prefix-list LOOPBACKR2

R4(config)#ip prefix-list LOOPBACKR2 per

R4(config)#ip prefix-list LOOPBACKR2 permit 2.2.2.2/32

R4(config)#rout

R4(config)#route-m

R4(config)#route-map WIGHT permit 10

R4(config-route-map)#match ip pre

R4(config-route-map)#match ip ad

R4(config-route-map)#match ip address pre

R4(config-route-map)#match ip address prefix-list LOOPBACKR2

R4(config-route-map)#set we

R4(config-route-map)#set weight 199


R4(config-route-map)#rout

R4(config-route-map)#route-m

R4(config-route-map)#route-map WIGHT permit 10000

R4(config-route-map)#do show run | begin router

router eigrp 10

passive-interface FastEthernet0/1

network 4.4.4.4 0.0.0.0

network 10.14.0.4 0.0.0.0

network 172.16.46.4 0.0.0.0

no auto-summary

router bgp 100

no synchronization

bgp log-neighbor-changes

network 1.1.1.1 mask 255.255.255.255

network 3.3.3.3 mask 255.255.255.255

network 4.4.4.4 mask 255.255.255.255

network 5.5.5.5 mask 255.255.255.255

network 10.13.0.0 mask 255.255.255.252

network 10.14.0.0 mask 255.255.255.0

network 10.35.0.0 mask 255.255.255.0

neighbor 10.14.0.1 remote-as 100

neighbor 172.16.46.6 remote-as 200

no auto-summary

ip forward-protocol nd

no ip http server

no ip http secure-server

!
!

ip prefix-list LOOPBACKR2 seq 5 permit 2.2.2.2/32

no cdp log mismatch duplex

route-map WIGHT permit 10

match ip address prefix-list LOOPBACKR2

set weight 199

route-map WIGHT permit 10000

control-plane

line con 0

exec-timeout 0 0

privilege level 15

logging synchronous

line aux 0
exec-timeout 0 0

privilege level 15

logging synchronous

line vty 0 4

login

end

R4(config-route-map)#router bgp 100

R4(config-router)#neighbor 172.16.46.6 route

R4(config-router)#neighbor 172.16.46.6 route-m

R4(config-router)#neighbor 172.16.46.6 route-map WIGHT in  El trafico debe de ser de


entrada para decirle como va enviar el trafico de salida. in

R4(config-router)#do show ip bgp

BGP table version is 26, local router ID is 4.4.4.4

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

r RIB-failure, S Stale

Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path

*> 1.1.1.1/32 10.14.0.1 409600 32768 i

* 2.2.2.2/32 172.16.46.6 412160 0 200 i

*>i 172.16.32.2 0 100 0 200 i

* i3.3.3.3/32 10.13.0.2 0 100 0i

*> 10.14.0.1 2323456 32768 i

*> 4.4.4.4/32 0.0.0.0 0 32768 i

* i5.5.5.5/32 10.35.0.5 409600 100 0i

*> 10.14.0.1 2349056 32768 i

*> 6.6.6.6/32 172.16.46.6 0 0 200 i


*> 7.7.7.7/32 172.16.46.6 409600 0 200 i

* i10.13.0.0/30 10.13.0.2 0 100 0i

*> 10.14.0.1 2195456 32768 i

*> 10.14.0.0/24 0.0.0.0 0 32768 i

* i10.35.0.0/24 10.13.0.2 0 100 0i

*> 10.14.0.1 2221056 32768 i

* 192.168.27.0 172.16.46.6 284160 0 200 i

*>i 172.16.32.2 0 100 0 200 i

*> 192.168.67.0 172.16.46.6 0 0 200 i

R4(config-router)#

R4(config-router)#

R4(config-router)#

R4(config-router)#do clear ip bgp * in  Para limpiar la configuración de la ruta.

R4(config-router)#do show ip bgp

BGP table version is 27, local router ID is 4.4.4.4

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

r RIB-failure, S Stale

Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path

*> 1.1.1.1/32 10.14.0.1 409600 32768 i

*> 2.2.2.2/32 172.16.46.6 412160 199 200 I  vemos que ahora a cambiado a
199 lo cual significa que tomará ésta ruta

*i 172.16.32.2 0 100 0 200 i

* i3.3.3.3/32 10.13.0.2 0 100 0i

*> 10.14.0.1 2323456 32768 i

*> 4.4.4.4/32 0.0.0.0 0 32768 i

* i5.5.5.5/32 10.35.0.5 409600 100 0i

*> 10.14.0.1 2349056 32768 i

*> 6.6.6.6/32 172.16.46.6 0 0 200 i

Das könnte Ihnen auch gefallen