Académique Documents
Professionnel Documents
Culture Documents
BGP Community
R2#ping 255.255.255.255
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 255.255.255.255, timeout is 2 seconds:
.
Reply to request 1 from 1.1.12.1, 1 ms
Reply to request 1 from 10.1.23.3, 5 ms
Reply to request 2 from 10.1.23.3, 2 ms
Reply to request 2 from 1.1.12.1, 2 ms
Reply to request 3 from 10.1.23.3, 1 ms
Reply to request 3 from 1.1.12.1, 1 ms
Reply to request 4 from 10.1.23.3, 1 ms
Reply to request 4 from 1.1.12.1, 1 ms
R3#ping 1.1.34.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.34.4, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms
R2
router ospf 1
router-id 2.2.2.2
interface Ethernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
interface Loopback0
1
TLDR © 2016 Nicolás Montero Torrealba
Guía CCNP
R3
router ospf 1
router-id 3.3.3.3
interface Ethernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
interface Loopback0
ip ospf network point-to-point
ip ospf 1 area 0
Habilite iBGP en AS10. Utilice loopback0 como interface de origen para formar la sesión.
Forme sesiones eBGP AS10AS20, y AS20AS40 utilizando la IP de próximo salto.
R2
router bgp 20
bgp log-neighbor-changes
neighbor 1.1.12.1 remote-as 10
neighbor 10.3.3.3 remote-as 20
neighbor 10.3.3.3 update-source Loopback0
R3
router bgp 20
bgp log-neighbor-changes
neighbor 1.1.34.4 remote-as 40
neighbor 10.2.2.2 remote-as 20
neighbor 10.2.2.2 update-source Loopback0
R1
router bgp 10
bgp log-neighbor-changes
neighbor 1.1.12.2 remote-as 20
2
TLDR © 2016 Nicolás Montero Torrealba
Guía CCNP
R4
router bgp 40
bgp log-neighbor-changes
neighbor 1.1.34.3 remote-as 20
R1
interface LoopBack104
ip address 104.0.0.1 255.255.0.0
ip address 104.2.0.1 255.255.0.0 s
ip address 104.3.0.1 255.255.0.0 s
ip address 104.4.0.1 255.255.0.0 s
ip address 104.30.0.1 255.255.0.0 s
ip address 104.31.0.1 255.255.0.0 s
ip address 104.32.0.1 255.255.0.0 s
ip address 104.33.0.1 255.255.0.0 s
ip address 104.34.0.1 255.255.0.0 s
ip address 104.35.0.1 255.255.0.0 s
ip address 104.36.0.1 255.255.0.0 s
ip address 104.37.0.1 255.255.0.0 s
ip address 104.38.0.1 255.255.0.0 s
3
TLDR © 2016 Nicolás Montero Torrealba
Guía CCNP
router bgp 10
network 104.0.0.0 mask 255.255.0.0
network 104.1.0.0 mask 255.255.0.0
network 104.2.0.0 mask 255.255.0.0
network 104.3.0.0 mask 255.255.0.0
network 104.4.0.0 mask 255.255.0.0
network 104.30.0.0 mask 255.255.0.0
network 104.31.0.0 mask 255.255.0.0
network 104.32.0.0 mask 255.255.0.0
network 104.33.0.0 mask 255.255.0.0
network 104.34.0.0 mask 255.255.0.0
network 104.35.0.0 mask 255.255.0.0
network 104.36.0.0 mask 255.255.0.0
network 104.37.0.0 mask 255.255.0.0
network 104.38.0.0 mask 255.255.0.0
R1#show ip bgp
BGP table version is 14, local router ID is 10.1.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
R1
access-list 10 permit 104.0.0.0 0.36.0.0
4
TLDR © 2016 Nicolás Montero Torrealba
Guía CCNP
match ip address 10
set community no-export
router bgp 10
neighbor 1.1.12.2 send-community
neighbor 1.1.12.2 route-map COM out
R2
router bgp 20
neighbor 10.3.3.3 next-hop-self
neighbor 10.3.3.3 send-community
5
TLDR © 2016 Nicolás Montero Torrealba
Guía CCNP
R3
router bgp 20
neighbor 1.1.34.4 send-community
6
TLDR © 2016 Nicolás Montero Torrealba
Guía CCNP
Community: internet
rx pathid: 0, tx pathid: 0x0
7
TLDR © 2016 Nicolás Montero Torrealba
Guía CCNP
R1
router bgp 10
bgp log-neighbor-changes
neighbor 1.1.13.3 remote-as 30
R2
router bgp 20
bgp log-neighbor-changes
neighbor 1.1.23.3 remote-as 30
R3
router bgp 30
bgp log-neighbor-changes
neighbor 1.1.13.1 remote-as 10
neighbor 1.1.23.2 remote-as 20
8
TLDR © 2016 Nicolás Montero Torrealba
Guía CCNP
R4
router bgp 40
bgp log-neighbor-changes
neighbor 1.1.34.3 remote-as 30
R1
access-list 10 permit 10.1.0.0 0.0.0.255
access-list 11 permit 100.1.0.0 0.0.0.255
access-list 12 permit 12.1.0.0 0.0.0.255
ip bgp-community new-format
router bgp 10
network 10.1.0.0 mask 255.255.255.0 route-map COM-10
network 12.1.0.0 mask 255.255.255.0 route-map COM-12
network 100.1.0.0 mask 255.255.255.0 route-map COM-100
neighbor 1.1.13.3 send-community
9
TLDR © 2016 Nicolás Montero Torrealba
Guía CCNP
R2
interface Loopback10
ip address 10.2.0.1 255.255.255.0
interface Loopback12
ip address 12.2.0.1 255.255.255.0
interface Loopback100
ip address 100.2.0.1 255.255.255.0
ip bgp-community new-format
router bgp 20
network 10.2.0.0 mask 255.255.255.0 route-map COM-10
network 12.2.0.0 mask 255.255.255.0 route-map COM-12
network 100.2.0.0 mask 255.255.255.0 route-map COM-100
neighbor 1.1.23.3 send-community
10
TLDR © 2016 Nicolás Montero Torrealba
Guía CCNP
Las redes 100.1.0.0/24 y 100.2.0.0/24 deben ser instaladas en AS 40 como redes redistribuidas.
Las redes 10.1.0.0/24 y 10.2.0.0/24 deben ser instaladas en AS 40 como redes igp.
La red 12.1.0.0/24 no debe ser instalada en AS 40.
R3
ip community-list 10 permit 10:12
ip community-list 11 permit 100:12
ip community-list 12 permit 10:1
router bgp 30
neighbor 1.1.34.4 send-community
neighbor 1.1.34.4 route-map COMM out
R4#show ip bgp
BGP table version is 13, 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, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
12
TLDR © 2016 Nicolás Montero Torrealba