BGP extcommunity-rt

Hi, folks.

We have a customer using VyOS LTS 1.3.3.

He is trying to configure multiple extcommunity-rt in his policy, however how we should add multiple entries ? From what I can see, it supports only one, in the following way:

set policy route-map default-in rule 1000 set extcommunity-rt ‘600000:1’

However, we can’t use it like:

set policy route-map default-in rule 1000 set extcommunity-rt ‘600000:1 600000:2 600000:3’

Any hints in how this could be done ?

Sincerely,

Fred

Hi @Fr3DBr,

Try using separate lines for each target.

set policy route-map default-in rule 1000 set extcommunity-rt ‘600000:1’
set policy route-map default-in rule 1000 set extcommunity-rt ‘600000:2’
set policy route-map default-in rule 1000 set extcommunity-rt ‘600000:3’

I hope this helps.

Cheers,
Joe

1 Like

Hi, @JoeN. Yeah, I had thought of doing this too, but the last line will overwrite the previous one, so in the end, you can have only one line:

vyos@H# set policy route-map default-in rule 1000 set extcommunity-rt ‘600000:1’
[edit]
vyos@H# set policy route-map default-in rule 1000 set extcommunity-rt ‘600000:2’
[edit]
vyos@H# set policy route-map default-in rule 1000 set extcommunity-rt ‘600000:3’
[edit]
vyos@H# commit
[edit]

vyos@H# run show conf com | grep extcommunity
set policy route-map default-in rule 1000 set extcommunity-rt ‘600000:3’
[edit]

So, I’m not sure what else could be done.

yes, it should allow a list of community , I’ve created a task to do it :

https://vyos.dev/T5484

however, check your community because it is wrong , if you want to check this feature is able 1.4 eg :

set policy route-map default-in rule 100 action 'permit'
set policy route-map default-in rule 100 set extcommunity rt '65050:10010 65050:10020'

options should be ASN:NN_OR_IP-ADDRESS:NN

best regards

2 Likes

Hi @fernando @Viacheslav! Do you have any tips for @Fr3DBr?

Thanks,
Joe

2 Likes

Thank you, @fernando !

2 Likes

Hi, @fernando, indeed it works like this in 1.4, but the thing is that my customer is using 1.3.3 LTS and it will not work like this unfortunately, it simply doesn’t accept multiple asns like your example. :frowning:

By the way, I just saw the task open, yeah, previously in 1.3 (rolling) you simply couldn’t use extcommunity-rt, as it was broken, now it kinda works but allows only one target it seems, I hope it get fixed then. :slight_smile:

Hi, folks.

In the meantime, is there any other way to do this, without doing it via the regular cli ?

Using CLI is the prefered method :slight_smile:

There do however exist a HTTP API so you can use external tools to alter the configuration of your VyOS box.

There is also a webgui in progress with concept drawings released over at:

At the upper parts of the above site you can select different views (no account is needed).

1 Like

Hey @Apachez, yeah of course using the CLI is the best method, but while it doesn’t works, do we have any other way to manipulate this directly in frr ?

Anyone in regards of this ? :smiley: