Apply PBR via Quagga


Userlevel 1
Hello,

I am writing PBR by using Quagga.

Question
1) However, I think suppose it require apply to route-map into interface? I am using VRR now. Could you please advise how to apply it?

2) Also another question it looks now it will routing to external first even 2 subnet is belongs to next switch. How can I do internal vlan routing?

Following is my config

========== quagga config ==================

!
access-list 100 permit ip 192.168.70.0 0.0.0.255 any
access-list 101 permit ip 192.168.60.0 0.0.0.255 any
!
route-map 101traffic permit 10
match ip address 101
set ip next-hop 192.168.60.1
!
route-map 100traffic permit 10
match ip address 100
set ip next-hop 192.168.70.1
!

========== Cumulus config ===============

auto vlan400
iface vlan400
mstpctl-portadminedge no
mstpctl-portnetwork no
address-virtual 00:00:5e:00:01:01 192.168.70.254/24
vlan-id 400
alias Vlan 400 IP
mstpctl-bpduguard no
vlan-raw-device bridge

auto vlan450
iface vlan450
mstpctl-portadminedge no
mstpctl-portnetwork no
address-virtual 00:00:5e:00:01:02 192.168.60.254/24
vlan-id 450
alias Vlan 450 IP
mstpctl-bpduguard no
vlan-raw-device bridge

auto bridge
iface bridge
bridge-vlan-aware yes
mstpctl-treeprio 36864
bridge-vids 300 400 450
alias 0203-leaf-1 bridge
bridge-stp yes
bridge-ports glob swp1-35 swp37 swp38 swp39 swp40 swp41 peerlink uplink ng4

=========================================

Thanks!

3 replies

Userlevel 4
PBR is not supported today in Cumulus Linux. Last I saw there was some limited PBR slated for v3.5 which would handle that case for routing protocol, but the route-map would be applied to an "IP protocol" statement within Quagga.
Hi Eric,

Please correct me if my understanding is wrong on Quagga PBR.

PBR was not supported for static routes and supports for routing protocols (BGP/OSPF), PLease let me know.

Also if possible please share me the PBR sample config for BGP/OSPF.

Thanks a lot in advance.

Thanks,
Anki

Userlevel 4
Ankaiah N wrote:

Hi Eric,

Please correct me if my understanding is wrong on Quagga PBR.

PBR was not supported fo...

3.5 has not been released yet so I cannot share a sample config with you as the config does not exist yet 🙂 3.5 is slated for ~January if I recall. I was speaking with the routing team yesterday and they had mentioned that source-based PBR might be performed via IPtables rules that get synced to hardware instead of via route-maps in Quagga/FRR we'll have to see what matures there... both make sense at some level.

Reply