Configuring a Prefix-SID on the IS-IS Enabled Loopback Interface
A prefix segment identifier (SID) is associated with an IP prefix. The prefix SID is manually configured from the segment routing global block (SRGB) range of labels. A prefix SID is configured under the loopback interface with the loopback address of the node as the prefix. The prefix segment steers the traffic along the shortest path to its destination.
A prefix SID can be a node SID or an Anycast SID. A node SID is a type of prefix SID that identifies a specific node. An Anycast SID is a type of prefix SID that identifies a set of nodes, and is configured with n-flag clear. The set of nodes (Anycast group) is configured to advertise a shared prefix address and prefix SID. Anycast routing enables the steering of traffic toward multiple advertising nodes. Packets addressed to an Anycast address are forwarded to the topologically nearest nodes.
The prefix SID is globally unique within the segment routing domain.
This task explains how to configure prefix segment identifier (SID) index or absolute value on the IS-IS enabled Loopback interface.
Before you begin
Ensure that segment routing is enabled on the corresponding address family.
Procedure
Command or Action | Purpose | |
---|---|---|
Step 1 |
configure Example:
|
Enters mode. |
Step 2 |
router isis instance-id Example:
|
Enables IS-IS routing for the specified routing instance, and places the router in router configuration mode.
|
Step 3 |
interface Loopback instance Example:
|
Specifies the loopback interface and instance. |
Step 4 |
address-family { ipv4 | ipv6 } [ unicast ] Example:
|
Specifies the IPv4 or IPv6 address family, and enters router address family configuration mode. |
Step 5 |
prefix-sid {index SID-index | absolute SID-value } [n-flag-clear ] [explicit-null ] Example:
|
Configures the prefix-SID index or absolute value for the interface. Specify index SID-index for each node to create a prefix SID based on the lower boundary of the SRGB + the index. Specify absolute SID-value for each node to create a specific prefix SID within the SRGB. By default, the n-flag is set on the prefix-SID, indicating that it is a node
SID. For specific prefix-SID (for example, Anycast prefix-SID), enter the
To disable penultimate-hop-popping (PHP) and add explicit-Null label, enter
|
Step 6 |
Use the commit or end command. |
commit —Saves the configuration changes and remains within the configuration session.
|
RP/0/RP0/CPU0:router# show isis database verbose
IS-IS 1 (Level-2) Link State Database
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
router.00-00 * 0x0000039b 0xfc27 1079 0/0/0
Area Address: 49.0001
NLPID: 0xcc
NLPID: 0x8e
MT: Standard (IPv4 Unicast)
MT: IPv6 Unicast 0/0/0
Hostname: router
IP Address: 10.0.0.1
IPv6 Address: 2001:0db8:1234::0a00:0001
Router Cap: 10.0.0.1, D:0, S:0
Segment Routing: I:1 V:1, SRGB Base: 16000 Range: 8000
SR Algorithm:
Algorithm: 0
<...>
Metric: 0 IP-Extended 10.0.0.1/32
Prefix-SID Index: 1001, Algorithm:0, R:0 N:1 P:0 E:0 V:0 L:0
<...>
What to do next
Configure the SR-TE policy.