hello, can you help me?
I’m trying to separate the ASN blocks I get from my client epor community, block /24 community 300:424, /23 community 300:423, /22 community 300:422
I have the following route rule
[edit policy route-map AS400-IN]
vyos@vyos# show
rule 50 {
action permit
match {
ip {
address {
prefix-len 24
}
}
}
set {
community 300:424
}
}
rule 60 {
action permit
match {
ip {
address {
prefix-len 23
}
}
}
set {
community 300:423
}
}
rule 70 {
action permit
match {
ip {
address {
prefix-len 22
}
}
}
set {
community 300:422
}
}
but it ends up tagging them all with the community 300:24, can you help me?
result command run show ip bgp community 300:422
vyos@vyos# run show ip bgp community 300:422
BGP table version is 91, local router ID is 200.200.200.0, vrf id 0
Default local pref 100, local AS 300
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop’s vrf id, < announce-nh-self
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
- 200.200.100.0/22 172.16.3.2 0 400 400 i
*> 172.16.2.2 0 400 i - 200.200.100.0/23 172.16.3.2 0 400 400 i
*> 172.16.2.2 0 400 i - 200.200.100.0/24 172.16.3.2 0 400 400 i
*> 172.16.2.2 0 400 i - 200.200.101.0/24 172.16.3.2 0 400 400 i
*> 172.16.2.2 0 400 i - 200.200.102.0/23 172.16.3.2 0 400 400 i
*> 172.16.2.2 0 400 i - 200.200.102.0/24 172.16.3.2 0 400 400 i
*> 172.16.2.2 0 400 i - 200.200.103.0/24 172.16.3.2 0 400 400 i
*> 172.16.2.2 0 400 i