Vous êtes sur la page 1sur 16

CCNP 1 segunda

Redistribucion y control de ruta. ............................................................................................... 2


BGP ........................................................................................................................................... 8

@ NMT 2011

CCNP 1 segunda

Redistribucion y control de ruta.

Configurar EIGRP y OSPF como muestra la figura. Deshabilitar la sumarizacin automtica donde
corresponda. R1 y R2 deben formar dos sesiones EIGRP a travs de la serial y fastethernet.
Los routers OSPF R2 y R3 deben utilizar su loopback0 como ID. No publicar los enlaces dentro proceso
OSPF.
R1 debe publicar las redes 100.1.0.0/24 a 100.1.7.0/24 y su loopback0.
R3 no debe instalar la direccin IP secundaria que R2 est publicando (FastEthernet0/1).

R1
router eigrp 1
network 100.1.0.0 0.0.0.255
network 100.1.1.0 0.0.0.255
network 100.1.2.0 0.0.0.255
network 100.1.3.0 0.0.0.255
network 100.1.4.0 0.0.0.255
network 100.1.5.0 0.0.0.255
network 100.1.6.0 0.0.0.255
network 100.1.7.0 0.0.0.255
network 172.16.12.0 0.0.0.255
network 10.1.12.0 0.0.0.255
network 10.1.1.1 0.0.0.0
no auto-summary

@ NMT 2011

CCNP 1 segunda

R2
router eigrp 1
network 10.1.12.0 0.0.0.255
network 172.16.12.0 0.0.0.255
no auto-summary
router ospf 1
router-id 10.2.2.2
interface FastEthernet0/1
ip ospf network point-to-point
ip ospf 1 area 0 secondaries none
R3
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface Loopback0
ip ospf 1 area 0
R2#show ip ospf interface fastEthernet 0/1 | include excluding
Enabled by interface config, excluding secondary ip addresses
R2#sh ip route eigrp | begin Ga
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 8 subnets, 2 masks
D
10.1.1.1/32 [90/156160] via 10.1.12.1, 00:00:28, FastEthernet0/0
100.0.0.0/24 is subnetted, 8 subnets
D
100.1.0.0 [90/156160] via 10.1.12.1, 00:10:48, FastEthernet0/0
D
100.1.1.0 [90/156160] via 10.1.12.1, 00:10:48, FastEthernet0/0
D
100.1.2.0 [90/156160] via 10.1.12.1, 00:10:48, FastEthernet0/0
D
100.1.3.0 [90/156160] via 10.1.12.1, 00:10:48, FastEthernet0/0
D
100.1.4.0 [90/156160] via 10.1.12.1, 00:10:48, FastEthernet0/0
D
100.1.5.0 [90/156160] via 10.1.12.1, 00:10:48, FastEthernet0/0
D
100.1.6.0 [90/156160] via 10.1.12.1, 00:10:48, FastEthernet0/0
D
100.1.7.0 [90/156160] via 10.1.12.1, 00:10:47, FastEthernet0/0
R2#show ip eigrp neighbors
EIGRP-IPv4 Neighbors for AS(1)
H Address
Interface
Hold Uptime SRTT RTO Q Seq
(sec)
(ms)
Cnt Num
1 172.16.12.1
Se1/0
13 00:01:24 121 726 0 6
0 10.1.12.1
Fa0/0
12 00:13:36 1053 5000 0 5

R2 debe bloquear las subredes 100.1.4.0/24 a 100.1.7.0/24.Utilizar distribute-list.

R2
access-list 10 deny 100.1.4.0 0.0.3.255
access-list 10 permit any
router eigrp 1
distribute-list 10 in FastEthernet0/0
distribute-list 10 in Serial1/0

@ NMT 2011

CCNP 1 segunda

R2#clear ip eigrp 1 neighbors


