Upcoming Maintenance Alert:

The UBNT Community will be upgraded at 5pm MDT on April 25th. During this time the community forums will be set to read-only status.

Learn more

×
Reply
New Member
Posts: 11
Registered: ‎11-18-2016
Solutions: 1

Support for BGP Large communities

Hi,

 

IETF is working on large communities, to enable owners of a 32bit ASN to do something with BGP-communities as well. I have just ordered two ERPro‑8's and have a 32bit ASN and I would like to use large communities in the near future.

 

Can anybody please let me know how this fits on Ubiquitiies roadmap? A Quagga patch is already in place. For more info, please see:

 

http://largebgpcommunities.net/

 

Ubiquiti Employee
Posts: 2,985
Registered: ‎02-04-2013
Kudos: 340
Solutions: 288

Re: Support for BGP Large communities

ubnt@rtr2# set policy community-list 100 rule 1 action permit
[edit]
ubnt@rtr2# set policy community-list 100 rule 1 regex 2914:65400:38016
[edit]
ubnt@rtr2# commit
[edit]
ubnt@rtr2# sudo vtysh -c "sh run" | grep comm
ip community-list 100 permit 2914:65400:38016
[edit]
ubnt@rtr2# run show version
Version:      v1.9.0
Build ID:     4901118
Build on:     08/04/16 11:31
Copyright:    2012-2016 Ubiquiti Networks, Inc.
HW model:     EdgeRouter X SFP 6-Port
HW S/N:       0418D6063190
Uptime:       22:45:55 up 3 days, 22:46,  1 user,  load average: 1.04, 1.11, 19
[edit]

What are the large communities you want to use?

New Member
Posts: 11
Registered: ‎11-18-2016
Solutions: 1

Re: Support for BGP Large communities

Have you read the site? Man Happy

 

Large communities is about community-support for 32bits ASN's, which is new.

Ubiquiti Employee
Posts: 2,985
Registered: ‎02-04-2013
Kudos: 340
Solutions: 288

Re: Support for BGP Large communities

ubnt@rtr2# set protocols bgp 12345678
[edit]
ubnt@rtr2# commit
[edit]
ubnt@rtr2# set policy community-list
Possible completions:
  <1-99>        BGP community list (standard)
  <100-199>     BGP community list (expanded)

[edit]
ubnt@rtr2# set policy community-list 101 rule 1 regex 12345678:100
[edit]
ubnt@rtr2# set policy community-list 101 rule 1 action permit
[edit]
ubnt@rtr2# commit
[ policy ]
Starting routing daemon: ripd ripngd ospfd ospf6d bgpd.

[edit]
ubnt@rtr2# sudo vtysh -c "sh run" | grep comm
ip community-list 101 permit 12345678:100
[edit]
ubnt@rtr2#
New Member
Posts: 11
Registered: ‎11-18-2016
Solutions: 1

Re: Support for BGP Large communities

Since ubnt is using Quagga, and Quagga does not yet support large communities, I find it hard to believe that you do. Man Happy

 

Quagga still has a bug open to support this: https://bugzilla.quagga.net/show_bug.cgi?id=875 

New Member
Posts: 2
Registered: ‎11-24-2016

Re: Support for BGP Large communities

Dear Arthur,

 

I fear you might be mixing up Extended Communities and Large Communities.

The VyOS project is waiting for the Quagga patch to be finished: https://phabricator.vyos.net/T143 - I expect we'll round up the quagga work any day now.

 

Kind regards,

 

Job

Highlighted
Ubiquiti Employee
Posts: 2,985
Registered: ‎02-04-2013
Kudos: 340
Solutions: 288

Re: Support for BGP Large communities

Spec -

https://tools.ietf.org/html/draft-ietf-idr-large-community-09

 

Example -

router bgp 65539
 bgp router-id 192.0.2.6
 neighbor 192.0.2.2 remote-as 65536
 neighbor 192.0.2.2 description ExaBGP
 neighbor 192.0.2.2 send-community all
 neighbor 192.0.2.2 route-map SetComms out
 neighbor 192.0.2.3 remote-as 65537
 neighbor 192.0.2.3 description GoBGP
 neighbor 192.0.2.3 send-community all
 neighbor 192.0.2.3 route-map SetComms out
 neighbor 192.0.2.4 remote-as 65538
 neighbor 192.0.2.4 description BIRD
 neighbor 192.0.2.4 send-community all
 neighbor 192.0.2.4 route-map SetComms out
 network 203.0.113.41/32
 network 203.0.113.42/32
 network 203.0.113.43/32
 network 203.0.113.45/32
 network 203.0.113.46/32

ip prefix-list OneCommunity seq 1 permit 203.0.113.41/32
ip prefix-list TwoCommunities seq 1 permit 203.0.113.42/32
ip prefix-list ThreeCommunities seq 1 permit 203.0.113.43/32
ip prefix-list WithZero seq 1 permit 203.0.113.45/32
ip prefix-list ReservedValues seq 1 permit 203.0.113.46/32

route-map SetComms permit 10
 match ip address prefix-list OneCommunity
 set large-community 65539:1:1
route-map SetComms permit 11
 match ip address prefix-list TwoCommunities
 set large-community 65539:1:1 65539:1:2
route-map SetComms permit 12
 match ip address prefix-list ThreeCommunities
 set large-community 65539:1:1 65539:1:2 65539:1:3
route-map SetComms permit 20
 match ip address prefix-list WithZero
 set large-community 65539:0:1 65539:1:0
route-map SetComms permit 40
 match ip address prefix-list ReservedValues
 set large-community 65535:1:1 4294967295:4294967295:4294967295 0:0:0

 

I'll open an ehancement request internally.

New Member
Posts: 2
Registered: ‎11-24-2016

Re: Support for BGP Large communities

Awesome!

Let me know If you need help or want to do interop testing!

Would be good if Ubnt also allow for regular expression matching and deleting, normal deleting, addition, etc :-)

Kind regards,

Job
Veteran Member
Posts: 4,696
Registered: ‎03-12-2011
Kudos: 2303
Solutions: 113

Re: Support for BGP Large communities


Jeeves_ wrote:

Since ubnt is using Quagga, and Quagga does not yet support large communities, I find it hard to believe that you do. Man Happy

 

Quagga still has a bug open to support this: https://bugzilla.quagga.net/show_bug.cgi?id=875 


Not since 1.8.

 

EdgeOS 1.7 was the last version to use Quagga.

New Member
Posts: 11
Registered: ‎11-18-2016
Solutions: 1

Re: Support for BGP Large communities

I stand happily corrected!

New Member
Posts: 11
Registered: ‎11-18-2016
Solutions: 1

Re: Support for BGP Large communities

Cool! Thanks.

New Member
Posts: 11
Registered: ‎11-18-2016
Solutions: 1

Re: Support for BGP Large communities

Reply