06-14-2022 10:26 AM - last edited on 06-15-2022 11:18 PM by Translator
Dear ALL,
I can use the "table-map SetTag" in BGP configuration for match community ,then set the tag number, it works. but how to apply the
route -map
to match tag number, then set the community.
Below is my configuration.
ip community-list 2 permit 2000
ip community-list 3 permit 2100
ip community-list 4 permit 2300
ip community-list 5 permit 1000
!
route-map SetTag permit 10
match community 2
set tag 2000
!
route-map SetTag permit 20
match community 3
set tag 2100
!
route-map SetTag permit 30
match tag 64520
set community 5
Support@ACMEHK
Solved! Go to Solution.
06-14-2022 03:56 PM - last edited on 06-15-2022 11:22 PM by Translator
Hi @Support ACME ,
You should configure a separate
route-map
and use it when redistributing from ospf to bgp, as follow:
route-map ospf2bgp permit 10
match tag 64520
set community xxx:xxx
router bgp xxx
address-family ipv4 unicast
redistribute ospf xxx route-map ospf2bgp
Regards,
06-14-2022 02:23 PM - last edited on 06-15-2022 11:19 PM by Translator
Hello,
I am not sure exactly what you are looking for. The below does not work ?
route-map SetTag permit 30
match tag 64520
set community 5
06-14-2022 03:56 PM - last edited on 06-15-2022 11:22 PM by Translator
Hi @Support ACME ,
You should configure a separate
route-map
and use it when redistributing from ospf to bgp, as follow:
route-map ospf2bgp permit 10
match tag 64520
set community xxx:xxx
router bgp xxx
address-family ipv4 unicast
redistribute ospf xxx route-map ospf2bgp
Regards,
06-15-2022 11:17 AM - last edited on 06-15-2022 11:20 PM by Translator
one more thing, how to use the old BGP community format? i had set the community is 1000, but the fortinet recevied is 0:1000.
tw#show ip bgp 99.151.144.0
BGP routing table entry for 99.151.144.0/24, version 10
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Advertised to update-groups:
1
Local
192.168.10.1 from 0.0.0.0 (10.255.255.10)
Origin incomplete, metric 2, localpref 100, weight 32768, valid, sourced,
best
Community: 1000
TW # get router info bgp network 99.151.144.0
VRF 0 BGP routing table entry for 99.151.144.0/24
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Advertised to non peer-group peers:
169.254.218.13
Original VRF 0
65532
10.194.0.254 from 10.194.0.254 (10.255.255.10)
Origin incomplete metric 2, localpref 100, weight 100, valid, external, best
Community: 0:1000
Last update: Thu Jun 16 01:56:41 2022
Support@ACMEHK
06-15-2022 01:04 PM - edited 06-15-2022 01:05 PM
Hi @Support ACME ,
You need to configure "ip bgp new-format" to use the xxx:xxx format and "no ip bgp new-format" to use the decimal value. This only affects the local display though. The fortinet will still receive it as xxx:xxx, which is the standard format.
Regards,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide