Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malformed communities attribute '31210:0:31210' #17549

Closed
liuxyon opened this issue Dec 3, 2024 · 5 comments
Closed

Malformed communities attribute '31210:0:31210' #17549

liuxyon opened this issue Dec 3, 2024 · 5 comments
Assignees
Labels

Comments

@liuxyon
Copy link

liuxyon commented Dec 3, 2024

I am using FRR10.2 ubuntu 24.04. when i setup 31210:0:31210 communities, it is show : Malformed communities attribute '31210:0:31210'

https://bgp.he.net/AS31210#_whois
Route-servers DO NOT modify, process or remove communities received from customers except
remarks: those which are processed by the route-servers themselves:
remarks: +-------------+--------------------+-------------------+---------------------------------------+
remarks: | RFC1997 | RFC4360 | RFC8092 | Meaning |
remarks: +-------------+--------------------+-------------------+---------------------------------------+
remarks: | 0:31210 | target:0:31210 | 31210:0:31210 | Do not announce route to any peer |
remarks: | 0:X | target:0:X | 31210:0:X | Do not announce route to AS X |
remarks: | 31210:X | target:31210:X | 31210:31210:X | Announce route only to AS X |
remarks: | 31210:31210 | target:31210:31210 | 31210:31210:31210 | Announce route to all peers (default)|
remarks: +-------------+--------------------+-------------------+---------------------------------------+

@ton31337
Copy link
Member

ton31337 commented Dec 3, 2024

Show us first how you configure it...

@ton31337 ton31337 self-assigned this Dec 3, 2024
@ton31337 ton31337 added the bgp label Dec 3, 2024
@liuxyon
Copy link
Author

liuxyon commented Dec 3, 2024

When I use the command to add 31210:0:31210 to route-map 303686 permit 50, it shows a format error

!
! Zebra configuration saved from vty
! 2024/12/01 23:26:58
!
frr version 10.2
frr defaults datacenter
!
hostname
log file /etc/frr/frr.log
!
!
!
!
!
router bgp 39853
bgp router-id 77.99.28.30
no bgp hard-administrative-reset
no bgp default ipv4-unicast
no bgp default show-hostname
no bgp default show-nexthop-hostname
bgp graceful-shutdown
bgp bestpath as-path confed
no bgp network import-check
timers bgp 60 180
neighbor 2a0d:2416:513:a::11 remote-as 65105
neighbor 2a0d:2416:513:a::11 description "my local cn"
neighbor 2a0d:2416:513:a::11 local-role provider
neighbor 2a0d:2416:513:a::11 ttl-security hops 1
neighbor 2a0d:2416:513:a::11 disable-connected-check
neighbor 2a0d:2416:513:a::11 update-source wg1
neighbor 2a0d:2416:513:a::11 advertisement-interval 0
neighbor 2a0d:2416:513:a::11 timers connect 120
no neighbor 2a0d:2416:513:a::11 capability software-version
neighbor 2a0d:2416:513:a::11 sender-as-path-loop-detection
neighbor 2a0d:2416:513:9753::3 remote-as 303686
neighbor 2a0d:2416:513:9753::3 local-role customer
neighbor 2a0d:2416:513:9753::3 disable-connected-check
neighbor 2a0d:2416:513:9753::3 update-source AS303686
neighbor 2a0d:2416:513:9753::3 advertisement-interval 0
neighbor 2a0d:2416:513:9753::3 timers connect 120
!
address-family ipv6 unicast
network 2a0d:2406:513::/48
neighbor 2a0d:2416:513:9753::3 activate
neighbor 2a0d:2416:513:9753::3 remove-private-AS all
neighbor 2a0d:2416:513:9753::3 soft-reconfiguration inbound
neighbor 2a0d:2416:513:9753::3 prefix-list ipv6in in
neighbor 2a0d:2416:513:9753::3 prefix-list myv6out out
neighbor 2a0d:2416:513:9753::3 route-map A01 in
neighbor 2a0d:2416:513:9753::3 route-map 303686 out
maximum-paths 100
exit-address-family
!
exit
!
access-list 1 remark utility ACL to deny everything
access-list 1 seq 5 deny any
ipv6 prefix-list mycn6out seq 5 deny ::1/128
ipv6 prefix-list mycn6out seq 10 deny ::/128
ipv6 prefix-list mycn6out seq 15 deny 3ffe::/16 le 128
ipv6 prefix-list mycn6out seq 20 deny 2001:db8::/32 le 128
ipv6 prefix-list mycn6out seq 25 deny 2001:10::/28 le 128
ipv6 prefix-list mycn6out seq 30 deny 2001:2::/48 le 128
ipv6 prefix-list mycn6out seq 35 deny 100::/64 le 128
ipv6 prefix-list mycn6out seq 40 deny ::/8 le 128
ipv6 prefix-list mycn6out seq 45 deny fc00::/7 le 128
ipv6 prefix-list mycn6out seq 50 deny ff00::/8 le 128
ipv6 prefix-list mycn6out seq 55 deny 2002::/16 le 128
ipv6 prefix-list mycn6out seq 60 deny ::/0 ge 49 le 128
ipv6 prefix-list mycn6out seq 100 deny 2001::/32
ipv6 prefix-list mycn6out seq 110 permit 2000::/3 le 48
ipv6 prefix-list mycn6out seq 160 permit 2002::/16
ipv6 prefix-list mycn6out seq 999 deny any
ipv6 prefix-list myv6out seq 50 permit 2a0d:2408:513::/48
ipv6 prefix-list myv6out seq 999 deny any
ip prefix-list ipv4no seq 999 deny any
ipv6 prefix-list no seq 999 deny any
!
bgp as-path access-list 2 seq 5 deny ^([0-9]+)(\1)+$
bgp as-path access-list 2 seq 10 permit .*
bgp as-path access-list 5 seq 5 deny ^([0-9]+)(
\1)+$
bgp as-path access-list 5 seq 999 permit .*
bgp as-path access-list 97 seq 5 permit ^65101_
bgp as-path access-list 98 seq 5 permit ^64661_
bgp as-path access-list 99 seq 5 permit (4294967[0-1][0-9][0-9])|(42949672[0-8][0-9])|(429496729[0-4])
bgp as-path access-list 99 seq 10 permit (42949[0-5][0-9][0-9][0-9][0-9])|(429496[0-6][0-9][0-9][0-9])
bgp as-path access-list 99 seq 15 permit (429[0-3][0-9][0-9][0-9][0-9][0-9][0-9])|(4294[0-8][0-9][0-9][0-9][0-9][0-9])
bgp as-path access-list 99 seq 20 permit (6449[6-9])|(6450[0-9])|(6451[0-1])|(6553[6-9])|(6554[0-9])|(6555[0-1])
bgp as-path access-list 99 seq 25 permit 0
bgp as-path access-list 99 seq 30 permit 1310[0-6][0-9]|13107[0-1]
bgp as-path access-list 99 seq 35 permit 23456
bgp as-path access-list 99 seq 40 permit 42[0-8][0-9][0-9][0-9][0-9][0-9][0-9][0-9]
bgp as-path access-list 99 seq 45 permit 6(4(5(1[2-9]|[2-9][0-9])|[6-9][0-9][0-9])|5([0-4][0-9][0-9]|5([0-2][0-9]|3[0-5])))
bgp as-path access-list 99 seq 50 permit 6555[2-9]|655[6-9][0-9]|65[6-9][0-9][0-9]|6[6-9][0-9][0-9][0-9]
bgp as-path access-list 99 seq 55 permit [7-9][0-9][0-9][0-9][0-9]|1[0-2][0-9][0-9][0-9][0-9]|130[0-9][0-9][0-9]
!

