[quagga-users 14756] Re: PBR(policy based routing in quagga)
Vasco Matos <[email protected]> Mon, 21 Aug 2017 17:11:42 +0200
| Newsgroups | gmane.network.quagga.user |
|---|---|
| Message-ID | <[email protected]> |
I think that to use PBR you need to use the default linux flavour (iproute2) at least I wasn't able to put it to work simply with quagga. I had to put ip rules in place. On 21/08/2017 16:22, Guillaume Barrot wrote: > Try to lower the administrative distance for the static route. > PBR shall use a lower AD, so the static route is still present. > > 2017-08-21 13:07 GMT+02:00 Anki Abhi <[email protected] > <mailto:[email protected]>>: > > 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 <http://0.0.0.0/0> via 10.200.8.1,vmmgmt > > K>* 1.0.0.0/24 <http://1.0.0.0/24> via 2.0.0.1, enp2s0f3 > > C>* 2.0.0.0/24 <http://2.0.0.0/24> is directly connected, enp2s0f3 > > C>* 3.0.0.0/24 <http://3.0.0.0/24> is directly connected, enp2s0f1 > > C>* 10.200.8.0/24 <http://10.200.8.0/24> is directly connected, vmmgmt > > S>* 25.25.0.0/24 <http://25.25.0.0/24> [1/0] via 2.0.0.20, enp2s0f3 > > S>* 30.0.0.0/24 <http://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 <http://25.25.0.0/24> > > ! > > route-map qwe permit 5 > > match ip address anki > > set ip next-hop 3.0.0.40 > > 2. Directly applying matching ip > > route-map aaa permit 2 > > match ip address 25.25.0.0/24 <http://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 <http://1.0.0.0/24> via 2.0.0.1, enp2s0f3 > > C>* 2.0.0.0/24 <http://2.0.0.0/24> is directly connected, enp2s0f3 > > C>* 3.0.0.0/24 <http://3.0.0.0/24> is directly connected, enp2s0f1 > > C>* 10.200.8.0/24 <http://10.200.8.0/24> is directly connected, vmmgmt > > S>* 25.25.0.0/24 <http://25.25.0.0/24> [1/0] via 2.0.0.20, enp2s0f3 > > S>* 30.0.0.0/24 <http://30.0.0.0/24> [1/0] via 3.0.0.40, enp2s0f1 > > C>* 127.0.0.0/8 <http://127.0.0.0/8> is directly connected, lo > > C>* 192.168.122.0/24 <http://192.168.122.0/24> is directly > connected, virbr0 > > > > Thanks a lot for your help in advance. > > > > > > Thanks, > > Anki > > > _______________________________________________ > Quagga-users mailing list > Quagga-users-UOy77sIEA+cAd7ICUelF/[email protected] <mailto:Quagga-users-UOy77sIEA+cAd7ICUelF/[email protected]> > https://lists.quagga.net/mailman/listinfo/quagga-users > <https://lists.quagga.net/mailman/listinfo/quagga-users> > > > > > -- > Cordialement, > > Guillaume BARROT > > > _______________________________________________ > Quagga-users mailing list > Quagga-users-UOy77sIEA+cAd7ICUelF/[email protected] > https://lists.quagga.net/mailman/listinfo/quagga-users _______________________________________________ Quagga-users mailing list Quagga-users-UOy77sIEA+cAd7ICUelF/[email protected] https://lists.quagga.net/mailman/listinfo/quagga-users