R2#
*Jan 12 12:24:26.947: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor 10.1.12.1 (FastEthernet0/0) is down:
manually cleared
*Jan 12 12:24:27.019: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor 172.16.12.1 (Serial1/0) is down:
manually cleared
R2#
*Jan 12 12:24:28.299: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor 172.16.12.1 (Serial1/0) is up: new
adjacency
*Jan 12 12:24:29.179: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor 10.1.12.1 (FastEthernet0/0) is up: new
adjacency
R2#sh ip route eigrp | begin Gat
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 8 subnets, 2 masks
D
10.1.1.1/32 [90/156160] via 10.1.12.1, 00:00:28, FastEthernet0/0
100.0.0.0/24 is subnetted, 4 subnets
D
100.1.0.0 [90/156160] via 10.1.12.1, 00:00:34, FastEthernet0/0
D
100.1.1.0 [90/156160] via 10.1.12.1, 00:00:34, FastEthernet0/0
D
100.1.2.0 [90/156160] via 10.1.12.1, 00:00:34, FastEthernet0/0
D
100.1.3.0 [90/156160] via 10.1.12.1, 00:00:34, FastEthernet0/0

En R1 redistribuir el rango de subredes 100.1.45.0/24 -100.1.47.0/24. Utilizar dos lneas prefix-list junto con
un route-map para la redistribucin. Estos prefijos deben tener asociado la etiqueta (TAG) 11.

R1
ip prefix-list NETS permit 100.1.44.0/16 ge 22
route-map REDIST permit 10
match ip address prefix-list NETS
router eigrp 1
redistribute connected metric 10000 10 255 1 1500 route-map REDIST
R2#sh ip route eigrp | include EX
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
D EX 100.1.45.0 [170/261120] via 10.1.12.1, 00:03:20, FastEthernet0/0
D EX 100.1.46.0 [170/261120] via 10.1.12.1, 00:03:20, FastEthernet0/0
D EX 100.1.47.0 [170/261120] via 10.1.12.1, 00:03:20, FastEthernet0/0
R2#show ip eigrp topology | include tag
P 100.1.46.0/24, 1 successors, FD is 261120, tag is 11
P 100.1.45.0/24, 1 successors, FD is 261120, tag is 11
P 100.1.47.0/24, 1 successors, FD is 261120, tag is 11

@ NMT 2011

CCNP 1 segunda

En R2 redistribuir mutuamente (EIGRP<->OSPF).


Las redes 100.1.0.0/24 a 100.1.3.0/24 deben ser redistribuidas con la etiqueta 3, tipo E1 y mtrica 50.
Las redes 100.1.45.0/24 a 100.1.47.0/24, mtrica 100. Tipo externa por defecto (E2). No usar ni ACLs ni
prefix-list.
El resto de las redes deben ser redistribuidas con valores por defecto

R2
router eigrp 1
redistribute ospf 1 metric 1000 100 255 1 1500
R2#show access-lists
Standard IP access list 10
10 deny 100.1.4.0, wildcard bits 0.0.3.255 (12 matches)
20 permit any (11 matches)
R2
access-list 20 permit 100.1.0.0 0.0.3.255
route-map REDISTRIBUIDAS permit 10
match ip address 20
set metric 50
set metric-type type-1
set tag 3
route-map REDISTRIBUIDAS permit 20
match tag 11
set metric 100
set metric-type type-2
route-map REDISTRIBUIDAS permit 30
router ospf 1
redistribute eigrp 1 subnets route-map REDISTRIBUIDAS
R3#sh ip route ospf | begin Gate
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
O E2 10.1.1.1/32 [110/20] via 10.1.23.2, 00:00:03, FastEthernet0/0
O E2 10.1.12.0/24 [110/20] via 10.1.23.2, 00:00:03, FastEthernet0/0
100.0.0.0/24 is subnetted, 7 subnets
O E1 100.1.0.0 [110/51] via 10.1.23.2, 00:05:50, FastEthernet0/0
O E1 100.1.1.0 [110/51] via 10.1.23.2, 00:05:50, FastEthernet0/0
O E1 100.1.2.0 [110/51] via 10.1.23.2, 00:05:50, FastEthernet0/0
O E1 100.1.3.0 [110/51] via 10.1.23.2, 00:05:50, FastEthernet0/0
O E2 100.1.45.0 [110/100] via 10.1.23.2, 00:00:13, FastEthernet0/0
O E2 100.1.46.0 [110/100] via 10.1.23.2, 00:00:13, FastEthernet0/0
O E2 100.1.47.0 [110/100] via 10.1.23.2, 00:00:13, FastEthernet0/0
172.16.0.0/24 is subnetted, 1 subnets
O E2 172.16.12.0 [110/20] via 10.1.23.2, 00:00:03, FastEthernet0/0

