Difference between revisions of "Cisco: BGP Redistribute OSPF"

From OnnoWiki
Jump to navigation Jump to search
Line 48: Line 48:
 
  !
 
  !
 
  end
 
  end
 +
 +
 +
==Redistribute NSSA==
 +
 +
router ospf 1
 +
  network 2.0.0.0 0.255.255.255 area 1
 +
nssa
 +
!
 +
router bgp 100
 +
  redistribute ospf 1 match nssa-external 1 nssa-external 2
 +
 +
 +
 +
==No Redistribute==
 +
 +
router bgp 100
 +
  no redistribute ospf 1
  
 
==Referensi==
 
==Referensi==

Revision as of 05:15, 28 December 2018

sumber: https://community.cisco.com/t5/routing/ospf-to-bgp-redistribution/td-p/1165332


router ospf 6
router-id x.x.x.x
auto-cost reference-bandwidth 10000
area 38 stub no-summary
timers throttle spf 10 100 5000
timers throttle lsa all 10 100 5000
redistribute bgp 65500 metric 500 subnets
network x.x.x.x 0.0.0.255 area 38
router bgp 65500
no synchronization
bgp log-neighbor-changes
redistribute ospf 6 metric 100 route-map ospf2bgp
neighbor x.x.x.x remote-as xxxx
no auto-summary


Redistribute intra & inter-are

router ospf 1
 network 2.0.0.0 0.255.255.255 area 1
!
router bgp 100
 redistribute ospf 1
!-- This redistributes only OSPF intra- and inter-area routes into BGP.


Redistribute external type-1 type2

Use the external keyword along with the redistribute command under router bgp to redistribute OSPF external routes into BGP. With the external keyword, you have three choices:

  • redistribute both external type-1 and type-2 (Default)
  • redistribute type-1
  • redistribute type-2


router ospf 1
 network 2.0.0.0 0.255.255.255 area 1
!
router bgp 100
 redistribute ospf 1 match external 1 external 2
!--- This redistributes ONLY OSPF External routes, !--- but both type-1 and type-2.
neighbor 3.3.3.3 remote-as 200
!
end


Redistribute NSSA

router ospf 1
 network 2.0.0.0 0.255.255.255 area 1 
nssa
!
router bgp 100
 redistribute ospf 1 match nssa-external 1 nssa-external 2


No Redistribute

router bgp 100
  no redistribute ospf 1

Referensi

Pranala Menarik