Comware Based
cancel
Showing results for 
Search instead for 
Did you mean: 

OSPF Distance Config on HPE 5510-HI

Colin_Painter
Occasional Contributor

OSPF Distance Config on HPE 5510-HI

Hi All,

Recently purchased a HPE 5510 24G 4SFP+ and been playing around with the featureset (very much used to Cisco and Aruba/HP CLI :( ).

I cannot seem to locate 'distance' in the OSPF command set on the switch or locate it at all in the IP L3 referencing document. For example on my Cisco kit i have:

router ospf 100
<<ommitted output>>
distance 130 xx.xx.xx.xx 0.0.0.0
distance 150 xx.xx.xx.xx 0.0.0.0
distance 170 xx.xx.xx.xx 0.0.0.0

And i want to do the same on this switch. Am i missing something obvious, has it been deprecated or just obscurely named?

Help appreciated!

Thanks.

3 REPLIES
sdide
Respected Contributor

Re: OSPF Distance Config on HPE 5510-HI

Hi,

its called "preference" in comware-lingo. So:

[HP-5510] ospf 1
[HP-5510-ospf-1]preference ?
  INTEGER<1-255>  Preference value
  ase             Preference for ASE routes
  route-policy    Specify the routing policy

Regards

 

 

Søren Dideriksen, Network Administrator
Region Midtjylland
Colin_Painter
Occasional Contributor

Re: OSPF Distance Config on HPE 5510-HI

Hi,

Thanks for replying. So i'm guessing that it's just more long winded as i'll have to:

  • Create a standard ACL for the IP
  • Create a route-policy matching that ACL
  • Create the prefence command, referencing the route-policy

And then that makes the desired IP be a desired 'distance' within OSPF?

Thanks,

Colin

Colin_Painter
Occasional Contributor

Re: OSPF Distance Config on HPE 5510-HI

Hi,

This only works in part. It only supports one entry, so overwrites the previous if you add another. On my other switches, i've specified different peers with different distances, to manipulate incoming default route preference via OSPF.

Is this not possible in Comware?

Thanks