@ NMT 2011

CCNP 1 segunda

R3#show ip ospf database | begin Type-5 AS


Type-5 AS External Link States
Link ID
10.1.1.1
10.1.12.0
100.1.0.0
100.1.1.0
100.1.2.0
100.1.3.0
100.1.45.0
100.1.46.0
100.1.47.0
172.16.12.0

ADV Router Age


10.2.2.2
207
10.2.2.2
207
10.2.2.2
558
10.2.2.2
558
10.2.2.2
558
10.2.2.2
558
10.2.2.2
217
10.2.2.2
217
10.2.2.2
217
10.2.2.2
207

Seq#
Checksum Tag
0x80000001 0x00BFC3 0
0x80000001 0x005029 0
0x80000001 0x001E6C 3
0x80000001 0x001376 3
0x80000001 0x000880 3
0x80000001 0x00FC8A 3
0x80000002 0x00356C 11
0x80000002 0x002A76 11
0x80000002 0x001F80 11
0x80000001 0x00596E 0

PBR

En R2 publicar en EIGRP 1 la red 10.2.2.2/32.


Configure R1 de manera que el trfico originado desde las subred 100.1.1.0/24 destino 10.2.2.2 utilice el
enlace serial 1/0 y el trfico que se origine desde la la subred 100.1.2.0/24 utilice el next-hop 10.1.12.2 (a
travs de la fatethernet).

R2
router eigrp 1
network 10.2.2.2 0.0.0.0
R1#sh ip route eigrp | begin Gateway
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
D EX 10.1.23.0/24 [170/2588160] via 10.1.12.2, 00:16:50, FastEthernet0/0
D
10.2.2.2/32 [90/156160] via 10.1.12.2, 00:00:27, FastEthernet0/0
R1#show access-lists
R1#
R1
access-list 100 permit ip 100.1.1.0 0.0.0.255 10.2.2.2 0.0.0.0
access-list 10 permit 100.1.2.0 0.0.0.255
route-map PBR permit 10
match ip address 100
set interface Serial1/0
route-map PBR permit 20
match ip address 10
set ip next-hop 10.1.12.2
ip local policy route-map PBR

@ NMT 2011

CCNP 1 segunda

R1#debug ip policy
Policy routing debugging is on
R1#ping 10.2.2.2 source 100.1.1.1 repeat 1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 10.2.2.2, timeout is 2 seconds:
Packet sent with a source address of 100.1.1.1
!
Success rate is 100 percent (1/1), round-trip min/avg/max = 88/88/88 ms
R1#
*Jan 12 13:45:37.191: IP: s=100.1.1.1 (local), d=10.2.2.2, len 100, policy match
*Jan 12 13:45:37.195: IP: route map PBR, item 10, permit
*Jan 12 13:45:37.199: IP: s=100.1.1.1 (local), d=10.2.2.2 (Serial1/0), len 100, policy routed
*Jan 12 13:45:37.203: IP: local to Serial1/0 10.2.2.2
R1#ping 10.2.2.2 source 100.1.2.1 repeat 1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 10.2.2.2, timeout is 2 seconds:
Packet sent with a source address of 100.1.2.1
!
Success rate is 100 percent (1/1), round-trip min/avg/max = 52/52/52 ms
R1#
*Jan 12 13:48:15.275: IP: s=100.1.2.1 (local), d=10.2.2.2, len 100, policy match
*Jan 12 13:48:15.279: IP: route map PBR, item 20, permit
*Jan 12 13:48:15.279: IP: s=100.1.2.1 (local), d=10.2.2.2 (FastEthernet0/0), len 100, policy routed
*Jan 12 13:48:15.283: IP: local to FastEthernet0/0 10.1.12.2

