prefix-sid
Use this command to add a prefix segment identifier (prefix-SID) to the primary address of an interface. A prefix-SID corresponds to an MPLS label.
Use the no form of this command to remove a prefix-SID.
Note: You must configure a prefix-SID for each prefix on the interface manually the same as for configuring IP addresses.
Note: OcNOS does not check whether the SID index or absolute value is within the SRGB's range when the SID is configured on the interface. If you configure an index/absolute value that is out of range of the configured SRGB, you will not see any error message while doing the configuration. An Oper log will be shown when you try to advertise this entry via IGP and the entry will not be advertised/installed if it falls outside the SRGB. While configuring SID value, you must make sure that indices are configured in such a way that they do not exceed the SRGB max value. For example, if the SRGB range is 100000-300000, you must not configure an index beyond 200000 and the absolute SID value must be within 100000-300000.
Command Syntax
prefix-sid (absolute <16-1048575>|index <0-1048575>) (explicit-null|no-php|)(n-flag-clear|)
no prefix-sid
Parameters
<16-1048575>
Absolute prefix-SID allocated from the Segment Routing Global Block (SRGB).
<0-1048575>
Index prefix-SID if SRGB values are different across segment routing nodes.
explicit-null
Any upstream neighbor of the prefix-SID originator must replace the prefix-SID with a prefix-SID having an explicit NULL value (0 for IPv4) before forwarding the packet
no-php
The penultimate hop must not pop the prefix-SID before delivering the packet to the node that advertised the prefix-SID
n-flag-clear
The prefix-SID does not represent the node originating the prefix-SID
Defaults
Penultimate hop popping (PHP) is enabled by default if you do not specify the no-php parameter.
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 4.0 and the prefix-SID range changed in OcNOS version 6.1.0.
Examples
#configure terminal
(config)#interface loopback0
(config-if)#prefix-sid index 404
#configure terminal
(config)#interface loopback0
(config-if)#prefix-sid absolute 19004 no-php n-flag-clear
Last modified date: 10/20/2023