LAN Routing
cancel
Showing results for 
Search instead for 
Did you mean: 

HP 5400zl2 switch: Redirtibute static route into OSPF??

NicholasSullo
Occasional Contributor

HP 5400zl2 switch: Redirtibute static route into OSPF??

Hi Guys,
I'm a little confused on how to redistribute a specific static route into my OSPF configuration on a HP 5400zl2 switch.  I'm more fluent in Cisco or 3Com OS which perfom this operation in a simple similar way but I cannot figure out how to do it on this HP switch.

On my HP A5500-24G-4SFP HI (3Com OS) switch, I do the following:

ip route-static 192.168.234.0 255.255.255.0 10.10.10.1
ospf 1 router-id X.X.X.X
area 0.0.0.0
  network 192.168.234.0 0.0.0.255

Since the commands are quite different from the above switch and the 5400zl2, I can't find the similar commands to accomplish this simple rediribution.

Any ideas?

 

UPDATE:  I found some information on another forum that got me what I needed but I really don't understand why it works and why it would be so complicated.  Surely there is a better way.

ip route 192.168.234.0 255.255.255.0 10.1.1.1 tag 10 name "TEST SUBNET"
ip prefix-list "TEST" seq 5 permit 192.168.240.0 255.255.255.0 ge 24 le 24
route-map "TEST-ROUTE" permit seq 10
   match ip address prefix-list "TEST"
   exit

Any ideas?

 

3 REPLIES
Michael Patmon
Trusted Contributor

Re: HP 5400zl2 switch: Redirtibute static route into OSPF??

Hello.  Just enable redistribution in the "router ospf" context:

router ospf
   area 0.0.0.100 stub 100
   area backbone
   redistribute connected
   redistribute static
   enable
exit

NicholasSullo
Occasional Contributor

Re: HP 5400zl2 switch: Redirtibute static route into OSPF??

 

I have other specific static routes that may cause a loop in my OSPF network so although that would be a good solution, it wouldn't really work.  It would be so simply if I can just do this:

 

router ospf
    area backone
        network X.X.X.X 255.255.255.0

 

Michael Patmon
Trusted Contributor

Re: HP 5400zl2 switch: Redirtibute static route into OSPF??

Sorry, I missed the "specific" part of your question.  Yes, you would need to use a route-map unfortunately.  The other way would be to turn on static redistribution and restrict the ones you don't want.  But if you only have one that you want to distribute that doesn't save you much in the way of configuration...