@ NMT 2011

CCNP 1 segunda

BGP

Formar sesion IBGP entre peers R1 y R3 utilizando loopback0 como update-source para el AS1 como
muestra la figura. R2 no participa de BGP.

Nota: Comprobar que ambas loopbacks tienen conectividad.


R1#sh ip route eigrp
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 8 subnets, 2 masks
D EX 10.1.23.0/24 [170/2588160] via 10.1.12.2, 00:37:03, FastEthernet0/0
D
10.2.2.2/32 [90/156160] via 10.1.12.2, 00:20:40, FastEthernet0/0
D EX 10.3.3.3/32 [170/2588160] via 10.1.12.2, 00:00:16, FastEthernet0/0
R1#ping 10.3.3.3 source 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.3.3.3, timeout is 2 seconds:
Packet sent with a source address of 10.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 68/94/124 ms
R1
router bgp 1
neighbor 10.3.3.3 remote-as 1
neighbor 10.3.3.3 update-source Loopback0

@ NMT 2011

CCNP 1 segunda

R3
router bgp 1
neighbor 10.1.1.1 remote-as 1
neighbor 10.1.1.1 update-source Loopback0
R1#show ip bgp summary
BGP router identifier 100.1.0.1, local AS number 1
BGP table version is 1, main routing table version 1
Neighbor
10.3.3.3

V
4

AS MsgRcvd MsgSent TblVer InQ OutQ


1
2
2
1
0 0

Up/Down State/PfxRcd
00:00:05
0

Formar sesion EBGP entre AS1 y AS2. En R4 utilizar peer-group con nombre AS1 para la configuracin. R4
debe utilizar su loopback0 como ID BGP.

R1
router bgp 1
neighbor 10.1.14.4 remote-as 2
R3
router bgp 1
neighbor 10.1.34.4 remote-as 2
R4
router bgp 2
bgp router-id 10.4.4.4
neighbor 10.1.14.1 peer-group AS1
neighbor 10.1.34.3 peer-group AS1
no auto-summary
R4#show ip bgp summary
BGP router identifier 10.4.4.4, local AS number 2
BGP table version is 1, main routing table version 1
Neighbor
V
AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.1.14.1
4
1 15 20
1 0 0 00:11:02
0
10.1.34.3
4
1 16 18
1 0 0 00:10:55
0

Publicar la red 191.168.1.0/24 en R1 y R3

R1
router bgp 1
network 191.168.1.0 mask 255.255.255.0
R3
router bgp 1
network 191.168.1.0 mask 255.255.255.0

@ NMT 2011

CCNP 1 segunda

R4#show ip bgp
R4#show ip bgp
BGP table version is 2, local router ID is 10.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
* 191.168.1.0/24
*>

Next Hop
10.1.34.3
10.1.14.1
0

Metric LocPrf Weight Path


0
1i
0
1i

R4 debe acceder a la red 191.168.1.0/24 a travs de R3. Configurar MED. R1 debe enviar una mtrica de
111 a R4 para la red 191.168.1.0/24. R3 debe enviar una mtrica de 33 a R4 para la red 191.168.1.0/24.
Utilizar el route-map MED en conjunto con una instancia de prefix-list llamada PREF-191.

R1
ip prefix-list PREF-191 permit 191.168.1.0/24
route-map MED permit 10
match ip address prefix-list PREF-191
set metric 111
route-map MED permit 20
router bgp 1
neighbor 10.1.14.4 route-map MED out
R3
ip prefix-list PREF-191 permit 191.168.1.0/24
route-map MED permit 10
match ip address prefix-list PREF-191
set metric 33
route-map MED permit 20
router bgp 1
neighbor 10.1.34.4 route-map MED out
R4#clear ip bgp * soft
R4#show ip bgp
BGP table version is 4, local router ID is 10.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
*> 191.168.1.0/24 10.1.34.3
33
*
10.1.14.1
111

