No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FAQ-Can MED of BGP be Changed as Cost of OSPF Route When Importing BGP Route to OSPF

Publication Date:  2012-07-27 Views:  60 Downloads:  0
Issue Description
Q:
When importing BGP route to OSPF, can MED of BGP be changed as cost of OSPF route? 
Alarm Information
Null
Handling Process

A:
When importing BGP route to OSPF, MED of BGP route cannot be changed as cost of OSPF route. MED is special attribute of BGP. OSPF does not support the attribute. But it can import cost of the route with route policy setting when importing BGP.  Refer to the following configuration:  Set the cost of BGP route that agrees with cost of ACL 2000 route as 100. 

acl number 2000  
 rule permit soucre X.X.X.X X.X.X.X 
route-policy aaa permit node 10 
 if-match acl 2000  
 apply cost 100 
route-policy aaa permit node 11 
 ospf XXX 
import-route bgp route-policy aaa 
      

Root Cause
Null
Suggestions
Null

END