08-29-2022 01:07 AM - edited 08-29-2022 01:12 AM
Hello All,
XRV9K1(PCE)
/
CSR2--------------------CSR6
/ \
CSR4 CSR3(PCC)
\ /
CSR5-----------------------CSR7
XRV9K1 is PCE and CSR3 is PCC.
'on-demand' policy is configured on CSR3. And affinity for the policy is 'include-any name GOLD'. According to my understanding policy should take any path which has GOLD affinity. Am I correct ?
Affinity of link between CSR5 and CSR7 is 'GOLD' colored but still CSR3's policy take path via CSR6. I do not know what config am I missing. Below is the complete configuration.
CSR3#show segment-routing traffic-eng policy all
Name: *4.4.4.4|103 (Color: 103 End-point: 4.4.4.4)
Owners : BGP
Status:
Admin: up, Operational: up for 00:19:26 (since 08-29 07:51:51.113)
Candidate-paths:
Preference 100 (BGP):
Dynamic (pce 1.1.1.1) (active)
Metric Type: TE, Path Accumulated Metric: 30
16002 [Prefix-SID, 2.2.2.2]
16004 [Prefix-SID, 4.4.4.4]
Attributes:
Binding SID: 21
Allocation mode: dynamic
XRV1(PCE)
-------------
int gi0/0/0/0
ipv4 address 100.10.20.1 255.255.255.0
no sh
int lo0
ipv4 address 1.1.1.1 255.255.255.255
router isis 1
net 49.0001.1111.1111.1111.00
is-type level-2
address-family ipv4 unicast
router-id lo0
metric-style wide
int gi0/0/0/0
point-to-point
address-family ipv4 unicast
exit
int lo0
address-family ipv4 unicast
exit
root
router bgp 1
address-family link-state link-state
exit
session-group session1
remote-as 1
update-source lo0
exit
neighbor 2.2.2.2
use session-group session1
address-family link-state link-state
exit
pce
address ipv4 1.1.1.1
peer ipv4 4.4.4.4
peer ipv4 3.3.3.3
exit
CSR2
-------------
segment-routing mpls
connected-prefix-sid-map
address-family ipv4
2.2.2.2/32 index 2 range 1
exit
int gi3
ip address 100.10.20.2 255.255.255.0
isis network point-to-point
ip router isis 1
no sh
int gi1
ip address 100.20.40.2 255.255.255.0
isis network point-to-point
ip router isis 1
no sh
int gi2
ip address 100.20.60.2 255.255.255.0
isis network point-to-point
ip router isis 1
no sh
int lo0
ip address 2.2.2.2 255.255.255.255
ip router isis 1
router isis 1
net 49.0002.2222.2222.2222.00
is-type level-2
distribute link-state
router-id lo0
metric-style wide
segment-routing mpls
mpls traffic-eng router-id lo0
mpls traffic-eng level-2
router bgp 1
template peer-session session1
remote-as 1
update-source lo0
exit
neighbor 1.1.1.1 inherit peer-session session1
address-family link-state link-state
neighbor 1.1.1.1 activate
exit
csr4
-------------
vrf def vrf1
rd 1:1
address-family ipv4 unicast
route-target export 1:1
route-target import 3:3
exit
int lo1
vrf forwarding vrf1
ip address 41.41.41.41 255.255.255.255
int lo2
vrf forwarding vrf1
ip address 42.42.42.42 255.255.255.255
segment-routing mpls
connected-prefix-sid-map
address-family ipv4
4.4.4.4/32 index 4 range 1
exit
int gi1
ip address 100.20.40.4 255.255.255.0
ip router isis 1
isis network point-to-point
no sh
int gi2
ip address 100.40.50.4 255.255.255.0
ip router isis 1
isis network point-to-point
no sh
int lo0
ip address 4.4.4.4 255.255.255.255
ip router isis 1
router isis 1
router-id lo0
distribute link-state
net 49.0004.4444.4444.4444.00
is-type level-2
metric-style wide
passive-interface lo0
advertise passive-only
segment-routing mpls
mpls traffic-eng router-id lo0
mpls traffic-eng level-2
exit
segment-routing traffic-eng
pcc
pce address 1.1.1.1
exit
on-demand color 104
authorize
candidate-path
preference 100
dynamic
pcep
exit
constraints
segments
dataplane mpls
exi
route-map rmap1
set extcommun color 103
exit
router bgp 1
no bgp default ipv4-unicast
template peer-session session1
remote-as 1
update-source lo0
exit
neighbor 3.3.3.3 inherit peer-session session1
address-family vpnv4 unicast
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 route-map rmap1 out
exit
address-family ipv4 vrf vrf1
network 41.41.41.41 mask 255.255.255.255
network 42.42.42.42 mask 255.255.255.255
exit
CSR5
---------------------------
segment-routing mpls
connected-prefix-sid-map
address-family ipv4
5.5.5.5/32 index 5 range 1
exit
segment-routing traffic-eng
affinity-map
name GOLD bit-position 10
int gi1
affinity
name GOLD
exit
int gi2
affinity
name GOLD
exit
exit
int gi1
ip address 100.50.70.5 255.255.255.0
ip router isis 1
isis network point-to-point
no sh
int gi2
ip address 100.40.50.5 255.255.255.0
ip router isis 1
isis network point-to-point
no sh
int lo0
ip address 5.5.5.5 255.255.255.255
ip router isis 1
router isis 1
router-id lo0
distribute link-state
net 49.0005.5555.5555.5555.00
is-type level-2
metric-style wide
passive-interface lo0
advertise passive-only
segment-routing mpls
mpls traffic-eng router-id lo0
mpls traffic-eng level-2
exit
CSR6
---------------------------
segment-routing mpls
connected-prefix-sid-map
address-family ipv4
6.6.6.6/32 index 6 range 1
exit
int gi1
ip address 100.30.60.6 255.255.255.0
ip router isis 1
isis network point-to-point
no sh
int gi2
ip address 100.20.60.6 255.255.255.0
ip router isis 1
isis network point-to-point
no sh
int lo0
ip address 6.6.6.6 255.255.255.255
ip router isis 1
router isis 1
router-id lo0
distribute link-state
net 49.0006.6666.6666.6666.00
is-type level-2
metric-style wide
passive-interface lo0
advertise passive-only
segment-routing mpls
mpls traffic-eng router-id lo0
mpls traffic-eng level-2
exit
CSR7
---------------------------
segment-routing traffic-eng
interface GigabitEthernet1
affinity
name GOLD
affinity-map
name GOLD bit-position 10
segment-routing mpls
segment-routing mpls
connected-prefix-sid-map
address-family ipv4
7.7.7.7/32 index 7 range 1
exit
int gi1
ip address 100.50.70.7 255.255.255.0
ip router isis 1
isis network point-to-point
no sh
int gi2
ip address 100.30.70.7 255.255.255.0
ip router isis 1
isis network point-to-point
no sh
int lo0
ip address 7.7.7.7 255.255.255.255
ip router isis 1
router isis 1
router-id lo0
distribute link-state
net 49.0007.7777.7777.7777.00
is-type level-2
metric-style wide
passive-interface lo0
advertise passive-only
segment-routing mpls
mpls traffic-eng router-id lo0
mpls traffic-eng level-2
exit
CSR3
-------------------
segment-routing mpls
connected-prefix-sid-map
address-family ipv4
3.3.3.3/32 index 3 range 1
exit
vrf def vrf1
rd 3:3
address-family ipv4 unicast
route-target export 3:3
route-target import 1:1
exit
int lo1
vrf forwarding vrf1
ip address 31.31.31.31 255.255.255.255
int lo2
vrf forwarding vrf1
ip address 32.32.32.32 255.255.255.255
int gi1
ip address 100.30.60.3 255.255.255.0
ip router isis 1
isis network point-to-point
no sh
int gi2
ip address 100.30.70.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
router isis 1
net 49.0003.3333.3333.3333.00
is-type level-2
distribute link-state
router-id lo0
metric-style wide
segment-routing mpls
mpls traffic-eng router-id lo0
mpls traffic-eng level-2
exit
segment-routing traffic-eng
pcc
pce address 1.1.1.1
on-demand color 103
authorize
candidate-path
preference 100
dynamic
pcep
exit
constraints
include-any
name GOLD
segments
dataplane mpls
exi
route-map rmap1
set extcommun color 104
exit
router bgp 1
template peer-session session1
remote-as 1
update-source lo0
exit
neighbor 4.4.4.4 inherit peer-session session1
address-family vpnv4 unicast
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 route-map rmap1 out
exit
address-family ipv4 unicast vrf vrf1
network 31.31.31.31 mask 255.255.255.255
network 32.32.32.32 mask 255.255.255.255
exit
Thanks,
Sachin
08-29-2022 08:56 AM - edited 08-29-2022 09:02 AM
Hi @sachin30720041 ,
Make sure you configuration the affinity on the policy as follow on CSR3 and that you set the GOLD affinity on the interface towards CSR7:
segment-routing traffic-eng
affinity-map
name GOLD bit-position 10
interface GigabitEthernet2
affinity
name GOLD
!
on-demand color 103
candidate-paths
preference 100
affinity
include-any
name GOLD
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