Segue um LAB envolvendo um pouco de OSPF (IGP), BGP, MPLS e RR. Como envolve muitas configurações diferentes, os problemas que coloquei não são muito complicados. Quando alguém resolver esse eu posto outro mais complexo.
Sua tarefa estará completa quando:
1 - O CEA estiver recebendo 3 prefixos
2 - O CEB estiver recebendo 3 prefixos
3 - Com source em sua FastEthernet0/0 o CEA conseguir pingar a FastEthernet0/0 do CEB e vice-versa
obs. O LAB é para utilizarmos o RR, os prefixos por dentro da VPN devem ser propagados por ele, ou seja não vale fechar uma vizinhança BGP entre os PEs diretamente, nem propagar o EGP dentro do IGP.
Topologia:
Config dos routers:
********* CEA *********
conf t
service tcp-keepalives-in
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service compress-config
hostname CEA
logging buffered 16000 debugging
no logging console
ip subnet-zero
no ip source-route
ip cef
no ip domain-lookup
interface Loopback0
ip address 192.168.1.4 255.255.255.255
interface Multilink1
bandwidth 128
ip address 200.1.1.2 255.255.255.252
ppp multilink
ppp multilink fragment-delay 10
ppp multilink interleave
multilink-group 1
interface FastEthernet0/0
ip address 10.0.0.1 255.255.255.0
speed 100
full-duplex
interface Serial1/0
bandwidth 128
no ip address
encapsulation ppp
serial restart-delay 0
ppp multilink
multilink-group 1
router bgp 65001
no synchronization
bgp log-neighbor-changes
redistribute connected
neighbor 200.1.1.1 remote-as 7738
neighbor 200.1.1.1 allowas-in
no auto-summary
ip classless
no ip http server
ip bgp-community new-format
end
wr
********* CEB *********
conf t
service tcp-keepalives-in
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service compress-config
hostname CEB
logging buffered 16000 debugging
no logging console
ip subnet-zero
no ip source-route
ip cef
no ip domain-lookup
interface Loopback0
ip address 192.168.1.5 255.255.255.255
interface Multilink1
bandwidth 128
ip address 200.2.1.2 255.255.255.252
max-reserved-bandwidth 95
ppp multilink
ppp multilink fragment-delay 10
ppp multilink interleave
multilink-group 1
interface FastEthernet0/0
ip address 11.0.0.1 255.255.255.0
speed 100
full-duplex
interface Serial1/0
no ip address
encapsulation ppp
serial restart-delay 0
ppp multilink
multilink-group 1
router bgp 65001
no synchronization
bgp log-neighbor-changes
redistribute connected
neighbor 200.2.1.1 remote-as 7738
neighbor 200.2.1.1 allowas-in
no auto-summary
ip classless
no ip http server
ip bgp-community new-format
end
wr
********* PEA *********
conf t
service tcp-keepalives-in
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service compress-config
hostname PEA
logging buffered 16000 debugging
no logging console
ip subnet-zero
no ip source-route
no ip domain lookup
ip vrf CLIENTE
rd 65001:1
route-target export 65001:1
route-target import 65001:1
ip cef
mpls label protocol ldp
mpls ldp logging neighbor-changes
no tag-switching ip propagate-ttl forwarded
interface Loopback0
ip address 192.168.1.1 255.255.255.255
interface Multilink1
bandwidth 128
ip vrf forwarding CLIENTE
ip address 200.1.1.1 255.255.255.252
max-reserved-bandwidth 95
ppp multilink
ppp multilink fragment-delay 10
ppp multilink interleave
multilink-group 1
interface FastEthernet0/0
ip address 200.0.0.1 255.255.255.252
duplex full
speed 100
mpls label protocol ldp
tag-switching mtu 1508
tag-switching ip
interface Serial1/0
bandwidth 128
no ip address
encapsulation ppp
serial restart_delay 0
ppp multilink
multilink-group 1
router ospf 2000
log-adjacency-changes
redistribute connected subnets
network 200.0.0.0 0.0.0.3 area 0
router bgp 7738
no synchronization
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 192.168.1.3 remote-as 7738
neighbor 192.168.1.3 update-source Loopback0
no auto-summary
address-family vpnv4
neighbor 192.168.1.3 activate
neighbor 192.168.1.3 send-community both
no auto-summary
exit-address-family
address-family ipv4 vrf CLIENTE
neighbor 200.1.1.2 remote-as 65001
neighbor 200.1.1.2 activate
no auto-summary
no synchronization
exit-address-family
ip classless
no ip http server
ip bgp-community new-format
end
wr
********* PEB *********
conf t
version 12.2
service tcp-keepalives-in
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service compress-config
hostname PEB
logging buffered 16000 debugging
no logging console
ip subnet-zero
no ip source-route
no ip domain lookup
no ip bootp server
ip vrf CLIENTE
rd 65001:1
route-target export 65001:1
route-target import 65001:1
ip cef
mpls label protocol ldp
mpls ldp logging neighbor-changes
no tag-switching ip propagate-ttl forwarded
interface Loopback0
ip address 192.168.1.2 255.255.255.255
interface Multilink10
bandwidth 128
ip vrf forwarding CLIENTE
ip address 200.2.1.1 255.255.255.252
max-reserved-bandwidth 95
ppp multilink
ppp multilink fragment-delay 10
ppp multilink interleave
multilink-group 10
interface FastEthernet0/0
ip address 200.0.1.1 255.255.255.252
duplex full
speed 100
mpls label protocol ldp
tag-switching mtu 1508
tag-switching ip
interface Serial1/0
bandwidth 128
no ip address
encapsulation ppp
serial restart_delay 0
ppp multilink
multilink-group 10
router ospf 2000
log-adjacency-changes
redistribute connected subnets
network 200.0.1.0 0.0.0.3 area 0
router bgp 7738
no synchronization
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 192.168.1.3 remote-as 7738
neighbor 192.168.1.3 update-source Loopback0
no auto-summary
address-family vpnv4
neighbor 192.168.1.3 activate
neighbor 192.168.1.3 send-community both
no auto-summary
exit-address-family
address-family ipv4 vrf CLIENTE
neighbor 200.2.1.2 remote-as 65001
neighbor 200.2.1.2 activate
no auto-summary
no synchronization
exit-address-family
ip classless
no ip http server
ip bgp-community new-format
end
wr
********* RR *********
conf t
service tcp-keepalives-in
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service compress-config
hostname RR
logging buffered 16000 debugging
no logging console
ip subnet-zero
no ip source-route
no ip domain lookup
no ip bootp server
ip cef
mpls label protocol ldp
mpls ldp logging neighbor-changes
no tag-switching ip propagate-ttl forwarded
interface Loopback0
ip address 192.168.1.3 255.255.255.255
interface FastEthernet0/0
ip address 200.0.0.2 255.255.255.252
duplex full
speed 100
mpls label protocol tdp
tag-switching mtu 1508
tag-switching ip
interface FastEthernet1/0
ip address 200.0.1.2 255.255.255.252
duplex full
speed 100
mpls label protocol tdp
tag-switching mtu 1508
tag-switching ip
router ospf 2000
log-adjacency-changes
redistribute connected subnets
network 200.0.0.0 0.0.0.3 area 0
network 200.0.1.0 0.0.0.3 area 0
router bgp 7738
synchronization
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor VPNRR peer-group
neighbor VPNRR remote-as 7738
neighbor VPNRR description Route-Reflector para MPLS
neighbor 192.168.1.1 peer-group VPNRR
neighbor 192.168.1.2 peer-group VPNRR
auto-summary
address-family vpnv4
neighbor VPNRR activate
neighbor VPNRR route-reflector-client
neighbor VPNRR send-community both
neighbor 192.168.1.1 peer-group VPNRR
neighbor 192.168.1.2 peer-group VPNRR
auto-summary
exit-address-family
ip classless
no ip http server
ip bgp-community new-format
end
wr
arquivo Dynamips (este arquivo foi gerado para o dynamips padrão, caso resolva utilizar o GNS será necessário montar a topologia na hora, não esqueça de corrigir o caminho do IOS e de fazer o idlepc)
autostart = False
[localhost]
[[7200]]
image = .\c7200-jk8s-mz.122-15.T17.bin
npe = npe-400
nvram = 96
ram = 128
ghostios = True
sparsemem = True
[[ROUTER PEA]]
f0/0 = LAN 1
S1/0 = CEA S1/0
model = 7200
[[ROUTER PEB]]
f0/0 = LAN 2
S1/0 = CEB S1/0
model = 7200
[[ROUTER RR]]
f0/0 = LAN 1
f1/0 = LAN 2
model = 7200
[[3640]]
image = .\c3640-is-mz.122-17a.bin
ram = 128
nvram = 128
disk0 = 20
[[ROUTER CEA]]
f0/0 = LAN 3
model = 3640
[[ROUTER CEB]]
f0/0 = LAN 4
model = 3640
IOS para download:
7200
http://www.4shared.com/file/9914030/50c618/c7200-jk8s-mz122-15T17.html
3640
http://www.4shared.com/file/56196256/e7dd23d/c3640-is-mz122-17a.html
Dica: 3 erros de configuração e 2 faltando