I'm trying to configure SR on ios-xrv in VIRL - using OSPF, but get an error when I try to specify SIDs:
How do I move past this issue? Or, any useful docs to be pointed to for SR config for ospf, or is-is?
I still cannot use the SID command.
Tried configuration for iosxrv-1
I brought up the two interfaces:
- interfaces gigabitEthernet 0/0/0/1 and 0/0/0/1
RP/0/0/CPU0:ios(config-if)#interface gigabitEthernet 0/0/0/0
RP/0/0/CPU0:ios(config-if)#ipv4 address 192.168.20.11/24
RP/0/0/CPU0:ios(config-if)#no shut
RP/0/0/CPU0:ios(config-if)#interface gigabitEthernet 0/0/0/1
RP/0/0/CPU0:ios(config-if)#ipv4 address 192.168.30.11/24
RP/0/0/CPU0:ios(config-if)#no shut
RP/0/0/CPU0:ios(config-if)#commit
Wed Nov 27 19:13:58.558 UTC
RP/0/0/CPU0:Nov 27 19:13:58.578 : ifmgr[228]: %PKT_INFRA-LINK-3-UPDOWN : Interface GigabitEthernet0/0/0/1, changed state to Down
RP/0/0/CPU0:ios(config-if)#RP/0/0/CPU0:Nov 27 19:13:58.578 : ifmgr[228]: %PKT_INFRA-LINK-3-UPDOWN : Interface GigabitEthernet0/0/0/0, changed state to Down
RP/0/0/CPU0:Nov 27 19:13:58.608 : ifmgr[228]: %PKT_INFRA-LINK-3-UPDOWN : Interface GigabitEthernet0/0/0/1, changed state to Up
RP/0/0/CPU0:Nov 27 19:13:58.608 : ifmgr[228]: %PKT_INFRA-LINK-3-UPDOWN : Interface GigabitEthernet0/0/0/0, changed state to Up
RP/0/0/CPU0:ios(config-if)#exit
RP/0/0/CPU0:ios(config)#exit
RP/0/0/CPU0:ios#sh ip int br
Wed Nov 27 19:14:28.276 UTC
Interface IP-Address Status Protocol Vrf-Name
MgmtEth0/0/CPU0/0 unassigned Shutdown Down default
GigabitEthernet0/0/0/0 192.168.20.11 Up Up default
GigabitEthernet0/0/0/1 192.168.30.11 Up Up default
Next, I configured OSPF using:
RP/0/0/CPU0:ios#configure
Wed Nov 27 19:14:42.265 UTC
RP/0/0/CPU0:ios(config)#router ospf 0
RP/0/0/CPU0:ios(config-ospf)#router-id 192.168.10.1
RP/0/0/CPU0:ios(config-ospf)#area 0
RP/0/0/CPU0:ios(config-ospf-ar)#interface gigabitEthernet 0/0/0/0
RP/0/0/CPU0:ios(config-ospf-ar-if)#interface gigabitEthernet 0/0/0/1
RP/0/0/CPU0:ios(config-ospf-ar-if)#log adjacency changes detail
RP/0/0/CPU0:ios(config-ospf)#commit
Wed Nov 27 19:15:13.563 UTC
RP/0/0/CPU0:ios(config-ospf)#end
Worked fine:
RP/0/0/CPU0:ios#sh ip proto
Wed Nov 27 19:15:22.712 UTC
Routing Protocol OSPF 0
Router Id: 192.168.10.1
Distance: 110
Non-Stop Forwarding: Disabled
Redistribution:
None
Area 0
GigabitEthernet0/0/0/0
GigabitEthernet0/0/0/1
Next, I tried to do SR with OSPF using:
But, it does not work - see below errors:
RP/0/0/CPU0:ios#configure
Wed Nov 27 19:15:31.322 UTC
RP/0/0/CPU0:ios(config)#router ospf 0
RP/0/0/CPU0:ios(config-ospf)#segment-routing mpls
RP/0/0/CPU0:ios(config-ospf)#area 0
RP/0/0/CPU0:ios(config-ospf-ar)#mpls traffic-eng area 0
^
% Invalid input detected at '^' marker.
RP/0/0/CPU0:ios(config-ospf-ar)#mpls traffic-eng ?
<cr>
Not sure what <cr> pertains to,
Skipped to next command according to the conf. example:
RP/0/0/CPU0:ios(config-ospf-ar)#mpls traffic-eng router-id Loopback0
RP/0/0/CPU0:ios(config-ospf)#segment-routing mpls
RP/0/0/CPU0:ios(config-ospf)#area 0
RP/0/0/CPU0:ios(config-ospf-ar)#exit
RP/0/0/CPU0:ios(config-ospf)#exit
RP/0/0/CPU0:ios(config)#mpls traffic-eng
RP/0/0/CPU0:ios(config-mpls-te)#commit
Wed Nov 27 19:16:44.467 UTC
RP/0/0/CPU0:ios(config-mpls-te)#end
RP/0/0/CPU0:ios#sh ip proto
Wed Nov 27 19:16:56.126 UTC
Routing Protocol OSPF 0
Router Id: 192.168.10.1
Distance: 110
Non-Stop Forwarding: Disabled
Redistribution:
None
Area 0
GigabitEthernet0/0/0/0
GigabitEthernet0/0/0/1
RP/0/0/CPU0:ios#configure
Wed Nov 27 19:17:06.125 UTC
RP/0/0/CPU0:ios(config)#router ospf 0
RP/0/0/CPU0:ios(config-ospf)#area 0
RP/0/0/CPU0:ios(config-ospf-ar)#interface Loopback0 passive
RP/0/0/CPU0:ios(config-ospf-ar)#prefix-sid index 1001
^
% Invalid input detected at '^' marker.
RP/0/0/CPU0:ios(config-ospf-ar)#prefix-sid absolute 17001
^
% Invalid input detected at '^' marker.
Does not accept specifying SIDs, not sure if related to the previous command that failed (mpls traffic-eng area 0)
RP/0/0/CPU0:ios(config-ospf-ar)#commit
Wed Nov 27 19:17:34.733 UTC
RP/0/0/CPU0:ios(config-ospf-ar)#end
Thank you,
kristina