cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
343
Views
5
Helpful
1
Replies

segment routing bgp auto steering on CSR

sachin30720041
Level 1
Level 1

Hello,

ios10 ----CSR1-----------CSR2--------CSR3---ios11

ios10 and ios 11 are CE routers.

CSR1 and CSR3 are PE router.

I am configuring bgp autostreeing on CSR1 and CSR3

But when I execute following command on CSR1 I do not see any extended community in the vpnv4 routes.

color:100 should be part extended community on CSR1.right ?

Router#show bgp vpnv4 unicast rd 1:1 11.11.11.11
BGP routing table entry for 1:1:11.11.11.11/32, version 6
Paths: (1 available, best #1, table vrf1)
Not advertised to any peer
Refresh Epoch 1
Local, imported path from 3:3:11.11.11.11/32 (global)
3.3.3.3 (metric 30) (via default) from 3.3.3.3 (3.3.3.3)
Origin incomplete, metric 2, localpref 100, valid, internal, best
Extended Community: RT:3:3 OSPF DOMAIN ID:0x0005:0x000000010200
OSPF RT:0.0.0.0:2:0 OSPF ROUTER ID:3.3.3.3:0
mpls labels in/out nolabel/18
rx pathid: 0, tx pathid: 0x0
Updated on Jul 16 2022 06:40:03 UTC

 

vios1
---------
int gi0/1
ip address 100.10.100.10 255.255.255.0
ip ospf 1 area 0
no sh

int lo0
ip address 10.10.10.10 255.255.255.255
ip ospf 1 area 0

router ospf 1
exit

csr1
-----------------
route-map rmap1
set extcommuni color 100
exit

segment-routing mpls
connected-prefix-sid-map
address-family ipv4
1.1.1.1/32 index 1 range 1
exit
exit

vrf def vrf1
rd 1:1
address-family ipv4 uni
export map rmap1
route-target import 3:3
route-target export 1:1
exit


int gi1
vrf forwarding vrf1
ip address 100.10.100.1 255.255.255.0
no sh

int gi2
ip address 100.10.20.1 255.255.255.0
ip router isis 1
isis network point-to-point
no sh


int lo0
ip address 1.1.1.1 255.255.255.255
ip router isis 1
exit

router ospf 1 vrf vrf1
router-id 1.1.1.1
exit

router isis 1
router-id lo0
distributed link-state
net 49.0001.1111.1111.1111.00
is-type level-1
router-id lo0

metric-style wide
segment-routing mpls
mpls traffic-eng
mpls traffic-eng router-id lo0
exit

router bgp 13
template peer-session session1
remote-as 13
update-source lo0
exit
neighbor 3.3.3.3 inherit peer-session session1
address-family vpnv4 unicast
neighbor 3.3.3.3 activate
exit
address-family ipv4 vrf vrf1
redistribute ospf 1
exit


CSR2
------------------------
segment-routing mpls
connected-prefix-sid-map
address-family ipv4
2.2.2.2/32 index 2 range 1
exit
exit

int gi2
ip address 100.10.20.2 255.255.255.0
ip router isis 1
isis network point-to-point
no sh

int gi1
ip address 100.20.30.2 255.255.255.0
ip router isis 1
isis network point-to-point
no sh

int lo0
ip address 2.2.2.2 255.255.255.255
ip router isis 1
exit

router isis 1
router-id lo0
distributed link-state
net 49.0001.2222.2222.2222.00
is-type level-1
router-id lo0
metric-style wide
segment-routing mpls
mpls traffic-eng
mpls traffic-eng router-id lo0
exit


CSR3
---------------
route-map rmap1
set extcommuni color 100
exit


segment-routing mpls
connected-prefix-sid-map
address-family ipv4
3.3.3.3/32 index 3 range 1
exit
exit

vrf def vrf1
rd 3:3
address-family ipv4 uni
export map rmap1
route-target import 1:1
route-target export 3:3
exit
exit
router ospf 1 vrf vrf1
router-id 3.3.3.3
redistribute bgp 13
exit

int gi2
vrf forwarding vrf1
ip address 100.30.110.3 255.255.255.0
ip ospf 1 area 0
no sh


int gi1
ip address 100.20.30.3 255.255.255.0
ip router isis 1
isis network point-to-point
no sh

int lo0
ip address 3.3.3.3 255.255.255.255
ip router isis 1
exit

router isis 1
router-id lo0
distribute link-state
net 49.0001.3333.3333.3333.00
is-type level-1
router-id lo0
metric-style wide
segment-routing mpls
mpls traffic-eng level-1
mpls traffic-eng router-id lo0
exit

 

router bgp 13
no bgp default ipv4-unicast
template peer-session session1
remote-as 13
update-source lo0
exit
neighbor 1.1.1.1 inherit peer-session session1
address-family vpnv4 unicast
neighbor 1.1.1.1 activate
exit
address-family ipv4 vrf vrf1
redistribute ospf 1
exit


ios11
----------------
int gi0/2
ip address 100.30.110.11 255.255.255.0
ip ospf 1 area 0
no sh

int lo0
ip address 11.11.11.11 255.255.255.255
ip ospf 1 area 0
exit

 Thanks,

Sachin    

1 Accepted Solution

Accepted Solutions

Harold Ritter
Level 12
Level 12

Hi @sachin30720041 ,

 

Setting the color community through the export-map is not supported. Try setting it outbound on the VPNv4 session like in the following example:

https://www.cisco.com/c/en/us/td/docs/routers/ncs4200/configuration/guide/segment-routing/17-1-1/b-segment-routing-17-1-ncs4200/m-pce-delegated.html

 

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

1 Reply 1

Harold Ritter
Level 12
Level 12

Hi @sachin30720041 ,

 

Setting the color community through the export-map is not supported. Try setting it outbound on the VPNv4 session like in the following example:

https://www.cisco.com/c/en/us/td/docs/routers/ncs4200/configuration/guide/segment-routing/17-1-1/b-segment-routing-17-1-ncs4200/m-pce-delegated.html

 

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