26
CCNP 1 segunda Redistribucion y control de ruta.............................2 BGP.......................................................... 7 @ NMT 2011 1

Prueba 2 CCNP1 DESARROLLO

  • Upload
    jedim24

  • View
    161

  • Download
    15

Embed Size (px)

Citation preview

Page 1: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

Redistribucion y control de ruta.................................................................................................2BGP............................................................................................................................................7

@ NMT 2011 1

Page 2: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

Redistribucion y control de ruta. Configurar EIGRP y OSPF como muestra la figura. Deshabilitar la sumarización

automática donde corresponda. R1 y R2 deben formar dos sesiones EIGRP a través 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 dirección IP secundaria que R2 está publicando

(FastEthernet0/1).

R1router eigrp 1network 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

@ NMT 2011 2

Page 3: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

no auto-summary

@ NMT 2011 3

Page 4: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

R2router 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

R3interface 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 GaGateway of last resort is not set 10.0.0.0/8 is variably subnetted, 8 subnets, 2 masksD 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 subnetsD 100.1.0.0 [90/156160] via 10.1.12.1, 00:10:48, FastEthernet0/0D 100.1.1.0 [90/156160] via 10.1.12.1, 00:10:48, FastEthernet0/0D 100.1.2.0 [90/156160] via 10.1.12.1, 00:10:48, FastEthernet0/0D 100.1.3.0 [90/156160] via 10.1.12.1, 00:10:48, FastEthernet0/0D 100.1.4.0 [90/156160] via 10.1.12.1, 00:10:48, FastEthernet0/0D 100.1.5.0 [90/156160] via 10.1.12.1, 00:10:48, FastEthernet0/0D 100.1.6.0 [90/156160] via 10.1.12.1, 00:10:48, FastEthernet0/0D 100.1.7.0 [90/156160] via 10.1.12.1, 00:10:47, FastEthernet0/0

R2#show ip eigrp neighborsEIGRP-IPv4 Neighbors for AS(1)H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num1 172.16.12.1 Se1/0 13 00:01:24 121 726 0 60 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.

R2access-list 10 deny 100.1.4.0 0.0.3.255access-list 10 permit any

router eigrp 1 distribute-list 10 in FastEthernet0/0 distribute-list 10 in Serial1/0

@ NMT 2011 4

Page 5: Prueba 2 CCNP1 DESARROLLO

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 clearedR2#*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 GatGateway of last resort is not set 10.0.0.0/8 is variably subnetted, 8 subnets, 2 masksD 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 subnetsD 100.1.0.0 [90/156160] via 10.1.12.1, 00:00:34, FastEthernet0/0D 100.1.1.0 [90/156160] via 10.1.12.1, 00:00:34, FastEthernet0/0D 100.1.2.0 [90/156160] via 10.1.12.1, 00:00:34, FastEthernet0/0D 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 líneas prefix-list junto con un route-map para la redistribución. Estos prefijos deben tener asociado la etiqueta (TAG) 11.

R1ip 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 areaD EX 100.1.45.0 [170/261120] via 10.1.12.1, 00:03:20, FastEthernet0/0D EX 100.1.46.0 [170/261120] via 10.1.12.1, 00:03:20, FastEthernet0/0D EX 100.1.47.0 [170/261120] via 10.1.12.1, 00:03:20, FastEthernet0/0

R2#show ip eigrp topology | include tagP 100.1.46.0/24, 1 successors, FD is 261120, tag is 11P 100.1.45.0/24, 1 successors, FD is 261120, tag is 11P 100.1.47.0/24, 1 successors, FD is 261120, tag is 11

@ NMT 2011 5

Page 6: Prueba 2 CCNP1 DESARROLLO

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 métrica 50. Las redes 100.1.45.0/24 a 100.1.47.0/24, métrica 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

R2router eigrp 1 redistribute ospf 1 metric 1000 100 255 1 1500

R2#show access-listsStandard IP access list 10 10 deny 100.1.4.0, wildcard bits 0.0.3.255 (12 matches) 20 permit any (11 matches)

R2access-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 30router ospf 1 redistribute eigrp 1 subnets route-map REDISTRIBUIDAS

R3#sh ip route ospf | begin GateGateway of last resort is not set

10.0.0.0/8 is variably subnetted, 7 subnets, 2 masksO E2 10.1.1.1/32 [110/20] via 10.1.23.2, 00:00:03, FastEthernet0/0O 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 subnetsO E1 100.1.0.0 [110/51] via 10.1.23.2, 00:05:50, FastEthernet0/0O E1 100.1.1.0 [110/51] via 10.1.23.2, 00:05:50, FastEthernet0/0O E1 100.1.2.0 [110/51] via 10.1.23.2, 00:05:50, FastEthernet0/0O E1 100.1.3.0 [110/51] via 10.1.23.2, 00:05:50, FastEthernet0/0O E2 100.1.45.0 [110/100] via 10.1.23.2, 00:00:13, FastEthernet0/0O E2 100.1.46.0 [110/100] via 10.1.23.2, 00:00:13, FastEthernet0/0O 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 subnetsO E2 172.16.12.0 [110/20] via 10.1.23.2, 00:00:03, FastEthernet0/0

