Usage Scenario
After a locator is configured in SRv6, a static SID can be assigned to the locator, and an IGP or BGP can advertise the SID of the locator. After the static SID locator length is set for the locator, dynamic SIDs out of the specified static SID range can be applied for, which prevents SID conflicts.
To view SRv6 locator information, run the display segment-routing ipv6 locator command.The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display segment-routing ipv6 locator verbose
Locator Configuration Table
---------------------------
LocatorName : loc1 LocatorID : 4
IPv6Prefix : 2001:DB8:: PrefixLength : 64
Block : 2001:DB8:: BlockLength : 48
NodeID : 0 NodeIdLength : 16
ComprStaticLen: 10 StaticLength : 20
ArgsLength : 0 Reference : 0
Algorithm : 0
AutoCSIDPoolID: 8200 ComprDynLength: 6
AutoCSIDBegin : 2001:DB8:0:0:400::
AutoCSIDEnd : 2001:DB8:0:0:FFFF::
StaticCSIDBegin: 2001:DB8:0:0:1::
StaticCSIDEnd : 2001:DB8:0:0:3FF::
AutoSIDPoolID : 8199 DynLength : 28
AutoSIDBegin : 2001:DB8::10:0
AutoSIDEnd : 2001:DB8::FFFF:FFFF:FFFF
StaticSIDBegin: 2001:DB8::1
StaticSIDEnd : 2001:DB8::F:FFFF
Total Locator(s): 1
Item | Description |
---|---|
LocatorName | Locator name. |
LocatorID | Automatically allocated locator ID. |
IPv6Prefix | Prefix of a locator. |
PrefixLength | Locator prefix length. |
Block | Configured block. |
BlockLength | Length of the configured block. |
NodeIdLength | Length of the configured NodeId segment. |
StaticLength | Length of the static locator segment. |
ArgsLength | Length of a parameter segment. |
Reference | Whether a locator is referenced. |
Algorithm | Locator algorithm. |
AutoCSIDBegin | Start value of dynamic compressed SID. |
AutoCSIDEnd | End value of the dynamic compressed SID. |
StaticCSIDEnd | End value of the static compressed SID. |
AutoSIDPoolID | ID of a dynamic SID pool. |
DynLength | Dynamic segment length. |
AutoSIDBegin | Start value of the dynamic SID. |
AutoSIDEnd | End value of the dynamic SID. |
StaticSIDEnd | End value of the static SID. |
NodeId | Configured NodeId segment. |
AutoCSIDPoolID | ID of the dynamic compression SID pool. |
ComprStaticLen | Length of the configured static compression segment. |
ComprDynLength | Length of the compression dynamic segment. |
StaticCSIDBegin | Start value of the static compressed SID. |
StaticSIDBegin | Start value of the static SID. |