Вы находитесь на странице: 1из 6

#show ip route bgp

2.0.0.0/32 is subnetted, 1 subnets

B 2.2.2.2 [200/0] via 172.16.32.2, 00:20:53

B 192.168.27.0/24 [200/0] via 172.16.32.2, 00:20:53

6.0.0.0/32 is subnetted, 1 subnets

B 6.6.6.6 [20/0] via 172.16.46.6, 00:20:08

7.0.0.0/32 is subnetted, 1 subnets

B 7.7.7.7 [20/409600] via 172.16.46.6, 00:20:08

B 192.168.67.0/24 [20/0] via 172.16.46.6, 00:20:08

R4#show ip bgp

BGP table version is 16, 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  Vemos que tiene por prioridad la ruta
172.16.32.2

* 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  prioridad de ruta

Network Next Hop Metric LocPrf Weight Path

*> 192.168.67.0 172.16.46.6 0 0 200 i

R4#

R4(config-router)#do show ip bgp 2.2.2.2

BGP routing table entry for 2.2.2.2/32, version 10

Paths: (2 available, best #2, table Default-IP-Routing-Table)

Advertised to update-groups:

200

172.16.46.6 from 172.16.46.6 (6.6.6.6)

Origin IGP, metric 412160, localpref 100, valid, external

200

172.16.32.2 (metric 2707456) from 10.14.0.1 (1.1.1.1)

Origin IGP, metric 0, localpref 100, valid, internal, best

Originator: 3.3.3.3, Cluster list: 1.1.1.1

R4(config-router)#

Lo que haremos ahora es:

R4(config)#router bgp 100

R4(config-router)#neig

R4(config-router)#neighbor 172.16.46.6 we

R4(config-router)#neighbor 172.16.46.6 weight 200  Le asignamos está ruta con weight para
que la elija como mejor peso.

R4(config-router)#do show ip bgp

BGP table version is 16, 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)#do clear ip bgp * in

R4(config-router)#do show ip bgp

BGP table version is 21, 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 200 200 I  Vemos que la prioridad es é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 200 200 i

*> 7.7.7.7/32 172.16.46.6 409600 200 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 200 200 i

*i 172.16.32.2 0 100 0 200 i

*> 192.168.67.0 172.16.46.6 0 200 200 i

R4(config-router)#do trace 2.2.2.2

Type escape sequence to abort.

Tracing the route to 2.2.2.2

1 172.16.46.6 260 msec 244 msec 232 msec

2 192.168.67.7 [AS 200] 396 msec 448 msec 352 msec

3 192.168.27.2 [AS 200] 660 msec 580 msec 640 msec

R4(config-router)#do trace 192.168.27.2

Type escape sequence to abort.

Tracing the route to 192.168.27.2

1 172.16.46.6 152 msec 124 msec 188 msec

2 192.168.67.7 [AS 200] 352 msec 208 msec 264 msec

3 192.168.27.2 [AS 200] 548 msec 380 msec 596 msec


R4(config-router)#

Nos vamos al router R1:

R1#show ip bgp

BGP table version is 26, local router ID is 1.1.1.1

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

r>i1.1.1.1/32 10.14.0.4 409600 100 0 I  Vemos que estan todos en 0 ya que


tienen significancia local

ri 10.13.0.2 2297856 100 0i

* i2.2.2.2/32 172.16.46.6 412160 100 0 200 i

*>i 172.16.32.2 0 100 0 200 i

r i3.3.3.3/32 10.14.0.4 2323456 100 0i

r>i 10.13.0.2 0 100 0i

r>i4.4.4.4/32 10.14.0.4 0 100 0i

ri 10.13.0.2 2323456 100 0i

r i5.5.5.5/32 10.14.0.4 2349056 100 0i

r>i 10.35.0.5 409600 100 0i

*>i6.6.6.6/32 172.16.46.6 0 100 0 200 i

*>i7.7.7.7/32 172.16.46.6 409600 100 0 200 i

*i 172.16.32.2 409600 100 0 200 i

r i10.13.0.0/30 10.14.0.4 2195456 100 0i

r>i 10.13.0.2 0 100 0i

r>i10.14.0.0/24 10.14.0.4 0 100 0i

ri 10.13.0.2 2195456 100 0i

r i10.35.0.0/24 10.14.0.4 2221056 100 0i

r>i 10.13.0.2 0 100 0i

* i192.168.27.0 172.16.46.6 284160 100 0 200 i

*>i 172.16.32.2 0 100 0 200 i


*>i192.168.67.0 172.16.46.6 0 100 0 200 i

R1#

R4(config)#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

Вам также может понравиться