Segment Routing Mapping Server Commands
This chapter describes each segment routing mapping server command.
A.B.C.D/M SID-number
Use this command to configure a prefix to SID label mapping.
Use the no form of this command to remove a prefix to SID label mapping.
Note: Index and range value must be configured considering SRGB range. If an index is configured outside SRGB no error will be prompted during configuration but an oper log will be shown while installing MPLS entries if index does not fall within SRGB.
Command Syntax
A.B.C.D/M SID-number (attached |(range SID-Interval (attached|)))
no (A.B.C.D/M) SID-number
Parameters
A.B.C.D/M
IPv4 address and prefix-length such as 10.1.1.0/24
SID-number
Starting SID number <0-1048575>
attached
Attached entry advertised via the A-flag
SID-Interval
SID interval <1-65535>
Defaults
The default SID-Interval range is 1.
Command Mode
Mapping server IPv4 address family mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#configure terminal
(config)#segment-routing
(config-sr)#mapping-server
(config-sr-ms)#prefix-sid-map address-family ipv4
(config-sr-ms-map-af4)#1.1.1.11/32 11 range 10
(config-sr-ms-map-af4)#1.1.1.10/32 10 attached
(config-sr-ms-map-af4)#no 1.1.1.10/32 11
exit-ms
Use this command to leave mapping server mode.
Command Syntax
exit-ms
Parameters
None
Defaults
None
Command Mode
Mapping server mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#configure terminal
(config)#segment-routing
(config-sr)#mapping-server
(config-sr-ms)#prefix-sid-map address-family ipv4
(config-sr-ms-map-af4)#exit-ms-af
(config-sr-ms)#exit-ms
(config-sr)#
exit-ms-af
Use this command to leave mapping server address family IPv4 mode.
Command Syntax
exit-ms-af
Parameters
None
Defaults
None
Command Mode
Mapping server IPv4/ address family mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#configure terminal
(config)#segment-routing
(config-sr)#mapping-server
(config-sr-ms)#prefix-sid-map address-family ipv4
(config-sr-ms-map-af4)#exit-ms-af
(config-sr-ms)#
mapping-server
Use this command to enter mapping server mode and configure mapping server.
Use the no form of this command to remove mapping-server configurations.
Command Syntax
mapping-server
no mapping-server
Parameters
None
Defaults
N/A
Command Mode
Segment routing mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#configure terminal
(config)#segment-routing
(config-sr)#mapping-server
(config-sr-ms)#
prefix-sid-map address-family ipv4
Use this command to enable segment routing prefix-to-SID mapping and enter IPv4 address family mode.
Use the no form of this command to disable segment routing prefix-to-SID mapping.
Command Syntax
prefix-sid-map address-family ipv4
no prefix-sid-map address-family ipv4
Parameters
None
Defaults
N/A
Command Mode
Mapping server mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#configure terminal
(config)#segment-routing
(config-sr)#mapping-server
(config-sr-ms)#prefix-sid-map address-family ipv4
(config-sr-ms-map-af4)#
segment-routing
Use this command to enable segment routing and enter segment routing mode.
Use the no form of this command to disable segment routing.
Command Syntax
segment-routing
no segment-routing
Parameters
None
Defaults
N/A
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#configure terminal
(config)#segment-routing
(config-sr)#
segment-routing prefix-sid-map advertise-local
Use this command to enable advertising local mapping server entries to other routers in the segment routing domain.
Use the no form of this command to disable advertising local mapping server entries.
Command Syntax
segment-routing prefix-sid-map advertise-local
no segment-routing prefix-sid-map advertise-local
Parameters
None
Command Mode
ISIS router mode
OSPF router mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#configure terminal
(config)#router isis bb
(config-router)#segment-routing prefix-sid-map advertise-local
(config)#router ospf 1
(config-router)#segment-routing prefix-sid-map advertise-local
segment-routing prefix-sid-map receive
Use this command to enable or disable receiving prefix SID mappings from a mapping server.
Command Syntax
segment-routing prefix-sid-map receive (enable | disable)
no segment-routing prefix-sid-map receive
Parameters
enable
Enable receiving prefix SID mappings from a mapping server
disable
Disable receiving prefix SID mappings from a mapping server
Command Mode
ISIS router mode
OSPF router mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#configure terminal
(config)#router isis bb
(config-router)#segment-routing prefix-sid-map receive enable
(config)#router ospf 1
(config-router)#segment-routing prefix-sid-map receive disable
(config-router)#
show segment-routing mapping-server prefix-sid-map
Use this command to display segment routing prefix-to-SID mapping entries.
Command Syntax
show segment-routing mapping-server prefix-sid-map ipv4 (detail|)
Parameters
detail
Display details
Defaults
None
Command Mode
Privileged exec mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#show segment-routing mapping-server prefix-sid-map ipv4
Prefix SID Index Range Flags
1.1.1.1/32 100 2
14.14.14.1/32 200 20
Number of mapping entries: 2
#show segment-routing mapping-server prefix-sid-map ipv4 detail
Prefix
1.1.1.1/32
SID Index: 100
Range: 2
Last Prefix: 1.1.1.2/32
Last SID Index: 101
Flags:
Prefix
14.14.14.1/32
SID Index: 200
Range: 20
Last Prefix: 14.14.14.20/32
Last SID Index: 219
Flags:
Number of mapping entries: 2
srms preference
Use this command to set the preference used to select among conflicting advertisements to use in forwarding. A higher value is preferred over a lower one.
Use the no form of this command to set the preference to its default (128).
Command Syntax
srms preference <1-255>
no srms preference
Parameters
<1-255>
Preference value
Defaults
The default preference is 128.
Command Mode
Mapping server mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#configure terminal
(config)#segment-routing
(config-sr)#mapping-server
(config-sr-ms)#srms preference 200
(config-sr-ms)#