bgp link bandwidth extended community question

gautham devalapalli gautham.csus at gmail.com
Tue Apr 19 09:45:29 CEST 2022


Hello,

I am using BIRD 2.0.8 to establish a bgp session with a nexus switch. I am
trying to set bgp ext community link bandwidth. Since this is not
explicitly supported I am following the thread below to set it as unknown.

https://marc.info/?l=bird-users&m=142108436602254&w=2

I tried setting
*bgp_ext_community.add((unknown 0x4004,65000,1000));*

*and *
*bgp_ext_community.add((unknown 0x4004, 65000, 0x447a0000));*

https://datatracker.ietf.org/doc/html/draft-ietf-idr-link-bandwidth-07#section-2

*bird bgp config:*
protocol bgp ebgp_node01 {
local 10.0.10.3 as 65000;
neighbor 10.0.10.1 as 100;
ipv4 {
import all;
export filter {
if net ~[50.0.1.0/24+] then {
bgp_ext_community.add((unknown 0x4004,65000,0x447a0000));
accept;
}
else
reject;
};
};
}

protocol static staticv4 {
ipv4 {
import all;
export all;
};
route 50.0.1.1/32 via 10.0.10.3;
route 50.0.1.2/32 via 10.0.10.3;
route 50.0.2.1/32 via 10.0.10.3;
route 50.0.2.2/32 via 10.0.10.3;
}

On wireshark I see the bird does not send this ext community as part of the
bgp UPDATE message.
https://hpd.gasmi.net/

0000   00 de fb d4 89 c7 00 00 10 00 10 03 08 00 45 c0  ..............E.
0010   00 69 ea e1 40 00 01 06 65 ea 0a 00 0a 03 0a 00  .i.. at ...e.......
0020   0a 01 bc 23 00 b3 44 73 56 1a 80 6c d4 a0 80 18  ...#..DsV..l....
0030   00 e5 2c 61 00 00 01 01 08 0a 11 5c c1 85 cf 74  ..,a.......\...t
0040   1d 5c ff ff ff ff ff ff ff ff ff ff ff ff ff ff  .\..............
0050   ff ff 00 35 02 00 00 00 14 40 01 01 00 40 02 06  ...5..... at ...@..
0060   02 01 00 00 fd e8 40 03 04 0a 00 0a 03 20 32 00  ...... at ...... 2.
0070   01 02 20 32 00 01 01                             .. 2...

Am I missing something basic here?

Sincerely
Gautham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20220419/c4552d4d/attachment.htm>


More information about the Bird-users mailing list