11-Segment Routing Command Reference

HomeSupportSwitchesS6550X-HI SeriesReference GuidesCommand ReferencesH3C S6550X-HI Command References-R1330Pxx-6W10011-Segment Routing Command Reference
01-SRv6 commands
Title Size Download
01-SRv6 commands 290.53 KB

SRv6 commands

display isis segment-routing ipv6 capability

Use display isis segment-routing ipv6 capability to display IS-IS SRv6 capability information.

Syntax

display isis segment-routing ipv6 capability [ level-1 | level-2 ] [ process-id ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

level-1: Specifies IS-IS Level-1.

level-2: Specifies IS-IS Level-2.

process-id: Specifies an IS-IS process by its ID, in the range of 1 to 65535. If you do not specify a process, this command displays SRv6 capability information for all IS-IS processes.

Usage guidelines

If you do not specify a level, this command displays IS-IS SRv6 capability information for both Level-1 and Level-2.

Examples

# Display SRv6 capability information for IS-IS process 1.

<Sysname> display isis segment-routing ipv6 capability level-1 1

 

      IPv6 segment routing capability information for IS-IS(1)

 

                Level-1 IPv6 segment routing capability

 

System ID               SRv6 capability

0000.1000.0001          Enabled

0000.2000.0001          Enabled

0000.2000.0002          Enabled

0000.2000.0003          Enabled

Table 1 Command output

Field

Description

System ID

Neighbor system ID.

SRv6 capability

Whether SRv6 is enabled.

display isis segment-routing ipv6 locator

Use display isis segment-routing ipv6 locator to display IS-IS SRv6 locator route information.

Syntax

display isis segment-routing ipv6 locator [ ipv6-address prefix-length ] [ [ level-1 | level-2 ] | verbose ] * [ process-id ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

ipv6-address prefix-length: Specifies a destination IPv6 address prefix and the prefix length. The value range for the prefix-length argument is 1 to 128.

level-1: Specifies the level-1 area.

level-2: Specifies the level-2 area.

verbose: Displays detailed IS-IS SRv6 locator route information. If you do not specify this keyword, the command displays only brief IS-IS SRv6 locator route information.

process-id: Specifies an IS-IS process by its ID, in the range of 1 to 65535. If you do not specify a process, this command displays IS-IS SRv6 locator route information for all IS-IS processes.

Examples

# Display IS-IS SRv6 locator route information.

<Sysname> display isis segment-routing ipv6 locator

 

                         Route information for IS-IS(1)

                         ------------------------------

 

                          Level-1 Locator Route Table

                          ---------------------------

 

 Destination : 201::                                   PrefixLen: 64

 Flags       : R/-/-                                   Cost     : 2

 Next hop    : FE80::38A5:3DFF:FEE9:218                Interface: 25GE1/0/1

 

 Destination : 202::                                   PrefixLen: 64

 Flags       : R/-/-                                   Cost     : 1

 Next hop    : FE80::38A5:3DFF:FEE9:218                Interface: 25GE1/0/3

 

      Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set

Table 2 Command output

Field

Description

Destination

Destination IPv6 prefix.

PrefixLen

Prefix length.

Flag/Flags

Route flags:

·     D—The route is a direct route.

·     R—The route has been flushed to the RIB.

·     L—The route has been advertised in LSPs.

·     U—Penetration flag. Setting it to UP can prevent an LSP sent from L2 to L1 from being sent back to L2.

Cost

Route cost value.

Next hop

Route next hop.

Interface

Output interface.

# Display detailed IS-IS SRv6 locator route information.

<Sysname> display isis segment-routing ipv6 locator verbose

 

                         Route information for IS-IS(1)

                         ------------------------------

 

                          Level-1 Locator Route Table

                          ---------------------------

 

 IPv6 dest   : 5000::/64

 Flag        : D/L/-                       Cost        : 0

 Admin tag   : -                           Src count   : 1

 Algorithm   : 0

 Priority    : Low

 Nexthop     : Direct

 NxthopFlag  : -

 Interface   : NULL0                       Delay Flag : N/A

 Nib ID      : 0x0

 

      Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set

 

                          Level-2 Locator Route Table

                          ---------------------------

 

 IPv6 dest   : 5000::/64

 Flag        : D/L/-                       Cost        : 0

 Admin tag   : -                           Src count   : 4

 Algorithm   : 0

 Priority    : Low

 Nexthop     : Direct

 NxthopFlag  : -

 Interface   : NULL0                       Delay Flag : N/A

 Nib ID      : 0x0

 

      Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set

Table 3 Command output

Field

Description

Route information for IS-IS(1)

Locator route information about the IS-IS proces.

Level-1 Locator Route Table

IS-IS Level-1 locator route information.

Level-2 Locator Route Table

IS-IS Level-2 locator route information.

IPv6 dest

Destination IPv6 prefix

Flag

Route state flag:

·     D—Direct route.

·     R—The route has been added into the routing table.

·     L—The route has been advertised in an LSP.

·     URoute leaking flag, indicating that the Level-1 route is from Level-2. U means that the route will not be returned to Level-2.

Cost

Route cost.

Admin tag

Administrative tag.

Src count

Number of advertisement sources.

Algorithm

Flexible algorithm ID.

Priority

Route convergence priority:

·     Critical.

·     High.

·     Medium.

·     Low.

Next hop

Next hop. If the route is a direct route, this field displays Direct.

NxthopFlag

Next hop flag. Value D indicates that the next hop is the direct next hop of the advertisement source.

Interface

Output interface.

Delay Flag

Microloop avoidance delay flag:

·     D—Microloop avoidance is configured. Route convergence is delayed.

·     N/A—Microloop avoidance is not configured or the microloop avoidance delay timer has expired. Route convergence is in progress.

Nib ID

Next hop index assigned by the routing management module.

display isis segment-routing ipv6 sid-info conflict

Use display isis segment-routing ipv6 sid-info conflict to display information about conflicting SRv6 SIDs.

Syntax

display isis segment-routing ipv6 sid-info conflict [ sid-value ] [ level-1 | level-2 ] [ process-id ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

sid-value: Specifies an SRv6 SID.

level-1: Specifies the level-1 area.

level-2: Specifies the level-2 area.

process-id: Specifies an IS-IS process by its process ID in the range of 1 to 65535. If you do not specify an IS-IS process, this command displays information about conflicting SRv6 SIDs for all IS-IS processes.

Usage guidelines

If you do not specify any parameters, this command displays information about all conflicting SRv6 SIDs.

Examples

# Display information about all conflicting SRv6 SIDs.

<Sysname> display isis segment ipv6 sid-info conflict

          Segment Routing IPv6 SID Conflict Information For IS-IS(1)

          ----------------------------------------------------------

 

                       Level-1 SID Conflict Information

                       --------------------------------

SID: 6:5::100

  System ID=3333.3333.3333.00, Flag(A)=0, Function type=End with PSP

  System ID=4444.4444.4444.00, Flag(A)=0, Function type=End with PSP

SID: 6:5::101

  System ID=3333.3333.3333.00, Flag(A)=0, Function type=End (no PSP, no USP)

  System ID=4444.4444.4444.00, Flag(A)=0, Function type=End (no PSP, no USP)

SID: 6:5::103

  System ID=3333.3333.3333.00, Flag(A)=0, Function type=End.X (no PSP, no USP)

  System ID=4444.4444.4444.00, Flag(A)=0, Function type=End.X (no PSP, no USP)

Table 4 Command output

Field

Description

SID

Conflicting SRv6 SID.

System ID

ID of the system that advertised the SID.

Flag (A)

Anycast flag (A flag). The value is 1 if this flag is set, which indicates that the SID is an anycast SID.

Function type

SID function type:

·     End.DT4—End.DT4 SID.

·     End.DT6—End.DT6 SID.

display isis segment-routing ipv6 sid-info locator

Use display isis segment-routing ipv6 sid-info locator to display information about SRv6 SIDs advertised by IS-IS in a locator or all locators.

Syntax

display isis segment-routing ipv6 sid-info locator [ ipv6-prefix prefix-length ] [ end-dt4 | end-dt6 ] [ level-1 | level-2 ] [ process-id ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

ipv6-prefix prefix-length: Specifies a locator by its IPv6 prefix. The ipv6-prefix argument represents the IPv6 prefix address. The prefix-length argument represents the prefix length, in the range of 32 to 120.

end-dt4: Specifies End.DT4 SIDs.

end-dt6: Specifies End.DT6 SIDs.

level-1: Specifies the level-1 area.

level-2: Specifies the level-2 area.

process-id: Specifies an IS-IS process by its process ID in the range of 1 to 65535. If you do not specify an IS-IS process, this command displays information about SRv6 SIDs in the specified locator for all IS-IS processes.

Usage guidelines

If you do not specify any parameters, this command displays information about SRv6 SIDs advertised by IS-IS in all locators.

Examples

# Display information about SRv6 SIDs advertised by level-1 IS-IS in all locators.

<Sysname> display isis segment ipv6 sid-info locator level-1

          Segment Routing IPv6 SID Locator Information For IS-IS(1)

          ---------------------------------------------------------

 

                           Level-1 SID Information

                           -----------------------

Locator: 1:2::/96

    System ID: 1111.1111.1111.00

       Locator Info: Cost=0, Flag(D)=0, Flag(A)=0, Algorithm=0

       SID: 1:2::1

          Function Type: End.DT4

            Neighbor ID: --

       SID: 1:2::2

          Function Type: End.DT6

            Neighbor ID: --

       SID: 1:2::3

          Function Type: End.DT46

            Neighbor ID: --

       SID: 1:2::104

          Function Type: End with PSP

            Neighbor ID: --

       SID: 1:2::105

          Function Type: End (no PSP, no USP)

            Neighbor ID: --

       SID: 1:2::106

          Function Type: End.X (no PSP, no USP)

            Neighbor ID: 2222.2222.2222.00

       SID: 1:2::107

          Function Type: End.X with PSP

            Neighbor ID: 2222.2222.2222.00

Table 5 Command output

Field

Description

System ID

ID of the system that advertised an SRv6 SID.

SID

SRv6 SID.

Locator Info

Locator information.

Cost

Locator TLV cost.

Flag (D)

Leaking flag (D flag). The value is 1 if this flag is set, which indicates that locator TLVs cannot be leaked from Level-1 to Level-2.

Flag (A)

Anycast locator flag (A flag). The value is 1 if this flag is set, which indicates that the locator is an anycast locator.

Algorithm

ID of the algorithm associated with the SRv6 locator:

·     0—SPF algorithm.

·     128 to 255—Flex-Algo algorithm. This field is not supported in the current software version.

Function type

SID function type:

·     End.DT4—End.DT4 SID.

·     End.DT6—End.DT6 SID.

Neighbor ID

Neighbor ID.

This field displays a value only for an End.X SID. For other SRv6 SIDs, this field displays two hyphens (--).

display isis segment-routing ipv6 sid-info sid

Use display isis segment-routing ipv6 sid-info sid to display information about SRv6 SIDs advertised by IS-IS.

Syntax

display isis segment-routing ipv6 sid-info sid [ sid-value | [ end-dt4 | end-dt6 ] ] [ level-1 | level-2 ] [ process-id ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

sid-value: Specifies an SRv6 SID.

end-dt4: Specifies End.DT4 SIDs.

end-dt6: Specifies End.DT6 SIDs.

level-1: Specifies the level-1 area.

level-2: Specifies the level-2 area.

process-id: Specifies an IS-IS process by its process ID in the range of 1 to 65535. If you do not specify an IS-IS process, this command displays information about SRv6 SIDs for all IS-IS processes.

Usage guidelines

If you do not specify any parameters, this command displays information about all SRv6 SIDs advertised by IS-IS.

Examples

# Display information about all SRv6 SIDs advertised by level-1 IS-IS.

<Sysname> display isis segment-routing ipv6 sid-info sid level-1

              Segment Routing IPv6 SID Information For IS-IS(1)

              -------------------------------------------------

 

                            Level-1 SID Information

                            -----------------------

SID: 1:2::1

           Flag(A): 0

     Function Type: End.DT4

         System ID: 1111.1111.1111.00

       Neighbor ID: --

SID: 1:2::2

           Flag(A): 0, Function Type: End.DT6

         System ID: 1111.1111.1111.00

       Neighbor ID: --

SID: 1:2::3

           Flag(A): 0, Function Type: End.DT46

         System ID: 1111.1111.1111.00

       Neighbor ID: --

SID: 1:2::105

           Flag(A): 0, Function Type: End (no PSP, no USP)

         System ID: 1111.1111.1111.00

       Neighbor ID: --

SID: 1:2::106

           Flag(A): 0, Function Type: End.X (no PSP, no USP)

         System ID: 1111.1111.1111.00

       Neighbor ID: 2222.2222.2222.00

Table 6 Command output

Field

Description

SID

SRv6 SID advertised by IS-IS

Flag (A)

Anycast locator flag (A flag). The value is 1 if this flag is set, which indicates that the locator is an anycast locator.

Function type

SID function type:

·     End.DT4—End.DT4 SID.

·     End.DT6—End.DT6 SID.

System ID

ID of the system that advertised the SRv6 SID.

Neighbor ID

Neighbor ID.

This field displays a value only for an End.X SID. For other SRv6 SIDs, this field displays two hyphens (--).

display isis segment-routing ipv6 sid-info statistics

Use display isis segment-routing ipv6 sid-info statistics to display SRv6 SID statistics.

Syntax

display isis segment-routing ipv6 sid-info statistics [ system-id system-id ] [ level-1 | level-2 ] [ process-id ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

system-id system-id: Specifies an advertisement source by its system ID.

level-1: Specifies the level-1 area.

level-2: Specifies the level-2 area.

process-id: Specifies an IS-IS process by its process ID in the range of 1 to 65535. If you do not specify an IS-IS process, this command displays SRv6 SID statistics for all IS-IS processes.

Usage guidelines

If you do not specify any parameters, this command displays all SRv6 SID statistics.

Examples

# Display all SRv6 SID statistics.

<Sysname> display isis segment-routing ipv6 sid-info statistics

          Segment Routing IPv6 SID Statistic Information For IS-IS(1)

          -----------------------------------------------------------

 

                       Level-1 SID Statistic Information

                       ---------------------------------

System ID: 3333.3333.3333.00

  Locator: 6:5::/96

    End=2, End.X=0, End.M=0, End.DT4=0, End.DT6=0, End.DT46=0

  Total advertised SIDs:

    End=2, End.X=0, End.M=0, End.DT4=0, End.DT6=0, End.DT46=0

System ID: 1111.1111.1111.00

  Locator: 1:2::/96

    End=2, End.X=2, End.M=0, End.DT4=3, End.DT6=3, End.DT46=1

  Total advertised SIDs:

    End=2, End.X=2, End.M=0, End.DT4=3, End.DT6=3, End.DT46=1

Table 7 Command output

Field

Description

System ID

ID of the system that advertised SRv6 SIDs.

Locator

Locator of the SRv6 SIDs.

End

Number of advertised End SIDs. This field is not supported in the current software version.

End.X

Number of advertised End.X SIDs. This field is not supported in the current software version.

End.M

Number of advertised End.M SIDs. This field is not supported in the current software version.

End.DT4

Number of advertised End.DT4 SIDs.

End.DT6

Number of advertised End.DT6 SIDs.

End.DT46

Number of advertised End.DT46 SIDs. This field is not supported in the current software version.

Total advertised SIDs

Total number of advertised SRv6 SIDs.

display isis segment-routing ipv6 sid-info system-id

Use display isis segment-routing ipv6 sid-info system-id to display information about SRv6 SIDs advertised from an advertisement source or all advertisement sources.

Syntax

display isis segment-routing ipv6 sid-info system-id [ system-id ] [ end-dt4 | end-dt6 ] [ level-1 | level-2 ] [ process-id ] [ is-name isname ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

system-id: Specifies an advertisement source by its system ID.

end-dt4: Specifies End.DT4 SIDs.

end-dt6: Specifies End.DT6 SIDs

level-1: Specifies the level-1 area.

level-2: Specifies the level-2 area.

process-id: Specifies an IS-IS process by its process ID in the range of 1 to 65535. If you do not specify an IS-IS process, this command displays information about SRv6 SIDs advertised from the specified advertisement source for all IS-IS processes.

is-name isname: Specifies a host by its name, a case-insensitive string of 1 to 64 characters.

Usage guidelines

If you do not specify any parameters, this command displays information about SRv6 SIDs advertised from all advertisement sources.

Examples

# Display information about SRv6 SIDs advertised from 0000.0000.0001.

<Sysname> display isis segment ipv6 sid-info system-id 0000.0000.0001

          Segment Routing IPv6 SID System ID Information For IS-IS(1)

          -----------------------------------------------------------

 

                       Level-1 SID Information

                       -----------------------

System id: 0000.0000.0001

  Locator: 1:2::/96

  Cost=0, Flag(D)=0,Flag(A)=0,  Algorithm=0

    SID: 1:2::1

       Function Type: End.DT4

        Neighbors ID: --

    SID: 1:2::2

       Function Type: End.DT6

        Neighbors ID: --

    SID: 1:2::3

       Function Type: End.DT46

        Neighbors ID: --

    SID: 1:2::104

       Function Type: End with PSP

        Neighbors ID: --

    SID: 1:2::105

       Function Type: End (no PSP, no USP)

        Neighbors ID: --

    SID: 1:2::106

       Function Type: End.X (no PSP, no USP)

        Neighbors ID: 2222.2222.2222.00

    SID: 1:2::107

       Function Type: End.X with PSP

        Neighbors ID: 2222.2222.2222.00

Table 8 Command output

Field

Description

Cost

Locator TLV cost.

Flag (D)

Leaking flag (D flag). The value is 1 if this flag is set, which indicates that locator TLVs cannot be leaked from Level-1 to Level-2.

Flag (A)

Anycast locator flag (A flag). The value is 1 if this flag is set, which indicates that the locator is an anycast locator.

Algorithm

ID of the algorithm associated with the SRv6 locator:

·     0—SPF algorithm.

·     128 to 255—Flex-Algo algorithm. This field is not supported in the current software version.

SID

SRv6 SID.

Function type

SID function type:

·     End.DT4—End.DT4 SID.

·     End.DT6—End.DT6 SID.

Neighbor ID

Neighbor ID.

This field displays a value only for an End.X SID. For other SRv6 SIDs, this field displays two hyphens (--).

display segment-routing ipv6 available-static-sid

Use display segment-routing ipv6 available-static-sid to display available static SRv6 SIDs in a locator.

Syntax

display segment-routing ipv6 available-static-sid locator locator-name [ from begin-value ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

locator locator-name: Specifies a locator by its name, a case-sensitive string of 1 to 31 characters.

from begin-value: Specifies available static SRv6 SIDs that start from the specified value. The begin-value argument represents the start value in IPv6 address format. If you do not specify a start value, this command displays available static SRv6 SIDs starting from the smallest available one.

Usage guidelines

If you specify a static length when configuring an SRv6 locator, the device can allocate static SRv6 SIDs from the locator. Use this command to display a maximum of 10 available static SRv6 SIDs in the locator.

To specify the from begin-value option, you must first identify the static SID range of the locator. For this purpose, use the display segment-routing ipv6 locator command.

Examples

# Display available static SRv6 SIDs in COC-both locator test3.

<Sysname> display segment-routing ipv6 available-static-sid locator test3

                      Available static SRv6 SID table

300:F8:4A::100

300:F8:4A::200

300:F8:4A::300

300:F8:4A::400

300:F8:4A::500

300:F8:4A::600

300:F8:4A::700

300:F8:4A::800

300:F8:4A::900

300:F8:4A::A00

                      Available static SRv6 CSID table

300:F8:4A:0:1::

300:F8:4A:0:2::

300:F8:4A:0:3::

300:F8:4A:0:4::

300:F8:4A:0:5::

300:F8:4A:0:6::

300:F8:4A:0:7::

300:F8:4A:0:8::

300:F8:4A:0:9::

300:F8:4A:0:A::

Table 9 Command output

Field

Description

Available static SRv6 SID table

Available static SRv6 SIDs.

Available static SRv6 CSID table

Available static compressible SRv6 SIDs.

N/A

No static SRv6 SIDs are available.

 

Related commands

display segment-routing ipv6 locator

display segment-routing ipv6 brief

Use display segment-routing ipv6 brief to display brief SRv6 information.

Syntax

display segment-routing ipv6 brief

Views

Any view

Predefined user roles

network-admin

network-operator

Examples

# Display brief SRv6 information.

<Sysname> display segment-routing ipv6 brief

Current SRv6 info:

  Flavor mode: NO-PSP

SRv6 info at next reboot:

  Flavor mode: NO-PSP

SRv6 TE FRR: Disabled

SRH flag check: Disabled

Encapsulation source-address: -

TTL mode: pipe

Path MTU: 1500

Path MTU reserved: 0

SRv6 compression: Disabled

Diffserv mode info:

  Ingress mode: -

  Engress mode: -

  Service class: 0

  SRv6 locator SBFD: Enabled

  SRv6 locator SBFD Template: LocatorBFD

  SRv6 locator SBFD prefix-list: prefixlist

End.X update-delay time: 100 ms

Table 10 Command output

Field

Description

Current SRv6 info

Current effective SRv6 information.

SRv6 info at the next reboot

SRv6 information that will take effect at the next startup.

Flavor mode

SRv6 SID flavor:

·     PSP—The penultimate SRv6 node removes the SRH.

·     NO-PSP—The penultimate SRv6 node does not remove the SRH.

SRv6 TE FRR

This field is not supported in the current software version. SRv6 TEE FRR status:

·     Disabled.

·     Enabled.

·     Downgrade—Switched to SRv6 BE FRR.

SRH flag check

SRH flag check status:

·     Disabled.

·     Enabled.

Encapsulated source address

Source IP address in the IPv6 header encapsulated by SRv6.

IP TTL

TTL value in the IPv6 header encapsulated by SRv6.

TTL mode

This field is not supported in the current software version. TTL handling mode of the SRv6 TE policy:

·     pipe—Pipe mode.

·     uniform—Uniform mode.

Path MTU

Path MTU value for SRv6.

Path MTU reserved

Global reserved path MTU for SRv6.

SRv6 compression

This field is not supported in the current software version. SRv6 compression status:

·     Disabled.

·     Enabled.

Diffserv mode info

SRv6 DiffServ mode.

Ingress mode

SRv6 DiffServ mode in the inbound direction:

·     pipe—Pipe mode.

·     short-pipe—Short-pipe mode.

·     uniform—Uniform mode.

If SRv6 DiffServ mode in the inbound direction is not configured, this field displays a hyphen (-).

Engress mode

SRv6 DiffServ mode in the outbound direction:

·     pipe—Pipe mode.

·     short-pipe—Short-pipe mode.

·     uniform—Uniform mode.

If SRv6 DiffServ mode in the outbound direction is not configured, this field displays a hyphen (-).

Service class

Traffic class for packets entering the SRv6 network from a common IP network.

SRv6 locator SBFD

SBFD status for SRv6 locators:

·     Disabled.

·     Enabled.

SRv6 locator SBFD Template

Template used for detecting the SBFD session status for SRv6 locators. This field is not displayed if no such template is configured.

SRv6 locator SBFD Prefix-list

IPv6 prefix list referenced by SBFD for SRv6 locators. This field is not displayed if no such IPv6 prefix list is configured.

End.X update-delay time

Delay time to flush static End.X SIDs to the FIB, in milliseconds.

display segment-routing ipv6 forwarding

Use display segment-routing ipv6 forwarding to display SRv6 forwarding entry information.

Syntax

display segment-routing ipv6 forwarding [ entry-id [ relation ] | forwarding-type { srv6be | srv6sids } ] [ slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

entry-id: Specifies an SRv6 forwarding entry by its ID, in the range of 0 to 4294967294. If you do not specify an SRv6 forwarding entry ID, this command displays information about all SRv6 forwarding entries.

relation: Displays information about entries associated with the specified entry.

forwarding-type: Specifies a forwarding type. If you do not specify a forwarding type, this command displays SRv6 forwarding information for all forwarding types.

srv6be: Specifies tunnels in SRv6 BE paths.

srv6sids: Specifies tunnels matching SRv6 SIDs.

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays SRv6 forwarding entries on the master device.

Examples

# Display all SRv6 forwarding entries.

<Sysname> display segment-routing ipv6 forwarding

Total SRv6 forwarding entries: 4

 

Flags: T – Forwarded through a tunnel

       N – Forwarded through the outgoing interface to the nexthop IP address

       A - Active forwarding information

       B – Backup forwarding information

 

ID            FWD-Type      Flags   Forwarding info

              Attri-Val             Attri-Val

--------------------------------------------------------------------------------

2148532225    SRv6PSIDList  NA      25GE1/0/1

                                    FE80::54CB:70FF:FE86:316

                                    {6000::1, 7000::1, 8000::1}

2149580801    SRv6PCPath    TA      2148532225

2150629377    SRv6Policy    TA      2149580801

              Policy10

2153775105    SRv6SFC       NA      25GE1/0/1

                                    FE80::54CB:70FF:FE86:316

                                    {6000::1, 7000::1, 8000::1}

Table 11 Command output

Field

Description

FWD-Type

Tunnel forwarding type:

·     SRv6PSIDs—Tunnel established based on SRv6 SIDs.

Flags

Forwarding flags:

·     T—Tunnel forwarding.

·     N—Output interface or next hop forwarding.

·     A—Active forwarding information.

·     B—Backup forwarding information.

·     S—Secondary backup forwarding information.

Forwarding info

SRv6 forwarding information.

·     For the N forwarding flag, the forwarding information includes the output interface, next hop, and SID list.

·     For the T forwarding flag, the forwarding information is the SRv6 forwarding entry ID.

Attri-Val

This field is not supported in the current software version. Forwarding attribute.

In the current software version, the value is an SRv6 TE policy name.

This field is available only when the value for the FWD-Type field is SRv6Policy or SRv6PGroup.

display segment-routing ipv6 local-sid

Use display segment-routing ipv6 local-sid to display information about the SRv6 local SID forwarding table.

Syntax

display segment-routing ipv6 local-sid [ locator locator-name ] [ end-dt2m | end-dt2u ] [ owner owner ] [ sid ]

display segment-routing ipv6 local-sid [ locator locator-name ] [ end-dt4 | end-dt6 ] [ owner owner ] [ sid | vpn-instance vpn-instance-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

locator locator-name: Specifies a locator by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a locator, this command displays information about the SRv6 local SID forwarding table for all locators.

end-dt2m: Specifies End.DT2M SIDs.

end-dt2u: Specifies End.DT2U SIDs.

end-dt4: Specifies End.DT4 SIDs.

end-dt6: Specifies End.DT6 SIDs.

sid: Specifies an SRv6 SID. If you do not specify an SRv6 SID, this command displays SRv6 local forwarding table information for all SRv6 SIDs of the specified type.

vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance to which the SRv6 SIDs belong. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays SRv6 local SID forwarding table information in the public network.

interface interface-type interface-number: Specifies an output interface by its type and number. If you do not specify an output interface, the command displays SRv6 local SID forwarding table information for all End.X SIDs.

nexthop nexthop-ipv6-address: Specifies the IPv6 address of a next hop. If you do not specify a next hop, the command displays SRv6 local SID forwarding table information for all IPv6 next hops.

owner owner: Specifies a protocol. The value for the owner argument is case insensitive. The supported values include SIDMGR, BGP, SRPolicy, IS-IS, OSPFv3, and L2VPN. If you do not specify a protocol, this command displays information about the SRv6 local SID forwarding table for all protocols.

Examples

# Display SRv6 local forwarding table information for all End.DT4 SIDs.

<Sysname> display segment-routing ipv6 local-sid end-dt4

 

                    Local SID forwarding table (End.DT4)

 

Total SIDs: 1

 

SID           : 6:5::1:1/120

Function type : End.DT4                         Flavor         : PSP

VPN instance  : vpn1                            Allocation type: Static

Network type  : MPLS L3VPN

Locator name  : abc

Owner         : SIDMGR                          State          : Active

Flags         : F

Create Time   : May 19 17:22:27.356 2020

# Display SRv6 local forwarding table information for all End.DT6 SIDs.

<Sysname> display segment-routing ipv6 local-sid end-dt6

 

                    Local SID forwarding table (End.DT6)

 

Total SIDs: 1

 

SID           : 1:2::2:2/120

Function type : End.DT6                         Flavor         : PSP

VPN instance  : vpn1                            Allocation type: Static

Network type  : MPLS L3VPN

Locator name  : abc

Owner         : SIDMGR                          State          : Active

Flags         : F

Create Time   : May 19 17:22:27.356 2020

# Display SRv6 local forwarding table information for all End.DT2U SIDs.

<Sysname> display segment-routing ipv6 local-sid end-dt2u

 

                    Local SID forwarding table (End.DT2U)

 

Total SIDs: 1

 

SID           : 100:1:2:3::C800/96

Function type : End.DT2U                        Flavor         : PSP

VSI name      : abc                             Allocation type: Static

Locator name  : abc

Owner         : SIDMGR                          State          : Active

Flags         : F

Create Time   : May 20 09:18:14.504 2020

# Display SRv6 local forwarding table information for End.AS SIDs in Layer 3 encapsulation forwarding scenario.

<Sysname> display segment-routing ipv6 local-sid end-as

                    Local SID forwarding table (End.AS)

Total SIDs: 1

SID           : 100:1:2:3::C800/96

Function type : End.AS                          Allocation type: Static

Locator name  : abc                             Forward type   : L3

Inner type    : IPv4                            Source address : 2::60

Backup SID    : 1::AA                           Peer SID       : 300::3

Bypass        : Enabled                         Bypass SID     : 5::9

TTL mode      : Uniform                         TTL value      : -

Diffserv mode : Uniform                         Service class  : -

Color         : -                               Cache-SL       : 2

Cache list    :

  4::3

  7::8

  8::9

  1::16::9

Encapsulation count: 2

Next hop     : 10.1.1.2                        Out-interface  : 25GE1/0/2

In-interface : 25GE1/0/2                         Symmetric-index: 1

Next hop     : 10.1.1.3                        Out-interface  : 25GE1/0/1

In-interface : 25GE1/0/1                         Symmetric-index: 2

Owner         : SIDMGR                          State          : Active

Flags         : F

Create Time   : May 19 17:21:15.687 2020

# Display SRv6 local forwarding table information for End.AM SIDs in Layer 3 encapsulation forwarding scenario.

<Sysname> display segment-routing ipv6 local-sid end-am

 

                    Local SID forwarding table (End.AM)

 

Total SIDs: 1

 

SID           : 100:1:2:3::C800/96

Function type : End.AM                          Allocation type: Static

Locator name  : abc                             Forward type   : L3

Encapsulation count: 2

Next hop     : 1::1                            Out-interface  : 25GE1/0/2

In-interface : 25GE1/0/2

Next hop     : 1::2                            Out-interface  : 25GE1/0/1

In-interface : 25GE1/0/1

Owner         : SIDMGR                          State          : Active

Flags         : F

Create Time   : May 19 17:21:15.687 2020

Table 12 Command output

Field

Description

SID

SRv6 SID.

Function type

SRv6 SID type:

·     End.DT2M.

·     End.DT2U.

·     End.DT4.

·     End.DT6.

Flavor

SRv6 SID flavor type:

·     NO-FLAVOR—The SRv6 SID does not carry any flavors.

·     PSP—The penultimate SRv6 node removes the SRH.

·     PSP,USP,USD—The SRv6 SID carries the PSP, USP, and USD flavors.

·     NOPSP—The penultimate SRv6 node does not remove the SRH.

Interface

Output interface.

Interface index

Output interface index.

Next hop

Next hop address.

VPN instance

VPN instance name.

For the public network, this field displays Public instance.

Xconnect group

Cross-connect group name.

Connection

Cross-connect name.

VSI name

VSI name.

Service ID

Ethernet service instance ID.

If no Ethernet service instance ID exists, this field displays 0.

Allocation type

SID allocation type:

·     Static—Manually configured.

·     Dynamic—Dynamically allocated.

Network type

Type of the network to which the SRv6 SID is applied: MPLS L3VPN. The SRv6 SID is applied to an MPLS L3VPN network.

Mirror locator number

Number of protected locators.

Mirror locator

IPv6 address prefix and prefix length of each protected locator.

Owner

Protocol that applies for the SID:

·     SIDMGR.

·     BGP.

·     SRPolicy.

·     IS-IS.

·     OSPFv3.

·     L2VPN.

·     LSM.

Paths

Number of paths.

Path index

Index of the path for the SID.

Weight

Load sharing weight of the path.

State

SID state:

·     Active.

·     Inactive.

Flags

Flags:

·     If traffic forwarding statistics collection is enabled for local SRv6 SIDs, this field displays F.

·     If traffic forwarding statistics collection is disabled for local SRv6 SIDs, this field displays a hyphen (-).

Create Time

SID creation time.

Forward type

SFF-to-SF packet forwarding type:

·     L2—Layer 2 forwarding.

·     L3—Layer 3 forwarding.

Inner type

Protocol type of the original SFF-to-SF packet.

Source address

Source IPv6 address re-encapsulated for the packet received by the SFF from the SF.

Backup SID

Backup End.AS SID.

Peer SID

Backup SFF SID, which is the an End SID.

Bypass

Bypass protection status: Enabled or disabled (-).

Bypass SID

Backup SID of the bypass path, which is the valid End.AS SID of other protection devices in the SF group.

TTL mode

TTL processing mode:

·     Uniform—After a packet is forwarded back to the SFF from the SF, the SFF uses the TTL value in the original packet minus 1 as the TTL in the newly encapsulated IPv6 header.

·     Pipe—After a packet is forwarded back to the SFF from the SF, the SFF uses the specified TTL value (ttl-value) minus 1 as the TTL in the newly encapsulated IPv6 header.

TTL value

TTL value:

·     In the Uniform TTL processing mode, a hyphen (-) is displayed.

·     In the Pipe TTL processing mode, the configured TTL value is displayed.

Diffserv mode

Differentiated services (Diffserv) mode:

·     Uniform—In the inbound direction (SF to SFF), the SFF maps the carried IP or DSCP value to the priority in the newly encapsulated IPv6 header. The packet color will not be changed. In the outbound direction (SFF to SF), the SFF removes the outer IPv6 and SRH header. Then it maps the priority in the outer IPv6 header to the IP or DSCP value in the original packet. The packet color will not be changed.

·     Pipe—In the inbound direction (SF to SFF), the SFF ignores the carried IP or DSCP value. It uses the configured service-class value as the priority in the newly encapsulated IPv6 header, and the configured color value as the color for the new packet. In SRv6 networks, QoS scheduling is performed for packets based on the priority and color values. In the outbound direction (SFF to SF), the SFF removes the outer IPv6 and SRH header without modifying the IP or DSCP value and color in the original packet.

Service class

Diffserv class of the service chain. Values include the following in ascending priority order:

·     be

·     af1

·     af2

·     af3

·     af4

·     ef

·     cs6

·     cs7

If no Diffserv class is configured, a hyphen (-) is displayed.

Color

Packet color. Values include the following in ascending order of packet loss probability:

·     green—Indicates packet loss probability 0.

·     yellow—Indicates packet loss probability 1.

·     red—Indicates packet loss probability 2.

If no Diffserv class is configured, a hyphen (-) is displayed.

Cache-SL

Segment left value, which indicates the number of nodes to access in the SID list before arrival at the final destination.

Cache list

SID list that needs to be encapsulated after the SFF receives the packet from the SF.

Encapsulation count

Number of equal-cost paths between the SFF and SF.

Out-Interface

Outbound interface for the SFF to forward packets to the SF.

In-Interface

Inbound interface for the SFF to receive packets from the SF.

Out-S-VLAN

Outer VLAN ID for SFF-to-SF (outbound) packets.

Out-C-VLAN

Inner VLAN ID for SFF-to-SF (outbound) packets.

In-S-VLAN

Outer VLAN ID for SF-to-SFF (inbound) packets.

In-C-VLAN

Inner VLAN ID for SF-to-SFF (inbound) packets.

Dest MAC

Destination MAC address encapsulated for packets from the SF to the remote backup SFF in Layer 2 forwarding.

Symmetric-index

Index that identifies a VM used for forwarding bidirectional traffic when multiple VMs exist on the SF. Both inbound and outbound traffic with the same source and destination addresses will traverse the same VM.

display segment-routing ipv6 local-sid statistics

Use display segment-routing ipv6 local-sid statistics to display statistics about SRv6 SIDs allocated for each protocol.

Syntax

display segment-routing ipv6 local-sid statistics [ locator [ locator-name ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

locator: Displays statistics about SRv6 SIDs allocated for each protocol by locator. If you do not specify this keyword, the command does not display statistics about SRv6 SIDs allocated for each protocol by locator.

locator-name: Specifies a locator by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a locator, the command displays statistics about SRv6 SIDs for all locators.

Examples

# Display statistics about SRv6 SIDs allocated for each protocol (not by locator).

<Sysname> display segment-routing ipv6 local-sid statistics

 

Total SIDs: 0

 

Funtion         SIDMGR   SRP      IS-IS    OSPFv3   BGP      L2VPN    Total

End             0        0        0        0        0        0        0

End.X           0        0        0        0        0        0        0

End.COC32       0        0        0        0        0        0        0

End.XCOC32      0        0        0        0        0        0        0

End.COCNONE     0        0        0        0        0        0        0

End.XCOCNONE    0        0        0        0        0        0        0

End.B6Encaps    0        0        0        0        0        0        0

End.B6EncapsRed 0        0        0        0        0        0        0

End.B6Insert    0        0        0        0        0        0        0

End.B6InsertRed 0        0        0        0        0        0        0

End.DT4         0        0        0        0        0        0        0

End.DT46        0        0        0        0        0        0        0

End.DT6         0        0        0        0        0        0        0

End.DX4         0        0        0        0        0        0        0

End.DX6         0        0        0        0        0        0        0

End.DX2         0        0        0        0        0        0        0

End.DX2L        0        0        0        0        0        0        0

End.DT2M        0        0        0        0        0        0        0

End.DT2U        0        0        0        0        0        0        0

End.DT2UL       0        0        0        0        0        0        0

End.AS          0        0        0        0        0        0        0

END.AM          0        0        0        0        0        0        0

End.M           0        0        0        0        0        0        0

End.OP          0        0        0        0        0        0        0

End.T           0        0        0        0        0        0        0

# Display statistics about SRv6 SIDs allocated for each protocol from locator abc.

<Sysname> display segment-routing ipv6 local-sid statistics locator abc

 

Locator: abc

Total SIDs: 1

 

Funtion         SIDMGR   SRP      IS-IS    OSPFv3   BGP      L2VPN    Total

End             0        0        0        0        0        0        0

End.X           0        0        0        0        0        0        0

End.COC32       0        0        0        0        0        0        0

End.XCOC32      0        0        0        0        0        0        0

End.COCNONE     0        0        0        0        0        0        0

End.XCOCNONE    0        0        0        0        0        0        0

End.B6Encaps    0        0        0        0        0        0        0

End.B6EncapsRed 0        0        0        0        0        0        0

End.B6Insert    0        0        0        0        0        0        0

End.B6InsertRed 0        0        0        0        0        0        0

End.DT4         0        0        0        0        0        0        0

End.DT46        0        0        0        0        0        0        0

End.DT6         0        0        0        0        0        0        0

End.DX4         0        0        0        0        0        0        0

End.DX6         0        0        0        0        0        0        0

End.DX2         0        0        0        0        0        0        0

End.DX2L        0        0        0        0        0        0        0

End.DT2M        0        0        0        0        0        0        0

End.DT2U        0        0        0        0        0        0        0

End.DT2UL       0        0        0        0        0        0        0

End.AS          0        0        0        0        0        0        0

END.AM          0        0        0        0        0        0        0

End.M           0        0        0        0        0        0        0

End.OP          0        0        0        0        0        0        0

End.T           0        0        0        0        0        0        0

Table 13 Command output

Field

Description

Total SIDs

Total number of SRv6 SIDs. If you specify a locator, this field displays the total number of SRv6 SIDs that belong to the specified locator.

Locator

Locator name.

Function

SRv6 SID type:

·     End.DT4.

·     End.DT6.

·     End.DT2M.

·     End.DT2U.

SIDMGR

Static SIDs.

SRP

This field is not supported in the current software version. BSIDs dynamically allocated for SRv6 TE policies.

IS-IS

SRv6 SIDs allocated for IS-IS.

OSPFv3

SRv6 SIDs allocated for OSPFv3.

L2VPN

SRv6 SIDs allocated for L2VPN.

BGP

SRv6 SIDs allocated for BGP.

Total

Total number for a type of SRv6 SIDs.

display segment-routing ipv6 locator

Use display segment-routing ipv6 locator to display SRv6 locator information.

Syntax

display segment-routing ipv6 locator [ locator-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

locator-name: Specifies a locator by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a locator, this command displays information about all locators.

Examples

# Display information about all locators. (The coc-both keyword is not specified when you configure locators.)

<Sysname> display segment-routing ipv6 locator

 

                      Locator configuration table

 

Locator name        : abc                                   Flag(A)       : 0

IPv6 prefix         : 100:1:2:3::                           Prefix length : 96

Static length       : 24                                    Args length   : 8

Common prefix length: 0

Algorithm           : 0

Auto SID start      : N/A

Auto SID end        : N/A

Static SID start    : 100:1:2:3::100

Static SID end      : 100:1:2:3::FFFF:FF00

Compressed Auto SID count      : 0

Compressed Static SID count    : 0

Non-compressed Auto SID count  : 0

Non-compressed Static SID count: 1

# Display information about all locators. (The coc-both keyword is specified when you configure locators.)

<Sysname> display segment-routing ipv6 locator

 

                      Locator configuration table

 

Locator name        : test1                                 Flag(A)       : 0

IPv6 prefix         : 100:200:DB8:ABCD::                    Prefix length : 64

Static length       : 8                                     Args length   : 16

Common prefix length: 48                     Non-compressed static length : 16

Algorithm           : 0

Compressed auto SID start      : 100:200:DB8:ABCD:100::

Compressed auto SID end        : 100:200:DB8:ABCD:FFFF::

Table 14 Command output

Field

Description

Flag(A)

Anycast locator flag (A-bit). If A-bit is set, the locator is an anycast locator.

IPv6 prefix

IPv6 address prefix of the locator.

Prefix length

Prefix length of the locator.

Static length

Static length of the locator.

Args length

Argument length.

Common prefix length

Common prefix length of the locator.

Non-compressed static length

Static length of the locator for non-compressible SRv6 SIDs.

Algorithm

Algorithm ID:

·     0—SPF algorithm.

·     128 to 255—Flex-Algo algorithm. This field is not supported in the current software version.

Auto SID start

Start dynamic SRv6 SID.

If no dynamic SRv6 SIDs exist, this field displays N/A.

Auto SID end

End dynamic SRv6 SID.

If no dynamic SRv6 SIDs exist, this field displays N/A.

Static SID start

Start static SRv6 SID.

If no static SRv6 SIDs exist, this field displays N/A.

Static SID end

End static SRv6 SID.

If no static SRv6 SIDs exist, this field displays N/A.

Compressed auto SID start

Start value for compressible dynamic SRv6 SIDs.

If no compressible dynamic SRv6 SIDs exist, this field displays N/A.

Compressed auto SID end

End value for compressible dynamic SRv6 SIDs.

If no compressible dynamic SRv6 SIDs exist, this field displays N/A.

Compressed static SID start

Start value for compressible static SRv6 SIDs.

If no compressible static SRv6 SIDs exist, this field displays N/A.

Compressed static SID end

End value for compressible static SRv6 SIDs.

If no compressible static SRv6 SIDs exist, this field displays N/A.

Non-compressed auto SID start

Start value for non-compressible dynamic SRv6 SIDs.

If no non-compressible dynamic SRv6 SIDs exist, this field displays N/A.

Non-compressed auto SID end

End value for non-compressible dynamic SRv6 SIDs.

If no non-compressible dynamic SRv6 SIDs exist, this field displays N/A.

Non-compressed static SID start

Start value for non-compressible static SRv6 SIDs.

If no non-compressible static SRv6 SIDs exist, this field displays N/A.

Non-compressed static SID end

End value for non-compressible static SRv6 SIDs.

If no non-compressible static SRv6 SIDs exist, this field displays N/A.

Reserved SID start

Start value for reserved SRv6 SIDs.

If no start value is specified for SRv6 SID reservation, this field displays N/A.

Reserved SID count

Number of reserved SRv6 SIDs.

Reserved SID end

End value for reserved SRv6 SIDs.

If no end value is specified for SRv6 SID reservation, this field displays N/A.

Compressed Auto SID count

Number of dynamic compressible SRv6 SIDs.

Compressed Static SID count

Number of static compressible SRv6 SIDs.

Non-compressed Auto SID count

Number of dynamic non-compressible SRv6 SIDs.

Non-compressed Static SID count

Number of static non-compressible SRv6 SIDs.

display segment-routing ipv6 locator-statistics

Use display segment-routing ipv6 locator-statistics to display SRv6 locator configuration and statistics about allocated SRv6 SIDs in locators.

Syntax

display segment-routing ipv6 locator-statistics [ locator-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

locator-name: Specifies a locator by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a locator, this command displays SRv6 locator configuration and statistics about allocated SRv6 SIDs in all locators.

Examples

# Display SRv6 locator configuration and statistics about allocated SRv6 SIDs in all locators.

<Sysname> display segment-routing ipv6 locator-statistics

 

                      Locator configuration table

 

Total Locators: 1    Total SIDs: 1

 

Name       IPv6 prefix/Prefix length       CDyn/CStatic/Dyn/Static   Flag   Algo

abc        100:1::/64                      0   /0      /0  /1        0      0

Table 15 Command output

Field

Description

Total Locators

Total number of locators.

Total SIDs

Total number of SIDs that have been allocated in the locators.

Name

Locator name.

IPv6 prefix/Prefix length

Locator prefix and prefix length.

CDyn/CStatic/Dyn/Static

Number of dynamic compressible SRv6 SIDs, number of static compressible SRv6 SIDs, number of dynamic non-compressible SRv6 SIDs, and number of static non-compressible SRv6 SIDs.

Flag

Anycast locator flag (A flag). The value is 1 if this flag is set, which indicates that the locator is an anycast locator.

Algo

Algorithm ID:

·     0—SPF algorithm.

·     128 to 255—Flex-Algo algorithm. This field is not supported in the current software version.

encapsulation source-address

Use encapsulation source-address to specify a source address for the outer IPv6 header of SRv6 packets.

Use undo encapsulation source-address to restore the default.

Syntax

encapsulation source-address ipv6-address [ ip-ttl ttl-value ]

undo encapsulation source-address

Default

No source address is specified for the outer IPv6 header of SRv6 packets.

Views

SRv6 view

Predefined user roles

network-admin

Parameters

ipv6-address: Specifies a source IPv6 address. The IPv6 address cannot be a loopback address, 0:0:0:0:0:0:0:0 or ::, link-local address, multicast address, or unspecified address.

ip-ttl ttl-value: Specifies the TTL of the outer IPv6 header, in the range of 1 to 255. The default value is 255.

Usage guidelines

As a best practice to ensure correct traffic forwarding in an SRv6 network, specify a source address for the outer IPv6 header of SRv6 packets.

You must specify an IPv6 address of the local device as the source IPv6 address, and make sure the IPv6 address has been advertised by a routing protocol. As a best practice, specify a loopback interface address of the local device as the source IPv6 address.

Examples

# Specify 1::1 as the source address of SRv6 packets in the outer IPv6 header and set the TTL of the outer IPv6 header to 200.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] encapsulation source-address 1::1 ip-ttl 200

locator

Use locator to create an SRv6 locator and enter its view, or enter the view of an existing SRv6 locator.

Use undo locator to delete an SRv6 locator.

Syntax

locator locator-name [ ipv6-prefix ipv6-address prefix-length [ args args-length | static static-length ] * ]

undo locator locator-name

Default

No SRv6 locators exist.

Views

SRv6 view

Predefined user roles

network-admin

Parameters

locator-name: Specifies a locator name, a case-sensitive string of 1 to 31 characters.

ipv6-prefix ipv6-address prefix-length: Specifies an IPv6 address prefix and the prefix length. The ipv6-address argument represents the IPv6 address prefix. The prefix-length argument represents the prefix length, in the range of 32 to 120.

args args-length: Specifies an argument length. The value range for the args-length argument depends on the value of the prefix-length argument and varies by device model. If you do not specify an argument length, the argument length is 0.

static static-length: Specifies the static length. The value range for the static-length argument varies by the value of the prefix-length argument and varies by device model. If you do not specify a static length, the static length is 0.

Usage guidelines

An SRv6 locator can be different types. For more information about the SRv6 SID fields, see SRv6 configuration in Segment Routing Configuration Guide.

If a static opcode has been configured, a routing protocol preferentially uses the static opcode to construct SRv6 SIDs. If no static opcode exists, the routing protocol dynamically allocates SRv6 SIDs.

By applying a locator to IGP and BGP, you can use IGP and BGP to advertise the SRv6 SIDs on the locator.

When you create a locator, you must specify an IPv6 address prefix, prefix length, and static length for the locator. When you enter the view of an existing SRv6 locator, you do not need to specify the IPv6 address prefix, prefix length, or static length of the locator.

Each locator must have a unique name.

Do not specify the same IPv6 address prefix and prefix length for different locators. In addition, the IPv6 address prefixes of different locators cannot overlap.

You cannot delete a locator if that locator has dynamic SRv6 SIDs that are being used.

Examples

# Configure locator test1, setting the IPv6 address prefix to 100::, prefix length to 64, and static length to 32, and enter the SRv6 locator view of this locator.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] locator test1 ipv6-prefix 100:: 64 static 32

[Sysname-segment-routing-ipv6-locator-test1]

Related commands

opcode

opcode

Use opcode to configure the opcode of SRv6 SIDs for a locator.

Use undo opcode to delete the opcode of SRv6 SIDs for a locator.

Syntax

opcode opcode end-dt4 [ vpn-instance vpn-instance-name [ evpn | l3vpn-evpn ] ]

opcode opcode  end-dt6 [ vpn-instance vpn-instance-name [ evpn | l3vpn-evpn ] ]

opcode opcode end-dt2m vsi vsi-name

opcode opcode end-dt2u vsi vsi-name

undo opcode opcode { end-dt2m | end-dt2u | end-dt4 | end-dt6 }

Default

No opcode exists.

Views

SRv6 locator view

Predefined user roles

network-admin

Parameters

opcode: Specifies an opcode in the range of 1 to 2static-length-1, in which the static-length argument is configured by using the locator command.

end-dt4: Specifies the End.DT4 type.

end-dt6: Specifies the End.DT6 type.

end-dt2m: Specifies the End.DT2M type.

end-dt2u: Specifies the End.DT2U type.

weight weight-value: Specifies the load sharing weight value for the path, in the range of 1 to 254. The default value is 1.

vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance to which the SRv6 SIDs belong. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. The specified VPN instance must exist. If the SRv6 SIDs belong to the public network, do not specify this option.

evpn: Specifies EVPN routes. If you do not specify this keyword, the command specifies the SRv6 SIDs of VPNv4 or VPNv6 routes.

l3vpn-evpn: Specifies EVPN routes, VPNv4 routes, and VPNv6 routes.

vsi vsi-name: Specifies the VSI to which the SRv6 SIDs belong. The vsi-name argument represents the VSI name, a case-sensitive string of 1 to 31 characters. The specified VSI must exist.

Usage guidelines

An SRv6 locator and its opcode and argument generate unique SRv6 SIDs. SRv6 SIDs form local SID forwarding table entries.

Use this command to configure the opcode of static SRv6 SIDs on a locator. The number of static SRv6 SIDs is determined by the static static-length option in the locator command.

To modify the opcode of static SRv6 SIDs on a locator, you must first delete the original opcode by using the undo opcode command.

Examples

# Configure End-DT4 SRv6 SIDs, and set the opcode to 64.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] locator test ipv6-prefix 100:: 64 static 32

[Sysname-segment-routing-ipv6-locator-test] opcode 64 end-dt4

Related commands

locator

segment-routing ipv6

segment-routing ipv6 (system view)

Use segment-routing ipv6 to enable SRv6 and enter SRv6 view.

Use undo segment-routing ipv6 to disable SRv6.

Syntax

segment-routing ipv6

undo segment-routing ipv6

Default

SRv6 is disabled.

Views

System view

Predefined user roles

network-admin

Usage guidelines

After you execute this command, you can configure locators in SRv6 view. Then, you can configure the opcode portion in SRv6 locator view to generate local SID forwarding table entries.

You cannot disable SRv6 when a locator in SRv6 view has dynamic SRv6 SIDs that are being used.

Examples

# Enable SRv6 and enter SRv6 view.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6]

segment-routing ipv6 locator (IS-IS IPv6 address family view)

Use segment-routing ipv6 locator to apply an SRv6 locator to an IPv6 IS-IS process.

Use undo segment-routing ipv6 locator to remove the specified SRv6 locator from an IPv6 IS-IS process.

Syntax

segment-routing ipv6 locator locator-name [ level-1 | level-2 ]

undo segment-routing ipv6 locator locator-name

Default

No SRv6 locators are applied to an IPv6 IS-IS process.

Views

IS-IS IPv6 address family view

Predefined user roles

network-admin

Parameters

locator-name: Specifies a locator by its name, a case-sensitive string of 1 to 31 characters.

level-1: Specifies the level-1 area.

level-2: Specifies the level-2 area.

Usage guidelines

Use this command to enable IPv6 IS-IS to advertise SRv6 SIDs.

If you do not specify a level, this command applies the specified locator to both level-1 and level-2 areas.

Use this command only when the cost style of IS-IS is wide, compatible, or wide-compatible.

Execute this command multiple times to apply multiple locators to an IPv6 IS-IS process so that the process can advertise multiple SRv6 SIDs.

The auto-sid-coc32 keyword takes effect only when the specified locator is a COC32 locator.

The auto-sid-coc-both { all | coc32 | coc32-all | coc32-none } keyword takes effect only when the specified locator is a COC-both locator.

Examples

# Apply locator abc to an IPv6 IS-IS process.

<Sysname> system-view

[Sysname] isis 1

[Sysname-isis-1] cost-style wide

[Sysname-isis-1] address-family ipv6

[Sysname-isis-1-ipv6] segment-routing ipv6 locator abc

Related commands

display segment-routing ipv6 locator

locator

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网