[quagga-dev 16644] PBR(policy based routing in quagga)

Anki Abhi anki.nakm at gmail.com
Mon Aug 21 12:07:20 BST 2017


 Hi all,


Could you please let me know PBR (Policy Based Routing) functionality
support is present in Quagga for both Static routes and Dynamic routing
cases or not.



I am able to see the configuration option to configure the route-map
config, but the next hop was not modified.



Below is my config for static case, Please correct me if I missed any
config.



Before applying the PBR config, route table info



K>* 0.0.0.0/0 via 10.200.8.1,vmmgmt

K>* 1.0.0.0/24 via 2.0.0.1, enp2s0f3

C>* 2.0.0.0/24 is directly connected, enp2s0f3

C>* 3.0.0.0/24 is directly connected, enp2s0f1

C>* 10.200.8.0/24 is directly connected, vmmgmt

S>* 25.25.0.0/24 [1/0] via 2.0.0.20, enp2s0f3

S>* 30.0.0.0/24 [1/0] via 3.0.0.40, enp2s0f1



Tried configuring  PBR below two ways

   1. Using access list

access-list anki permit 25.25.0.0/24

!

route-map qwe permit 5

 match ip address anki

 set ip next-hop 3.0.0.40

   1. Directly applying matching ip

route-map aaa permit 2

 match ip address 25.25.0.0/24

 set ip next-hop 3.0.0.40



Note: I am not seeing any configuration support to apply the PBR config
under interface.



After applying the above config , show ip route in Quagga displays the same
output, next hop was not modified.



K>* 1.0.0.0/24 via 2.0.0.1, enp2s0f3

C>* 2.0.0.0/24 is directly connected, enp2s0f3

C>* 3.0.0.0/24 is directly connected, enp2s0f1

C>* 10.200.8.0/24 is directly connected, vmmgmt

S>* 25.25.0.0/24 [1/0] via 2.0.0.20, enp2s0f3

S>* 30.0.0.0/24 [1/0] via 3.0.0.40, enp2s0f1

C>* 127.0.0.0/8 is directly connected, lo

C>* 192.168.122.0/24 is directly connected, virbr0



Thanks a lot for your help in advance.





Thanks,

Anki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20170821/56538ce9/attachment.html>


More information about the Quagga-dev mailing list