!

route-map 303686 permit 50
match ipv6 address prefix-list myv6out
set community 1299:2000 1299:2870 1299:2880 1299:5009 1299:5569 1299:7009 2914:1205 2914:4029 3356:70 29632:64011 29632:64021 29632:64031 29632:64041 29632:64051 29632:64061 29632:64141 29632:64161 29632:64211 29632:64221 29632:64241 29632:64251 29632:64261 29632:64271 29632:64285 29632:64291 29632:64301 29632:64321 29632:64331 29632:64341 29632:64361 29632:64371 29632:64381 29632:64401 29632:64411 29632:64421 29632:64441 29632:64455 29632:64465 29632:64475 29632:64491 29632:64991 56630:9972 additive
set metric 0
exit
!
route-map BGP_FILTER_IN deny 10
exit
!
!
!
!
!
rpki
rpki polling_period 300
rpki retry_interval 60
rpki cache tcp 77.99.28.30 3323 preference 1
rpki cache tcp ::1 3323 preference 2
exit
!
!

@ton31337
Copy link
Member

ton31337 commented Dec 3, 2024

When I use the command to add 31210:0:31210 to route-map 303686 permit 50, it shows a format error

Show the whole command you are entering.

@liuxyon
Copy link
Author

liuxyon commented Dec 3, 2024

v7251# c
v7251(config)# route-map 303686 permit 50
v7251(config-route-map)# set community 1299:2000 1299:2870 1299:2880 1299:5009 1299:5569 1299:7009 2914:1205 2914:4029 31210:0:31210 3356:70 29632:64011 29632:64021 29632:64031 29632:64041 29632:64051 29632:64061 29632:64141 29632:64161 29632:64211 29632:64221 29632:64241 29632:64251 29632:64261 29632:64271 29632:64285 29632:64291 29632:64301 29632:64321 29632:64331 29632:64341 29632:64361 29632:64371 29632:64381 29632:64401 29632:64411 29632:64421 29632:64441 29632:64455 29632:64465 29632:64475 29632:64491 29632:64991 56630:9972 additive
% Malformed communities attribute '1299:2000 1299:2870 1299:2880 1299:5009 1299:5569 1299:7009 2914:1205 2914:4029 31210:0:31210 3356:70 29632:64011 29632:64021 29632:64031 29632:64041 29632:64051 29632:64061 29632:64141 29632:64161 29632:64211 29632:64221 29632:64241 29632:64251 29632:64261 29632:64271 29632:64285 29632:64291 29632:64301 29632:64321 29632:64331 29632:64341 29632:64361 29632:64371 29632:64381 29632:64401 29632:64411 29632:64421 29632:64441 29632:64455 29632:64465 29632:64475 29632:64491 29632:64991 56630:9972'

@ton31337
Copy link
Member

ton31337 commented Dec 3, 2024

X:X:X is a large community, don't mix with community. Use set large-community...

@ton31337 ton31337 closed this as completed Dec 3, 2024
@ton31337 ton31337 added the question Not a bug label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants