FRRouting / frr

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

no zebra command table N (Want to put all routes not to default table) #13238

Closed AnatoliChe closed 1 year ago

AnatoliChe commented 1 year ago

Hello! I upgraded from quagga 1.2.4 to FRRouting (version 8.4.2) and found that command

vtysh -c "conf t; table 86" just does not works.

ip rule add from mynet table 86 # was done at start

I need to put all my routes from BGP to different FIB not to default routing table.

Could you help and give me a hit what command I'd use instead of regular "table 86"?

Thanks in advance.

donaldsharp commented 1 year ago

table XX command was removed a while ago. The general consensus is to use a vrf

AnatoliChe commented 1 year ago

Thank you for response! I guess I understand how to put routes to the specific NS with VRF but if it possible to put routes to specific table with VRF? It's still impossible to do something like conf t vrf default table 86

I believe source base routing is very basic functionality.

Maybe syntax was changed? Could you help and give advice how to put all routes from frr to specific routing table instead of "main" ?

sever-sever commented 1 year ago

You can get it with route-map

r14(config)# route-map foo permit 10 
  <cr>  
r14(config-route-map)# set table 10
r14(config-route-map)#

And attach it to the required peer.

r14(config-router)# address-family ipv4 unicast 
r14(config-router-af)# 
r14(config-router-af)# neighbor 192.0.2.1 route-map foo in 
AnatoliChe commented 1 year ago

but... this is... really wonderful! much more flexible and... Thank you Viacheslav.

ps I hate to see full view in the default table and started port back old function ))) It's much better to read docs better then write new(old) functionality. stand for Ukraine, stand for Dnipro.