Let’s analyze the process step-by-step:
R1redistributes thedirect route 10.1.1.0/24intoOSPF.
This OSPF route reachesR2andR3.
R2 and R3 are in an environment that usesIS-IStowardsR4.
BothR2 and R3 re-advertisethis OSPF route into IS-IS toward R4 (bidirectional route redistribution).
OnR3, aroute-policy named hcipis applied to controlASE (Autonomous System External) route preference.
The ACL matches the route10.1.1.0/24.
The route-policy sets thepreferenceof this ASE route to14.
InHuawei VRP, if a route-policy applied via preference ase route-policy matches a route, itmodifies the preferencevalue of the redistributed route when it is advertised.
By default:
OSPF ASE routeshave apreference of 150.
But in this case, due to the policy applied, the preference is explicitly changed to14on R3 before re-advertising to R4.
So,R4will install the route10.1.1.0/24from R3 withpreference 14, assuming R2 doesn’t provide a better preference.
Reference from Huawei HCIP-Datacom-Core Technology Study Guide:
“You can control the preference of OSPF ASE routes by using a route-policy and applying it with the command preference ase route-policy. When the policy matches, the specified preference is used instead of the default (150).”
(Chapter: OSPF Advanced Features – Section: Route Control and Inter-AS Route Redistribution)
Submit