cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
979
Views
5
Helpful
4
Replies

OSPF to BGP set community

Support ACME
Level 1
Level 1

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

 

1 Accepted Solution

Accepted Solutions

Harold Ritter
Level 12
Level 12

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,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

4 Replies 4

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

Harold Ritter
Level 12
Level 12

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,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Support ACME
Level 1
Level 1

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

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,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
Review Cisco Networking for a $25 gift card