FRRouting / frr

The FRRouting Protocol Suite
https://frrouting.org/
Other
3.18k stars 1.23k forks source link

How routes can be inserted to different Routing Table which created by NHRP? #7930

Open cihankom opened 3 years ago

cihankom commented 3 years ago

Hi,

I want to insert NHRP routes into specific Routing table different from Main Table. Currently, NHRP inserting all routes into Main table as following:

root:#  ip r s t main
172.16.0.0/24 via 172.16.0.1 dev gre@eth01 metric 10 
172.16.0.4 dev gre@eth01 proto nhrp metric 20 
172.16.0.5 dev gre@eth01 proto nhrp metric 20 

Just try to insert above routes into higher Priority tables. I can do this for BGPD by using route-map-> set table [table-no] but couldn't do it same for NHRP.

Is there any way to do this ? otherwise I will try to patch FRR code to insert all NHRP routes into specific table

I can do this in quagga just simple instruction set table [table no]

Thanks in advance

pguibert6WIND commented 3 years ago

Hi, I was thinking this would be possible to configure 'set table' under zebra route-map by using 'ip protocol nhrp route-map ' command, but 'set table' is not reachable at this level. I think the best would be to do:

redistribute nhrp route-map rmap
 route-map rmap permit 1
 set table 10
exit
interface gre1
 ip nhrp ...
cihankom commented 3 years ago

Hi, I was thinking this would be possible to configure 'set table' under zebra route-map by using 'ip protocol nhrp route-map ' command, but 'set table' is not reachable at this level. I think the best would be to do:

redistribute nhrp route-map rmap
 route-map rmap permit 1
 set table 10
exit
interface gre1
 ip nhrp ...

Unfortunately FRR not accepting. It gives an error "Unknown command"

pguibert6WIND commented 3 years ago

Hi, I made a specification note on how this issue could be handled.

Hi, I was thinking this would be possible to configure 'set table' under zebra route-map by using 'ip protocol nhrp route-map ' command, but 'set table' is not reachable at this level. I think the best would be to do:

redistribute nhrp route-map rmap
 route-map rmap permit 1
 set table 10
exit
interface gre1
 ip nhrp ...

Unfortunately FRR not accepting. It gives an error "Unknown command"

riw777 commented 1 year ago

@pguibert6WIND can this be closed? It looks resolved'ish, or is there still a new feature request here?