<div dir="ltr"><div>Greetings,<br><br></div>Sorry for the dumb question, but I'm trying to work out how to set the extended communities.  Anybody know how to set the Link Bandwidth Extended communities?<br><br>As defined here:<br><a href="https://tools.ietf.org/html/draft-ietf-idr-link-bandwidth-04" target="_blank">https://tools.ietf.org/html/draft-ietf-idr-link-bandwidth-04</a><br><div><br>Where we're hoping to do this:<br><a href="http://www.juniper.net/techpubs/en_US/junos14.1/topics/topic-map/bgp-multipath-unequal.html" target="_blank">http://www.juniper.net/techpubs/en_US/junos14.1/topics/topic-map/bgp-multipath-unequal.html</a><br><br></div><div>Basically, need to set the community to:<br>"<br>   This document defines a specific application of the two-octet AS<br>   specific extended community.  IANA is requested to assign a sub- type<br>   value of 0x04 for the link bandwidth extended community.<br><br><br>      Name                                           Value<br>      ----                                           -----<br>      non-transitive Link Bandwidth Ext. Community  0x4004<br>"<br><br></div><div>I've been reading at the data types section of the bird doco ( <a href="http://bird.network.cz/?get_doc&f=bird-5.html" target="_blank">http://bird.network.cz/?get_doc&f=bird-5.html</a> ), and trying different way for a while now, and just don't seem to be able to get it right.<br><br>e.g.<br>export filter { bgp_ext_community.add((4, 65300, 999)); accept; };<br></div><div>( Mostly stolen from this nice example: <a href="http://bird.mpls.in/projects/mpls-bird/wiki/Bird_pe/2">http://bird.mpls.in/projects/mpls-bird/wiki/Bird_pe/2</a> )<br></div><div><div><div><br></div><div>On a juniper this is a config to apply a link bandwidth community:<br>-------------------------<br>protocols {<br>    bgp {<br>        group CORE {<br>            type internal;<br>            description "core full mesh";<br>            passive;<br>            log-updown;<br>            family inet {<br>                unicast;<br>            }<br>            family inet-vpn {<br>                unicast;                <br>            }<br>            export [ beer ];<br>            peer-as 65300;<br>            local-as 65300;<br>            multipath;<br>            neighbor 10.1.0.2 {<br>                description bird1;<br>                local-address 10.1.0.1;<br>            }<br>        }<br>    }<br>policy-options {<br>    policy-statement beer {<br>        from {<br>            route-filter <a href="http://9.9.9.9/32" target="_blank">9.9.9.9/32</a> exact;<br>        }<br>        then {<br>            community add beer;<br>            accept;<br>        }<br>    }<br>    community beer members bandwidth:65300:9999;<br>}<br>-------------------------<br></div><div>So the community "beer" has this value "bandwidth" which the junos knows is 0x04.<br><br></div><div>In bird it looks like this:<br></div><div>-------------------------<br>bird> show route <a href="http://9.9.9.9/32">9.9.9.9/32</a> all<br><a href="http://9.9.9.9/32">9.9.9.9/32</a>         via 10.1.0.1 on VLAN100 [core 17:38:44] * (100/0) [i]<br>    Type: BGP unicast univ<br>    BGP.origin: IGP<br>    BGP.as_path: <br>    BGP.next_hop: 10.1.0.1<br>    BGP.local_pref: 100<br>    BGP.ext_community: (unknown 0x4, 65300, 1176255488)<br>-------------------------<br></div><div><br></div><div>When tcpdump-ed the update has the values: 0x0004 ff14 461c3c00<br><br></div><div>Attached is the pcap of the bgp update with the community value set via the juniper.<br><br></div><div>Kind regards,<br>Dave<br></div><div><br><br><br></div><div><br><br></div></div></div></div>