Metric LocPrf Weight Path


0 1i
0 1i

@ NMT 2011

10

CCNP 1 segunda

En R4 crear y publicar la loopback200 en BGP los siguiente prefijos:


200.1.1.1/28
200.1.1.17/28
200.1.1.33/28
200.1.1.49/28
200.1.1.65/28
200.1.1.81/28
200.1.1.97/28
200.1.1.113/28
200.1.1.129/28
Estos prefijos deben aparecer en la tabla BGP como alcanzable desde todos los ASBR de AS1.
La subred 200.1.1.64/28 debe pertenecer a la comunidad 2:1. En R1, por ejemplo, debemos tener la siguiente
salida:

R1#show ip bgp 200.1.1.64


BGP routing table entry for 200.1.1.64/28, version 16
Paths: (2 available, best #2, table default)
Advertised to update-groups:
6
2
10.3.3.3 (metric 2588160) from 10.3.3.3 (10.3.3.3)
Origin IGP, metric 0, localpref 100, valid, internal
Community: 2:1
2
10.1.14.4 from 10.1.14.4 (10.4.4.4)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: 2:1
R1
router bgp 1
neighbor 10.3.3.3 next-hop-self
neighbor 10.3.3.3 send-community
R3
router bgp 1
neighbor 10.1.1.1 next-hop-self
neighbor 10.1.1.1 send-community
R4
interface Loopback200
ip address 200.1.1.17 255.255.255.240 secondary
ip address 200.1.1.33 255.255.255.240 secondary
ip address 200.1.1.49 255.255.255.240 secondary
ip address 200.1.1.65 255.255.255.240 secondary
ip address 200.1.1.81 255.255.255.240 secondary
ip address 200.1.1.97 255.255.255.240 secondary
ip address 200.1.1.113 255.255.255.240 secondary
ip address 200.1.1.129 255.255.255.240 secondary
ip address 200.1.1.1 255.255.255.240
ip bgp-community new-format
route-map COM permit 10
set community 2:1

@ NMT 2011

11

CCNP 1 segunda

router bgp 2
network 200.1.1.0 mask 255.255.255.240
network 200.1.1.16 mask 255.255.255.240
network 200.1.1.32 mask 255.255.255.240
network 200.1.1.48 mask 255.255.255.240
network 200.1.1.64 mask 255.255.255.240 route-map COM
network 200.1.1.80 mask 255.255.255.240
network 200.1.1.96 mask 255.255.255.240
network 200.1.1.112 mask 255.255.255.240
network 200.1.1.128 mask 255.255.255.240
R3#show ip bgp 200.1.1.64
BGP routing table entry for 200.1.1.64/28, version 18
Paths: (2 available, best #2, table default)
Advertised to update-groups:
6
2
10.1.1.1 (metric 20) from 10.1.1.1 (100.1.0.1)
Origin IGP, metric 0, localpref 100, valid, internal
Community: 131073
2
10.1.34.4 from 10.1.34.4 (10.4.4.4)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: 131073
R3#show ip bgp neighbors 10.1.34.4 received-routes
BGP table version is 18, local router ID is 10.3.3.3
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
*> 200.1.1.0/28 10.1.34.4
*> 200.1.1.16/28 10.1.34.4
*> 200.1.1.32/28 10.1.34.4
*> 200.1.1.48/28 10.1.34.4
*> 200.1.1.64/28 10.1.34.4
*> 200.1.1.80/28 10.1.34.4
*> 200.1.1.96/28 10.1.34.4
*> 200.1.1.112/28 10.1.34.4
*> 200.1.1.128/28 10.1.34.4

Metric LocPrf Weight Path


0
02i
0
02i
0
02i
0
02i
0
02i
0
02i
0
02i
0
02i
0
02i

Total number of prefixes 9

Sumarizar en R4 el rango de redes 200.1.1.0/24 200.1.1.96/24.


En R1 debe aparecer la siguiente salida:
R3#show ip bgp 200.1.1.0 255.255.255.128
BGP routing table entry for 200.1.1.0/25, version 53
Paths: (2 available, best #2, table default)
Advertised to update-groups:
6
2, (aggregated by 2 10.4.4.4)
10.1.1.1 (metric 20) from 10.1.1.1 (100.1.0.1)
Origin IGP, metric 0, localpref 100, valid, internal
Community: 2:1
2, (aggregated by 2 10.4.4.4), (received & used)
@ NMT 2011

12

CCNP 1 segunda

10.1.34.4 from 10.1.34.4 (10.4.4.4)


Origin IGP, metric 0, localpref 100, valid, external, best
Community: 2:1
R4
router bgp 2
aggregate-address 200.1.1.0 255.255.255.128 as-set
R1#show ip bgp 200.1.1.0 255.255.255.128
BGP routing table entry for 200.1.1.0/25, version 51
Paths: (2 available, best #2, table default)
Advertised to update-groups:
6
2, (aggregated by 2 10.4.4.4)
10.3.3.3 (metric 2588160) from 10.3.3.3 (10.3.3.3)
Origin IGP, metric 0, localpref 100, valid, internal
Community: 2:1
2, (aggregated by 2 10.4.4.4)
10.1.14.4 from 10.1.14.4 (10.4.4.4)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: 2:1
R1#show ip bgp neighbors 10.1.14.4 received-routes
BGP table version is 51, local router ID is 100.1.0.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
*> 200.1.1.0/28 10.1.14.4
*> 200.1.1.0/25 10.1.14.4
*> 200.1.1.16/28 10.1.14.4
*> 200.1.1.32/28 10.1.14.4
*> 200.1.1.48/28 10.1.14.4
*> 200.1.1.64/28 10.1.14.4
*> 200.1.1.80/28 10.1.14.4
*> 200.1.1.96/28 10.1.14.4
*> 200.1.1.112/28 10.1.14.4
*> 200.1.1.128/28 10.1.14.4

Metric LocPrf Weight Path


0
02i
0
02i
0
02i
0
02i
0
02i
0
02i
0
02i
0
02i
0
02i
0
02i

Total number of prefixes 10

AS1 debe acceder a la sumarizacion publicada por R4 a travs de R3, para los prefijos ms especficos AS1
debe utilizar a R1 como punto de salida. Modificar la Local Preference con valores a su eleccin. No es
necesario que exista NLRI.

R1#show access-lists
Standard IP access list 10
10 permit 100.1.2.0, wildcard bits 0.0.0.255 (1 match)
Extended IP access list 100
10 permit ip 100.1.1.0 0.0.0.255 host 10.2.2.2

@ NMT 2011

13

CCNP 1 segunda

R1
ip prefix-list RESUMEN-AS2 permit 200.1.1.0/25
route-map LOCAL permit 10
match ip address prefix-list RESUMEN-AS2
set local-preference 101
route-map LOCAL permit 20
set local-preference 1011
router bgp 1
neighbor 10.1.14.4 route-map LOCAL in
R3
ip prefix-list RESUMEN-AS2 permit 200.1.1.0/25
route-map LOCAL permit 10
match ip address prefix-list RESUMEN-AS2
set local-preference 300
router bgp 1
neighbor 10.1.34.4 route-map LOCAL in
R3#show ip bgp
BGP table version is 84, local router ID is 10.3.3.3
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
*> 191.168.1.0/24 0.0.0.0
0
32768 i
*i
10.1.1.1
0 100 0 i
*>i200.1.1.0/28 10.1.1.1
0 1011 0 2 i
*> 200.1.1.0/25 10.1.34.4
0 300 0 2 i
*>i200.1.1.16/28 10.1.1.1
0 1011 0 2 i
*>i200.1.1.32/28 10.1.1.1
0 1011 0 2 i
*>i200.1.1.48/28 10.1.1.1
0 1011 0 2 i
*>i200.1.1.64/28 10.1.1.1
0 1011 0 2 i
*>i200.1.1.80/28 10.1.1.1
0 1011 0 2 i
*>i200.1.1.96/28 10.1.1.1
0 1011 0 2 i
*>i200.1.1.112/28 10.1.1.1
0 1011 0 2 i
*>i200.1.1.128/28 10.1.1.1
0 1011
02i
R1#show ip bgp
BGP table version is 120, local router ID is 100.1.0.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
* i191.168.1.0/24 10.3.3.3
*>
0.0.0.0
*> 200.1.1.0/28 10.1.14.4
*>i200.1.1.0/25 10.3.3.3
*
10.1.14.4
*> 200.1.1.16/28 10.1.14.4
*> 200.1.1.32/28 10.1.14.4
*> 200.1.1.48/28 10.1.14.4
*> 200.1.1.64/28 10.1.14.4

Metric LocPrf Weight Path


0 100 0 i
0
32768 i
0 1011 0 2 i
0 300 0 2 i
0 101 0 2 i
0 1011 0 2 i
0 1011 0 2 i
0 1011 0 2 i
0 1011 0 2 i
@ NMT 2011

14

CCNP 1 segunda

*> 200.1.1.80/28
*> 200.1.1.96/28
*> 200.1.1.112/28
*> 200.1.1.128/28

10.1.14.4
10.1.14.4
10.1.14.4
10.1.14.4

0
0
0
0

1011
1011
1011
1011

02i
02i
02i
02i

Publicar loopback0 en BGP de R1; este prefijo no deben ser publicado a AS2, utilizar atributo comunidad
para este propsito.
Publicar loopback0 en BGP de R3; este IDs puede ser publicado en AS1, AS2 y a cualquier AS. utilizar
atributo comunidad para este propsito.

Nota: Las comunidades no se envan por defecto.


R1
ip prefix-list LOOP seq 5 permit 10.1.1.1/32
route-map NO-EXPORT permit 10
match ip address prefix-list LOOP
set community no-export
router bgp 1
network 10.1.1.1 mask 255.255.255.255 route-map NO-EXPORT
neighbor 10.1.14.4 send-community
R3
ip prefix-list LOOP seq 5 permit 10.3.3.3/32
route-map INTERNET permit 10
match ip address prefix-list LOOP
set community internet
router bgp 1
network 10.3.3.3 mask 255.255.255.255 route-map INTERNET
neighbor 10.1.34.4 send-community
R3#show ip bgp 10.1.1.1
BGP routing table entry for 10.1.1.1/32, version 86
Paths: (1 available, best #1, table default, not advertised to EBGP peer, RIB-failure(17))
Not advertised to any peer
Local
10.1.1.1 (metric 20) from 10.1.1.1 (100.1.0.1)
Origin IGP, metric 0, localpref 100, valid, internal, best
Community: no-export
R1#show ip bgp 10.3.3.3
BGP routing table entry for 10.3.3.3/32, version 123
Paths: (1 available, best #1, table default, RIB-failure(17))
Flag: 0x820
Advertised to update-groups:
7
Local, (received & used)
10.3.3.3 (metric 2588160) from 10.3.3.3 (10.3.3.3)
Origin IGP, metric 0, localpref 100, valid, internal, best
Community: internet

@ NMT 2011

15

CCNP 1 segunda

R4#show ip bgp 10.1.1.1


% Network not in table
R4#show ip bgp 10.3.3.3
BGP routing table entry for 10.3.3.3/32, version 45
Paths: (2 available, best #2, table default)
Advertised to update-groups:
3
1
10.1.14.1 from 10.1.14.1 (100.1.0.1)
Origin IGP, localpref 100, valid, external
Community: internet
1
10.1.34.3 from 10.1.34.3 (10.3.3.3)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: internet

@ NMT 2011

16

Vous aimerez peut-être aussi