Tak sobie labuje i nie moge poradzic sobie z jedna sprawa. Topologia wyglada nastepujaco.
Nie wiem czemu ale R1 nie widzi trasy do R2 i vice versa.
Konfiguracja wyglada nastepujaca dla R3, R4 i R5
R5
Kod: Zaznacz cały
R5#sh run | sec ip vrf
ip vrf hub
rd 1:6
route-target export 1:6
route-target import 1:1
route-target import 1:2
R5#sh run | sec bgp
router bgp 1
no synchronization
bgp log-neighbor-changes
neighbor 3.3.3.3 remote-as 1
neighbor 3.3.3.3 update-source Loopback0
neighbor 4.4.4.4 remote-as 1
neighbor 4.4.4.4 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community both
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community both
exit-address-family
!
address-family ipv4 vrf hub
neighbor 10.1.56.6 remote-as 65006
neighbor 10.1.56.6 activate
neighbor 10.1.56.6 allowas-in
no auto-summary
no synchronization
exit-address-family
Kod: Zaznacz cały
R4#sh run | sec ip vrf
ip vrf spoke2
rd 1:2
route-target export 1:2
route-target import 1:6
R4#sh run | sec bgp
router bgp 1
no synchronization
bgp log-neighbor-changes
neighbor 5.5.5.5 remote-as 1
neighbor 5.5.5.5 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 5.5.5.5 activate
neighbor 5.5.5.5 send-community both
exit-address-family
!
address-family ipv4 vrf spoke2
neighbor 10.1.24.2 remote-as 65002
neighbor 10.1.24.2 activate
no auto-summary
no synchronization
exit-address-family
R3
Kod: Zaznacz cały
R3#sh run | sec ip vrf
ip vrf spoke1
rd 1:1
route-target export 1:1
route-target import 1:6
R3#sh run | sec bgp
router bgp 1
no synchronization
bgp log-neighbor-changes
neighbor 5.5.5.5 remote-as 1
neighbor 5.5.5.5 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 5.5.5.5 activate
neighbor 5.5.5.5 send-community both
exit-address-family
!
address-family ipv4 vrf spoke1
neighbor 10.1.13.1 remote-as 65001
neighbor 10.1.13.1 activate
no auto-summary
no synchronization
exit-address-family
Kod: Zaznacz cały
R5#sh ip bgp vpnv4 all
BGP table version is 35, local router ID is 5.5.5.5
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
Route Distinguisher: 1:1
*>i1.1.1.1/32 3.3.3.3 0 100 0 65001 i
Route Distinguisher: 1:2
*>i2.2.2.2/32 4.4.4.4 0 100 0 65002 i
Route Distinguisher: 1:6 (default for vrf hub)
*>i1.1.1.1/32 3.3.3.3 0 100 0 65001 i
*>i2.2.2.2/32 4.4.4.4 0 100 0 65002 i
*> 6.6.6.6/32 10.1.56.6 0 0 65006 i
Kod: Zaznacz cały
R3#sh ip bgp vpnv4 all
BGP table version is 51, local router ID is 3.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
Route Distinguisher: 1:1 (default for vrf spoke1)
*> 1.1.1.1/32 10.1.13.1 0 0 65001 i
*>i6.6.6.6/32 5.5.5.5 0 100 0 65006 i
Route Distinguisher: 1:6
*>i6.6.6.6/32 5.5.5.5 0 100 0 65006 i
Wszystko jest, w porzadku kiedy zestawie sesje vpnv4 miedzy R3 i R4 i dodam odpowiednio rt import 1:2 i rt import 1:1. Drugi sposob jaki jest by R1 i R2 mogly sie zesoba komunikowac to rozgloszenie default route na R6.
W moim przypadku polaczenie miedzy R5 i R6 jest p2p bez zadnych subinterfejsow i na R5 jest tylko jeden vrf na interfejsie do R6. Zastanawiam sie dlaczego R5 nie rozglasza trasy 1.1.1.1 do R4 oraz trasy 2.2.2.2 do R3.
Jakies pomysly?
Pozdrawiam
Marcin