@ NMT 2011 6

Page 7: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

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

Link ID ADV Router Age Seq# Checksum Tag10.1.1.1 10.2.2.2 207 0x80000001 0x00BFC3 010.1.12.0 10.2.2.2 207 0x80000001 0x005029 0100.1.0.0 10.2.2.2 558 0x80000001 0x001E6C 3100.1.1.0 10.2.2.2 558 0x80000001 0x001376 3100.1.2.0 10.2.2.2 558 0x80000001 0x000880 3100.1.3.0 10.2.2.2 558 0x80000001 0x00FC8A 3100.1.45.0 10.2.2.2 217 0x80000002 0x00356C 11100.1.46.0 10.2.2.2 217 0x80000002 0x002A76 11100.1.47.0 10.2.2.2 217 0x80000002 0x001F80 11172.16.12.0 10.2.2.2 207 0x80000001 0x00596E 0

PBR En R2 publicar en EIGRP 1 la red 10.2.2.2/32. Configure R1 de manera que el tráfico originado desde las subred 100.1.1.0/24

destino 10.2.2.2 utilice el enlace serial 1/0 y el tráfico que se origine desde la la subred 100.1.2.0/24 utilice el next-hop 10.1.12.2 (a través de la fatethernet).

R2router eigrp 1 network 10.2.2.2 0.0.0.0

R1#sh ip route eigrp | begin GatewayGateway of last resort is not set 10.0.0.0/8 is variably subnetted, 7 subnets, 2 masksD EX 10.1.23.0/24 [170/2588160] via 10.1.12.2, 00:16:50, FastEthernet0/0D 10.2.2.2/32 [90/156160] via 10.1.12.2, 00:00:27, FastEthernet0/0

R1#show access-lists

R1#

R1access-list 100 permit ip 100.1.1.0 0.0.0.255 10.2.2.2 0.0.0.0access-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 7

Page 8: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

R1#debug ip policyPolicy 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 msR1#*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 1Type 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 msR1#*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 8

Page 9: Prueba 2 CCNP1 DESARROLLO

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 eigrpGateway of last resort is not set 10.0.0.0/8 is variably subnetted, 8 subnets, 2 masksD EX 10.1.23.0/24 [170/2588160] via 10.1.12.2, 00:37:03, FastEthernet0/0D 10.2.2.2/32 [90/156160] via 10.1.12.2, 00:20:40, FastEthernet0/0D 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.1Type 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

R1router bgp 1 neighbor 10.3.3.3 remote-as 1 neighbor 10.3.3.3 update-source Loopback0

@ NMT 2011 9

Page 10: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

@ NMT 2011 10

Page 11: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

R3router bgp 1 neighbor 10.1.1.1 remote-as 1 neighbor 10.1.1.1 update-source Loopback0

R1#show ip bgp summaryBGP router identifier 100.1.0.1, local AS number 1BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd10.3.3.3 4 1 2 2 1 0 0 00:00:05 0

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

R1router bgp 1 neighbor 10.1.14.4 remote-as 2

R3router bgp 1 neighbor 10.1.34.4 remote-as 2

R4router 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 summaryBGP router identifier 10.4.4.4, local AS number 2BGP table version is 1, main routing table version 1Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd10.1.14.1 4 1 15 20 1 0 0 00:11:02 010.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

R1router bgp 1 network 191.168.1.0 mask 255.255.255.0

R3router bgp 1 network 191.168.1.0 mask 255.255.255.0

@ NMT 2011 11

Page 12: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

R4#show ip bgpR4#show ip bgpBGP table version is 2, local router ID is 10.4.4.4Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path* 191.168.1.0/24 10.1.34.3 0 1 i*> 10.1.14.1 0 0 1 i

R4 debe acceder a la red 191.168.1.0/24 a través de R3. Configurar MED. R1 debe enviar una métrica de 111 a R4 para la red 191.168.1.0/24. R3 debe enviar una métrica 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.

R1ip 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

R3ip 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 bgpBGP table version is 4, local router ID is 10.4.4.4Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path*> 191.168.1.0/24 10.1.34.3 33 0 1 i* 10.1.14.1 111 0 1 i

@ NMT 2011 12

Page 13: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

