OcNOS-SP : Segment Routing Guide : Segment Routing Command Reference : Segment Routing v6 Commands : srv6-locator WORD (OSPFv3)
srv6-locator WORD (OSPFv3)
Use this command to configure SRv6 locator word.
Use the no form this to command to remove SRv6 locator word.
Command Syntax
srv6-locator WORD
no srv6-locator WORD
Parameters
WORD
Name of the Locator List
Default
None
Command Mode
Segment routing SRv6 mode
Applicability
This command was introduced in OcNOS version 5.1.
Example
R1(config)#router ipv6 ospf 1
R1(config-router)#segment-routing srv6
R1(config-router-srv6)#srv6-locator L1
R1(config-router-srv6)# exit-srv6
 
 
R1(config)#router ipv6 ospf 1
R1(config-router)#segment-routing srv6
R1(config-router-srv6)#no srv6-locator L1
R1(config-router-srv6)# exit-srv6
 
R1#show running-config segment-routing
!
segment-routing
srv6
locators
locator L1
prefix 2981:40:a1::/64
exit-locator
!
exit-locators
!
exit-srv6
!
!
R1#show running-config router ipv6 ospf
!
router ipv6 ospf 1
router-id 1.1.1.1
segment-routing srv6
srv6-locator L1
exit-srv6
!
!
R1#
 
R1#show segment-routing srv6 sid
SRv6 Segment ID table:
SID Operation Nexthop Originator
+----------------------+------------+------------------------+----------
2981:40:a1:0:801:: END[usd] :: nsm
2981:40:a1:0:1001:: END[usp] :: nsm
2981:40:a1:0:2001:: END[psp] :: nsm
2981:40:a1:0:2002:: END.X[psp] fe80::5054:ff:fe1f:b4e7 ospf
Last modified date: 10/20/2023