[quagga-users 14757] Re: PBR(policy based routing in quagga)
Anki Abhi <[email protected]> Tue, 22 Aug 2017 08:38:07 +0530
| Newsgroups | gmane.network.quagga.user |
|---|---|
| Message-ID | <CAOTXYWXzPO5b=jS3YPARkdXX-ncNY15my=p9xZKsc2zNgMpPHA@mail.gmail.com> |
Thanks a lot for promot response. So pbr was supported in quagga but i missed few configurations related to iptables. Can u plz share if you have any sample config. We are already configuaring the access list, could you please explain again why we need iptables. Thanks, Anki On Monday, August 21, 2017, Vasco Matos <[email protected]> wrote: > 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] > <javascript:_e(%7B%7D,'cvml','[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 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 >> >> _______________________________________________ >> Quagga-users mailing list >> Quagga-users-UOy77sIEA+cAd7ICUelF/[email protected] >> <javascript:_e(%7B%7D,'cvml','Quagga-users-UOy77sIEA+cAd7ICUelF/[email protected]');> >> https://lists.quagga.net/mailman/listinfo/quagga-users >> >> > > > -- > Cordialement, > > Guillaume BARROT > > > _______________________________________________ > Quagga-users mailing listQuagga-users-UOy77sIEA+cAd7ICUelF/[email protected] <javascript:_e(%7B%7D,'cvml','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