En R4 crear y publicar la loopback200 en BGP los siguiente prefijos:200.1.1.1/28200.1.1.17/28200.1.1.33/28200.1.1.49/28200.1.1.65/28200.1.1.81/28200.1.1.97/28200.1.1.113/28200.1.1.129/28Estos 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.64BGP routing table entry for 200.1.1.64/28, version 16Paths: (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

R1router bgp 1 neighbor 10.3.3.3 next-hop-self neighbor 10.3.3.3 send-community

R3router bgp 1 neighbor 10.1.1.1 next-hop-self neighbor 10.1.1.1 send-community

R4interface 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 13

Page 14: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

router bgp 2network 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.64BGP routing table entry for 200.1.1.64/28, version 18Paths: (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-routesBGP table version is 18, local router ID is 10.3.3.3Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path*> 200.1.1.0/28 10.1.34.4 0 0 2 i*> 200.1.1.16/28 10.1.34.4 0 0 2 i*> 200.1.1.32/28 10.1.34.4 0 0 2 i*> 200.1.1.48/28 10.1.34.4 0 0 2 i*> 200.1.1.64/28 10.1.34.4 0 0 2 i*> 200.1.1.80/28 10.1.34.4 0 0 2 i*> 200.1.1.96/28 10.1.34.4 0 0 2 i*> 200.1.1.112/28 10.1.34.4 0 0 2 i*> 200.1.1.128/28 10.1.34.4 0 0 2 i

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.128BGP routing table entry for 200.1.1.0/25, version 53Paths: (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

@ NMT 2011 14

Page 15: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

2, (aggregated by 2 10.4.4.4), (received & used) 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

R4router 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.128BGP routing table entry for 200.1.1.0/25, version 51Paths: (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-routesBGP table version is 51, local router ID is 100.1.0.1Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path*> 200.1.1.0/28 10.1.14.4 0 0 2 i*> 200.1.1.0/25 10.1.14.4 0 0 2 i*> 200.1.1.16/28 10.1.14.4 0 0 2 i*> 200.1.1.32/28 10.1.14.4 0 0 2 i*> 200.1.1.48/28 10.1.14.4 0 0 2 i*> 200.1.1.64/28 10.1.14.4 0 0 2 i*> 200.1.1.80/28 10.1.14.4 0 0 2 i*> 200.1.1.96/28 10.1.14.4 0 0 2 i*> 200.1.1.112/28 10.1.14.4 0 0 2 i*> 200.1.1.128/28 10.1.14.4 0 0 2 i

Total number of prefixes 10

AS1 debe acceder a la sumarizacion publicada por R4 a través de R3, para los prefijos más específicos AS1 debe utilizar a R1 como punto de salida. Modificar la Local Preference con valores a su elección. No es necesario que exista NLRI.

R1#show access-listsStandard 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 15

Page 16: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

R1ip 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

R3ip 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 bgpBGP table version is 84, local router ID is 10.3.3.3Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S StaleOrigin 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 0 2 i

R1#show ip bgpBGP table version is 120, local router ID is 100.1.0.1Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path* i191.168.1.0/24 10.3.3.3 0 100 0 i*> 0.0.0.0 0 32768 i*> 200.1.1.0/28 10.1.14.4 0 1011 0 2 i*>i200.1.1.0/25 10.3.3.3 0 300 0 2 i* 10.1.14.4 0 101 0 2 i*> 200.1.1.16/28 10.1.14.4 0 1011 0 2 i*> 200.1.1.32/28 10.1.14.4 0 1011 0 2 i*> 200.1.1.48/28 10.1.14.4 0 1011 0 2 i

@ NMT 2011 16

Page 17: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

*> 200.1.1.64/28 10.1.14.4 0 1011 0 2 i*> 200.1.1.80/28 10.1.14.4 0 1011 0 2 i*> 200.1.1.96/28 10.1.14.4 0 1011 0 2 i*> 200.1.1.112/28 10.1.14.4 0 1011 0 2 i*> 200.1.1.128/28 10.1.14.4 0 1011 0 2 i

Publicar loopback0 en BGP de R1; este prefijo no deben ser publicado a AS2, utilizar atributo comunidad para este propósito.

Publicar loopback0 en BGP de R3; este IDs puede ser publicado en AS1, AS2 y a cualquier AS. utilizar atributo comunidad para este propósito.

Nota: Las comunidades no se envían por defecto.

R1ip 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

R3ip 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.1BGP routing table entry for 10.1.1.1/32, version 86Paths: (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.3BGP routing table entry for 10.3.3.3/32, version 123Paths: (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 17

Page 18: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

@ NMT 2011 18

Page 19: Prueba 2 CCNP1 DESARROLLO

CCNP 1 segunda

R4#show ip bgp 10.1.1.1% Network not in table

R4#show ip bgp 10.3.3.3BGP routing table entry for 10.3.3.3/32, version 45Paths: (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 19