20-Segment Routing Command Reference

HomeSupportNFVH3C VSRReference GuidesCommand ReferencesH3C VSR Series Virtual Services Routers Command References(V7)-R1340-6W10020-Segment Routing Command Reference
02-SRv6 commands
Title Size Download
02-SRv6 commands 215.42 KB

SRv6 commands

display bgp egress-engineering ipv6

Use display bgp egress-engineering ipv6 to display BGP-EPE information for IPv6 peers.

Syntax

display bgp [ instance instance-name ] egress-engineering ipv6 [ ipv6-address ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

instance instance-name: Specifies a BGP instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a BGP instance, this command displays information about the default BGP instance.

ipv6-address: Specifies an IPv6 peer by its IPv6 address. The specified IPv6 peer must already exist. If you do not specify an IPv6 peer, this command displays BGP-EPE information for all IPv6 peers.

verbose: Displays detailed BGP-EPE information. If you do not specify this keyword, the command displays only brief BGP-EPE information.

Examples

# Display BGP-EPE information for all IPv6 peers.

<Sysname> display bgp egress-engineering ipv6

BGP peering segment type: Node-Adjacency

  Peer NodeAdj     : 2::9

  Local AS number  : 100

  Remote AS number : 200

  Local router ID  : 1.1.1.9

  Remote router ID : 2.2.2.9

  Interface        : GE1/0

  OriginalNextHop  : 2::9

  RelayNextHop     : FE80::28B6:9EFF:FE23:206

  Interface        : GE2/0

  OriginalNextHop  : 2::9

  RelayNextHop     : FE80::28B6:9EFF:FE23:208

# Display detailed BGP-EPE information for all IPv6 peers.

<Sysname> display bgp egress-engineering ipv6 verbose

BGP peering segment type: Node-Adjacency

  PeerAdj Num              : 2

  Nexthop                  : 2::9

  Local AS number          : 100

  Remote AS number         : 200

  Local router ID          : 1.1.1.9

  Remote router ID         : 2.2.2.9

  Local interface address  : 10::1

  Remote interface address : 10::2

  OriginalNextHop          : 2::9

  RelayNextHop             : FE80::28B6:9EFF:FE23:206

  SID(no PSP, no USP)      : 200::1

  SID(PSP)                 : 200::2

  Local interface address  : 20::1

  Remote interface address : 20::2

  OriginalNextHop          : 2::9

  RelayNextHop             : FE80::28B6:9EFF:FE23:208

  SID(no PSP, no USP)      : 200::1

  SID(PSP)                 : 200::2

 

  BGP peering segment type : Adjacency

    PeerAdj                  : FE80::28B6:9EFF:FE23:206

    Local AS number          : 100

    Remote AS number         : 200

    Local router ID          : 1.1.1.9

    Remote router ID         : 2.2.2.9

    Local interface address  : FE80::28B6:9EFF:FE23:D16

    Remote interface address : FE80::28B6:9EFF:FE23:206

    Interface                : GE1/0

    OriginalNextHop          : 2::9

    RelayNextHop             : FE80::28B6:9EFF:FE23:206

    SID(no PSP, no USP)      : 200::3

    SID(PSP)                 : 200::4

 

  BGP peering segment type : Adjacency

    PeerAdj                  : FE80::28B6:9EFF:FE23:208

    Local AS number          : 100

    Remote AS number         : 200

    Local router ID          : 1.1.1.9

    Remote router ID         : 2.2.2.9

    Local interface address  : FE80::28B6:9EFF:FE23:D18

    Remote interface address : FE80::28B6:9EFF:FE23:208

    Interface                : GE2/0

    OriginalNextHop          : 2::9

    RelayNextHop             : FE80::28B6:9EFF:FE23:208

    SID(no PSP, no USP)      : 200::5

    SID(PSP)                 : 200::6

Table 1 Command output

Field

Description

BGP peering segment type

BGP peering segment type of the peer:

·     Node—Node type.

·     Adjacency—Adjacency type.

·     Node-Adjacency—Node and adjacency type.

Peer Node

Address of the node-type peer.

Peer Adj

Address of the adjacency-type peer.

Peer NodeAdj

Address of the node- and adjacency-type peer.

PeerAdj Num

Number of adjacency-type peers.

Interface

Information about the interface used to establish peer relationship.

OriginalNextHop

IP address of the original next hop.

RelayNextHop

IP address of the recursed next hop.

SID(PSP)

End.X SID (PSP type).

SID(no PSP, no USP)

End.X SID (non-PSP and non-USP type).

display bgp egress-engineering srv6 peer-set

Use display bgp egress-engineering srv6 peer-set to display information about BGP-EPE SRv6 peer sets.

Syntax

display bgp egress-engineering srv6 peer-set [ srv6-peer-set-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

peer-set-name: Specifies a BGP-EPE SRv6 peer set by its name, a case-sensitive string of 1 to 63 characters. If you do not specify a BGP-EPE SRv6 peer set, this command displays information about all BGP-EPE SRv6 peer sets.

Examples

# Display information about all BGP-EPE SRv6 peer sets.

<Sysname> display bgp egress-engineering srv6 peer-set

 

BGP egress peering segment srv6 peer-set: abc

  SID(PSP) : 101::1:0:0

  SID(no PSP, no USP) : 101::1:0:1

Members: 1

  Peer: 4:4:4::4

Table 2 Command output

Field

Description

BGP egress peering segment srv6 peer-set

Name of a BGP-EPE SRv6 peer set.

SID(PSP)

End.X SID (PSP type).

SID(no PSP, no USP)

End.X SID (non-PSP and non-USP type).

Members

Number of peers in the BGP-EPE SRv6 peer set.

Peer

Peer in the BGP-EPE SRv6 peer set.

display ipv6 segment-routing sid-list

Use display ipv6 segment-routing sid-list to display SID list information.

Syntax

display ipv6 segment-routing sid-list [ list-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

list-name: Specifies an SID list by its name, a case-sensitive string of 1 to 31 characters. If you do not specify an SID list, this command displays information for all SID lists.

Examples

# Display information for SID list aa.

<Sysname> display ipv6 segment-routing sid-list aa

SID list name: aa

  SID information:

    SID index               Address

    1                       10::1

    2                       20::1

    3                       30::1

  SID list usage on tunnels:

    Tunnel number            SID list role

    0                        Primary

    1                        Backup

    2                        Primary

Table 3 Command output

Field

Description

Address

IPv6 address of the SR node.

SID list usage on tunnels

SID list usage on SRv6 tunnels.

SID list role

Role of the SID list on an SRv6 tunnel:

·     Primary.

·     Backup.

 

Related commands

ipv6 segment-routing sid-list

sid

tunnel sid-list

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 4 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 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 information. If you do not specify this keyword, the command displays only brief IS-IS SRv6 locator 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 information for all IS-IS processes.

Examples

# Display IS-IS SRv6 locator 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: GE1/0

 

 Destination : 202::                                   PrefixLen: 64

 Flags       : R/-/-                                   Cost     : 1

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

 

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

Table 5 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 isis srv6 tunnel

Use display isis srv6 tunnel to display IS-IS SRv6 tunnel interface information.

Syntax

display isis srv6 tunnel [ level-1 | level-2 ] [ process-id ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

level-1: Specifies the level-1 area.

level-2: Specifies the level-2 area.

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 tunnel interface information for all IS-IS processes.

Usage guidelines

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

Examples

# Display SRv6 tunnel interface information for IS-IS process 1.

<Sysname> display isis srv6 tunnel

 

                    SRv6 tunnel information for IS-IS(1)

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

 

                           Level-1 tunnel statistics

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

 

   Tunnel name  Auto route  Destination                        Metric

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

   Tun0         Shortcut    1000::1                            Relative 0

 

                           Level-2 tunnel statistics

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

 

   Tunnel name  Auto route  Destination                        Metric

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

   Tun0         Shortcut    1000::                             Relative 0

Table 6 Command output

Field

Description

Auto route

Implementation method of automatic route advertisement on the tunnel interface:

·     Advertise—Forwarding adjacency. This method is not supported in the current software version.

·     Shortcut—IGP shortcut.

Metric

Metric of the tunnel interface.

Supported metric types:

·     Relative.

·     Absolute.

display ospfv3 segment-routing ipv6 capability

Use display ospfv3 segment-routing ipv6 capability to display OSPFv3 SRv6 capability information.

Syntax

display ospfv3 [ process-id ] segment-routing ipv6 capability

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

process-id: Specifies an OSPFv3 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 OSPFv3 processes.

Examples

# Display SRv6 capability information for all OSPFv3 processes.

<Sysname> display ospfv3 segment-routing ipv6 capability

 

            OSPFv3 Process 1 with Router ID 1.1.1.1

 

Area 0.0.0.0

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

 Router ID        SRv6 capability

 2.2.2.2          Enabled

Table 7 Command output

Field

Description

Router ID

Device router ID.

SRv6 capability

Whether SRv6 is enabled. Only Enabled is supported.

display ospfv3 segment-routing ipv6 locator

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

Syntax

display ospfv3 [ process-id ] segment-routing ipv6 locator [ ipv6-address prefix-length ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

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

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. If you do not specify this option, the command displays locator information for all IPv6 prefixes.

Examples

# Display locator information for all OSPFv3 processes.

<Sysname> display ospfv3 segment-routing ipv6 locator

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

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

 I  - Intra area route,  E1 - Type 1 external route,  N1 - Type 1 NSSA route

 IA - Inter area route,  E2 - Type 2 external route,  N2 - Type 2 NSSA route

 *  - Selected route

 

 *Destination: 192:168::12:0/120

  Type       : I                         Area       : 0.0.0.0

  AdvRouter  : 2.2.2.2                   Preference : 10

  NibID      : 0x23000002                Cost       : 10

  Interface  : GE1/0                     BkInterface: N/A

  Nexthop    : ::

  BkNexthop  : N/A

  Status     : Direct

Table 8 Command output

Field

Description

Destination

Destination network.

Type

Route type.

Area

Area ID.

AdvRouter

ID of the router that advertises LSAs.

Preference

Route preference.

NibID

ID of the next hop information in the route.

Cost

Route cost.

Interface

Output interface.

BkInterface

Backup output interface.

Nexthop

Next hop address.

BkNexthop

Backup next hop address.

Status

Route state:

·     Local—The route is a local route and has not been sent to the route management module.

·     Invalid—The next hop of the route is invalid.

·     Stale—The next hop of the route is stale.

·     Normal—The route is usable.

·     Delete—The route is deleted.

·     Direct—The route is a direct route.

·     Rely—The route is recursed by another route.

 

display ospfv3 srv6 tunnel

Use display ospfv3 srv6 tunnel to display OSPFv3 SRv6 tunnel interface information.

Syntax

display ospfv3 [ process-id ] srv6 tunnel [ interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

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

interface-number: Specifies an existing SRv6 tunnel interface by its interface number. If you do not specify an SRv6 tunnel interface, this command displays information about all SRv6 tunnel interfaces.

Examples

# Display SRv6 tunnel interface information for all OSPFv3 processes.

<Sysname> display ospfv3 srv6 tunnel

               OSPFv3 Process 1 with Router ID 1.1.1.1

                      SRv6 Tunnel Information

 

 Area: 0.0.0.0

 Interface: Tunnel1

        State      : Active

        Neighbor ID: 4.4.4.4

        Cost       : 1

        Auto route : Shortcut

        Metric     : Absolute  1

        Destination: 4::44

Table 9 Command output

Field

Description

Interface

Tunnel interface name.

State

Tunnel interface state:

·     Inactive—The next hop of the tunnel interface is not the optimal next hop. The tunnel interface is not used to forward traffic.

·     Active—The next hop of the tunnel interface is the optimal next hop. The tunnel interface is used to forward traffic.

Neighbor ID

Neighbor ID of the tunnel interface:

·     When the tunnel interface state is Inactive, the neighbor ID is 0.0.0.0, which indicates that the tunnel is not on the optimal path.

·     When the tunnel interface state is Active, the neighbor ID is the router ID of the tunnel destination end.

Cost

Route cost of the tunnel interface:

·     When the tunnel interface state is Inactive, this field displays 4294967295, which indicates that the tunnel is not on the optimal path.

·     When the tunnel interface state is Active, this field displays the cost of the route destined for the router ID of the tunnel destination end.

Destination

Tunnel destination address.

Auto route

Implementation method of automatic route advertisement on the tunnel interface. The value for this field is Shortcut, which represents IGP Shortcut.

Metric

Metric of the SRv6 tunnel interface.

Supported metric types:

·     Absolute.

·     Relative.

display segment-routing ipv6 forwarding

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

Syntax

In standalone mode:

display segment-routing ipv6 forwarding [ entry-id ]

In IRF mode:

display segment-routing ipv6 forwarding [ entry-id ] [ slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

entry-id: Specifies an SRv6 forwarding entry by its ID. The value range for this argument is 0 to 4294967294. If you do not specify an SRv6 forwarding entry ID, this command displays information about all SRv6 forwarding entries.

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. (In IRF mode.)

slot slot-number: Specifies a VM by its slot number. (vBRAS-CPs)

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

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

2148532225    SRv6PSIDList  NA      GE1/0

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

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

2149580801    SRv6PCPath    TA      2148532225

2150629377    SRv6Policy    TA      2149580801

Table 10 Command output

Field

Description

FWD-Type

Tunnel forwarding type:

·     SRv6PSIDList—Tunnel established based on the SID list in an SRv6 TE policy.

·     SRv6PCPath—Tunnel established on the candidate path selected by an SRv6 TE policy.

·     SRv6Policy—SRv6 TE policy tunnel.

·     SRv6PGROUP—SRv6 TE policy group tunnel.

Flags

Forwarding flags:

·     T—Tunnel forwarding.

·     N—Output interface or next hop forwarding.

·     A—Active forwarding information.

·     B—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.

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 { end | end-b6encaps | end-dt4 | end-dt46 | end-dt6 | end-dx4 | end-dx6 | end-op | end-x } [ sid ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

end: Specifies End SIDs.

end-b6encaps: Specifies End.B6ENCAPS SIDs.

end-dt4: Specifies End.DT4 SIDs.

end-dt46: Specifies End.DT46 SIDs.

end-dt6: Specifies End.DT6 SIDs.

end-dx4: Specifies End.DX4 SIDs.

end-dx6: Specifies End.DX6 SIDs.

end-op: Specifies End.OP SIDs.

end-x: Specifies End.X 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.

Examples

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

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

 

                    Local SID forwarding table (End)

 

Total SIDs: 1

 

SID           : 100::64/96

Function type : End                             Flavor         : PSP

Locator name  : abc                             Allocation type: Static

Owner         : SIDMGR                          State          : Active

Create Time   : May 19 17:21:15.687 2020

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

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

 

                    Local SID forwarding table (End.X)

 

Total SIDs: 1

 

SID           : 1000:0:0:15::/32

Function type : End.X                           Flavor          : PSP

Interface     : GE1/0                           Interface index : 0x102

Next hop      : FE80::1                         Allocation type : Static

Locator name  : abc

Owner         : SIDMGR                          State           : Active

Create Time   : May 19 17:21:46.740 2020

# 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

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

Create Time   : May 19 17:22:27.356 2020

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

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

 

                    Local SID forwarding table (End.OP)

 

Total SIDs: 1

 

SID           : 100::190/96

Function type : End.OP

Locator name  : abc

Owner         : SIDMGR                          State          : Active

Create Time   : May 19 17:23:40.248 2020

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

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

 

                    Local SID forwarding table (End.DX4)

 

Total SIDs: 1

 

SID           : 100::1:0:4/64

Function type : End.DX4                         Flavor          : PSP

Interface     : GE1/0                         Interface index : 0x11d

Nexthop       : 10.1.1.1

VPN instance  : vpn1                            Allocation type: Dynamic

Locator name  : bbb

Owner         : BGP                             State          : Active

Create Time   : Jun 09 19:30:25.467 2020

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

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

 

                    Local SID forwarding table (End.DX6)

 

Total SIDs: 1

 

SID           : 100::2/64

Function type : End.DX6                         Flavor          : PSP

Interface     : GE1/0                         Interface index : 0x11d

Nexthop       : 100::10

VPN instance  : vpn1                            Allocation type: Dynamic

Locator name  : aaa

Owner         : BGP                             State          : Active

Create Time   : Jun 09 19:41:36.749 2020

Table 11 Command output

Field

Description

SID

SRv6 SID.

Function type

SRv6 SID type:

·     End.

·     End.B6.Encaps.

·     End.DT4.

·     End.DT46.

·     End.DT6.

·     End.OP.

·     End.X.

·     End.DX4.

·     End.DX6.

Flavor

SRv6 SID flavor type:

·     PSP—The penultimate SRv6 node removes the SRH.

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

Interface

Output interface.

Interface index

Output interface index.

Next hop

Next hop address.

Allocation type

SID allocation type:

·     Static—Manually configured.

·     Dynamic—Dynamically allocated.

Owner

Protocol that applies for the SID:

·     SIDMGR.

·     BGP.

·     SRPolicy.

·     IS-IS.

·     OSPFv3.

·     LSM.

State

SID state:

·     Active.

·     Inactive.

Create Time

SID creation time.

 

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.

<Sysname> display segment-routing ipv6 locator

 

                      Locator configuration table

 

Locator name        : abc

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

Static length       : 24                                    Args length   : 8

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

Table 12 Command output

Field

Description

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.

Auto SID start

Start dynamic SRv6 SID.

If no dynamic SRv6 SID exists, this field displays N/A.

Auto SID end

End dynamic SRv6 SID.

If no dynamic SRv6 SID exists, this field displays N/A.

Static SID start

Start static SRv6 SID.

If no static SRv6 SID exists, this field displays N/A.

Static SID end

End static SRv6 SID.

If no static SRv6 SID exists, this field displays N/A.

egress-engineering srv6 peer-set

Use egress-engineering srv6 peer-set to create a BGP-EPE SRv6 peer set.

Use undo egress-engineering srv6 peer-set to delete a BGP-EPE SRv6 peer set.

Syntax

egress-engineering srv6 peer-set peer-set-name [ static-sid { psp psp-sid | no-psp-usp no-psp-usp-sid } * ]

undo egress-engineering srv6 peer-set peer-set-name

Default

No BGP-EPE SRv6 peer sets exist.

Views

BGP instance view

Predefined user roles

network-admin

Parameters

peer-set-name: Specifies a name for the BGP-EPE SRv6 peer set, which is a case-sensitive string of 1 to 63 characters.

static-sid: Specifies a static SRv6 SID for the BGP-EPE SRv6 peer set. If you do not specify a static SRv6 SID, dynamic SRv6 SID allocation applies.

psp psp-sid: Specifies an End.X SID and enables PSP to remove the SRH on the penultimate segment.

no-psp-usp no-psp-usp-sid: Specifies an End.X SID and disables PSP and USP. The SRH is not removed on the penultimate segment or the ultimate segment.

Usage guidelines

BGP-EPE allocates BGP peer SIDs to inter-AS segments. The device advertises the peer SIDs to a network controller through BGP LS messages. The controller orchestrates the IGP SIDs and BGP peer SIDs to realize optimal inter-AS traffic forwarding.

If the device establishes BGP peer relationship with multiple devices, use this command to add the peer devices to a peer set and allocate a PeerSet SID to the peer set. When the device forwards traffic based on the PeerSet SID, it distributes the traffic among the peers for load sharing.

Before you use this command, apply a locator to BGP-EPE by using the segment-routing ipv6 egress-engineering locator command in BGP instance view.

·     If automatic SID allocation is used, the device dynamically allocates an SRv6 SID to the BGP-EPE SRv6 peer set from the specified locator.

·     If you specify a static SRv6 SID for the BGP-EPE SRv6 peer set, the specified static SRv6 SID must belong to the specified locator.

If you execute the egress-engineering srv6 peer-set command to specify multiple SRv6 SIDs for one peer set, the effective configuration depends on whether the SRv6 SIDs are the same type.

·     If all the SRv6 SIDs belong to the same type, only the most recent configuration takes effect.

·     If the SRv6 SIDs belong to different types, the configuration for all the SRv6 SID types takes effect. For the SRv6 SIDs that belong to the same type, only the most recent configuration takes effect. Make sure each SRv6 SID is unique among all the SRv6 SID types.

The static SRv6 SIDs configured by using the following commands cannot be the same:

·     egress-engineering srv6 peer-set.

·     peer egress-engineering srv6.

Examples

# Create a BGP-EPE SRv6 peer set named epe and configure the peer set to use a dynamically allocated SRv6 SID.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] egress-engineering srv6 peer-set epe

Related commands

peer egress-engineering srv6

peer peer-set

segment-routing ipv6 egress-engineering locator

fast-reroute ti-lfa

Use fast-reroute ti-lfa to enable Topology-Independent Loop-free Alternate Fast Re-Route (TI-LFA FRR).

Use undo fast-refroute ti-lfa to disable TI-LFA FRR.

Syntax

In IS-IS IPv6 unicast address family view:

fast-reroute ti-lfa [ per-prefix ] [ route-policy route-policy-name | host ] [ level-1 | level-2 ]

undo fast-reroute ti-lfa [ level-1 | level-2 ]

In OSPFv3 process view:

fast-reroute ti-lfa [ per-prefix ] [ route-policy route-policy-name | host ]

undo fast-reroute ti-lfa

Default

TI-LFA FRR is disabled.

Views

IS-IS IPv6 unicast address family view

OSPFv3 process view

Predefined user roles

network-admin

Parameters

per-prefix: Calculates backup information for each advertising source of a route. Specify this keyword only if routes are advertised by multiple sources. If you do not specify this keyword, the device calculates backup information for each route.

route-policy route-policy-name: Enables TI-LFA FRR for prefixes identified by the routing policy. The route-policy-name argument specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.

host: Enables TI-LFA for host routes.

level-1: Specifies TI-LFA FRR for IS-IS Level-1.

level-2: Specifies TI-LFA FRR for IS-IS Level-2.

Usage guidelines

TI-LFA FRR provides link and node protection for SR tunnels. When a link or node fails, TI-LFA FRR switches the traffic to the backup path to ensure continuous data forwarding.

Before configuring TI-LFA FRR on a level, you must execute the fast-reroute lfa command in IS-IS IPv6 unicast address family view or OSPFv3 process view to enable LFA FRR on that level. TI-LFA FRR takes effect only after you enable LFA FRR.

If you do not specify the route-policy route-policy-name option or the host keyword, the device calculates backup information for all routes.

If you do not specify the level-1 or level-2 keyword, the command applies to both IS-IS levels.

Examples

# Enable TI-LFA FRR for IS-IS process 1 and calculate backup information for all routes.

<Sysname> system-view

[Sysname] isis 1

[Sysname-isis-1] address-family ipv4

[Sysname-isis-1-ipv4] fast-reroute ti-lfa

# Enable TI-LFA FRR for OSPFv3 process 1 and calculate backup information for all routes.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] fast-reroute ti-lfa

Related commands

fast-reroute (IS-IS in Layer 3—IP Routing Command Reference)

fast-reroute (OSPFv3 in Layer 3—IP Routing Command Reference)

route-policy (Layer 3—IP Routing Command Reference)

ipv6 segment-routing sid-list

Use ipv6 segment-routing sid-list to create an SID list and enter its view, or enter the view of an existing SID list.

Use undo ipv6 segment-routing sid-list to delete an SID list.

Syntax

ipv6 segment-routing sid-list list-name

undo ipv6 segment-routing sid-list list-name

Default

No SID lists exist.

Views

System view

Predefined user roles

network-admin

Parameters

list-name: Specifies the name of the SID list, a case-sensitive string of 1 to 31 characters.

Examples

# Create SID list aa and enter its view.

<Sysname> system-view

[Sysname] ipv6 segment-routing sid-list aa

[Sysname-srv6-sid-list-aa]

Related commands

sid

tunnel sid-list

isis ipv6 fast-reroute ti-lfa disable

Use isis ipv6 fast-reroute ti-lfa disable to prevent an IS-IS interface from participating in TI-LFA calculation.

Use undo isis ipv6 fast-reroute ti-lfa disable to allow an IS-IS interface to participate in TI-LFA calculation.

Syntax

isis ipv6 fast-reroute ti-lfa disable [ level-1 | level-2 ]

undo isis ipv6 fast-reroute ti-lfa disable [ level-1 | level-2 ]

Default

An IS-IS interface participates in TI-LFA calculation.

Views

Interface view

Predefined user roles

network-admin

Parameters

level-1: Specifies TI-LFA calculation on IS-IS Level-1.

level-2: Specifies TI-LFA calculation on IS-IS Level-2.

Usage guidelines

Disable the output interface to the primary next hop from participating in TI-LFA calculation.

If you do not specify the level-1 or level-2 keyword, this command applies to both IS-IS levels.

Examples

# Prevent GigabitEthernet1/0 from participating in TI-LFA calculation.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0

[Sysname-GigabitEthernet1/0] isis ipv6 fast-reroute ti-lfa disable

Related commands

fast-reroute ti-lfa

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. The IPv6 address prefix cannot be an IPv4-compatible IPv6 address.

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 SID is in the format of IPv6 address and it contains 128 bits. An SRv6 SID contains the Locator, Function, and Args portions.

·     The Locator portion is determined by the ipv6-prefix ipv6-address prefix-length parameter. The portion length is determined by the prefix-length argument. A locator is an IPv6 subnet. All IPv6 addresses in the subnet can be used as SRv6 SIDs.

·     The Function portion contains an opcode. The opcode can be a static opcode or a dynamic opcode.

¡     Static opcode—Manually configured by using the opcode command. SRv6 SIDs generated based on a static opcode are static SRv6 SID. The length of a static opcode is determined by the static static-length option, and it determines the number of static SRv6 SIDs on the locator.

¡     Dynamic opcode—Dynamically allocated by IGP or BGP. SRv6 SIDs generated based on a dynamic opcode are dynamic SRv6 SID. When dynamically allocating SRv6 SIDs, IGP or BGP applies for SIDs outside the static opcode range to avoid SRv6 SID conflicts.

·     The Args portion contains traffic flow and service information. This portion is determined by the args args-length option.

The length of a dynamic opcode is calculated by using the following formula: dynamic-length = 128 - (prefix-length + static-length + args-length).

A static SRv6 SID is generated based on the following formula: static SRv6 SID = ipv6-prefix + 0 + opcode + 0.

·     The ipv6-prefix portion represents the IPv6 prefix specified by using theipv6-address and prefix-length arguments in the locator command. The number of bits occupied by the IPv6 prefix is configured by using the prefix-length argument.

·     The number of bits occupied by 0s (following the ipv6-prefix portion) is the value of the dynamic-length argument.

·     The opcode portion represents the opcode. The number of bits occupied by the opcode is configured by using the static-length argument in the locator command.

·     The number of bits occupied by 0s (following the opcode portion) is the value of the args-length argument.

A dynamic SRv6 SID is generated based on the following formula: dynamic SRv6 SID = ipv6-prefix + dynamic + 0.

·     The ipv6-prefix portion represents the IPv6 prefix specified by using the ipv6-address and prefix-length arguments in the locator command. The number of bits occupied by the IPv6 prefix is configured by using the prefix-length argument.

·     The dynamic portion is dynamically allocated by IGP or BGP. The number of bits occupied by this portion is the value of the dynamic-length argument.

·     The number of bits occupied by 0s is the sum value of the static-length and args-length arguments.

For example, in the locator test1 ipv6-prefix 100:200:DB8:ABCD:: 64 static 24 args 32 command:

·     The Locator portion is 100:200:DB8:ABCD::. This portion occupies 64 bits.

·     The static opcode occupies 24 bits.

·     The Args portion occupies 32 bits.

·     The dynamic opcode occupies 8 bits.

The static SRv6 SID range and dynamic SRv6 SID range are as follows:

·     The start static SRv6 SID is 100:200:DB8:ABCD:0:1::.

·     The end static SRv6 SID is 100:200:DB8:ABCD:FF:FFFF::.

·     The start dynamic SRv6 SID is 100:200:DB8:ABCD:100::.

·     The end dynamic SRv6 SID is 100:200:DB8:ABCD:FFFF:FFFF::.

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

srv6 compress enable

opcode

Use opcode to configure the opcode of an SRv6 SID.

Use undo opcode to delete the opcode of an SRv6 SID.

Syntax

opcode opcode end

opcode opcode end-x interface interface-type interface-number nexthop nexthop-ipv6-address

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

opcode opcode end-dt46 [ vpn-instance vpn-instance-name [ evpn ] ]

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

opcode opcode end-dx4 interface interface-type interface-number nexthop nexthop-ipv4-address [ vpn-instance vpn-instance-name [ evpn ] ]

opcode opcode end-dx6 interface interface-type interface-number nexthop nexthop-ipv6-address [ vpn-instance vpn-instance-name [ evpn ] ]

opcode opcode end-op

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: Specifies the End type.

end-x: Specifies the End.X type.

end-dt4: Specifies the End.DT4 type.

end-dt46: Specifies the End.DT46 type.

end-dt6: Specifies the End.DT6 type.

end-dx4: Specifies the End.DX4 type.

end-dx6: Specifies the End.DX6 type.

end-op: Specifies the End.OP type.

interface interface-type interface-number: Specifies an output interface.

nexthop nexthop-ipv4-address: Specifies a next hop IPv4 address.

nexthop nexthop-ipv6-address: Specifies a next hop IPv6 address.

vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance to which the SRv6 SID belongs. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. The specified VPN instance must exist. If the SRv6 SID belongs 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 SID of VPNv4 or VPNv6 routes.

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 SRv6 SIDs, and set the opcode to 64. Configure End.X SRv6 SIDs, set the opcode to 128, and configure GigabitEthernet 1/0 as the output interface and 2001::1 as the next hop IPv6 address.

<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

[Sysname-segment-routing-ipv6-locator-test] opcode 128 end-x interface gigabitethernet 1/0 nexthop 2001::1

Related commands

locator

segment-routing ipv6

srv6 compress enable

ospfv3 fast-reroute ti-lfa disable

Use ospfv3 fast-reroute ti-lfa disable to prevent an OSPFv3 interface from participating in TI-LFA calculation.

Use undo ospfv3 fast-reroute ti-lfa disable to allow an OSPFv3 interface to participate in TI-LFA calculation.

Syntax

ospfv3 fast-reroute ti-lfa disable [ instance instance-id ]

undo ospfv3 fast-reroute ti-lfa disable [ instance instance-id ]

Default

An OSPFv3 interface participates in TI-LFA calculation.

Views

Interface view

Predefined user roles

network-admin

Parameters

instance instance-id: Specifies an instance by its ID, in the range of 0 to 255. The default value is 0.

Examples

# Prevent GigabitEthernet1/0 from participating in TI-LFA calculation.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0

[Sysname-GigabitEthernet1/0] ospfv3 fast-reroute ti-lfa disable

path-mtu

Use path-mtu to set the SRv6 path MTU.

Use undo path-mtu to restore the default.

Syntax

path-mtu mtu-value

undo path-mtu

Default

The SRv6 path MTU is 1500 bytes.

Views

SRv6 view

Predefined user roles

network-admin

Parameters

mtu-value: Sets the path MTU, in bytes. The value range for this argument is 1280 to 9600.

Usage guidelines

This command specifies the maximum bytes that can be contained in an SRv6 tunneled packets.

The transit nodes do not fragment SRv6 tunneled packets. If a packet is larger than the MTU of the output interface, the packet will be discarded. If the MTU is too small, the bandwidth is not sufficiently used. To address these issues, use this command to set an appropriate SRv6 path MTU.

Examples

# Set the SRv6 path MTU to 1500 bytes.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] path-mtu 1500

peer egress-engineering srv6

Use peer egress-engineering srv6 to enable SRv6 BGP-EPE.

Use undo peer egress-engineering srv6 to disable SRv6 BGP-EPE.

Syntax

peer group-name egress-engineering srv6

undo peer group-name egress-engineering srv6

peer ipv6-address [ prefix-length ] egress-engineering srv6 [ locator locator-name | static-sid { psp psp-sid | no-psp-usp no-psp-usp-sid } * ]

undo peer ipv6-address [ prefix-length ] egress-engineering srv6 [ locator | static-sid { psp | no-psp-usp } * ]

Default

SRv6 BGP-EPE is disabled.

Views

BGP instance view

Predefined user roles

network-admin

Parameters

group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The specified peer group must already exist.

ipv6-address: Specifies a peer by its IPv6 address. The specified peer must already exist.

prefix-length: Specifies the prefix length, in the range of 0 to 128. To specify dynamic peers within a subnet, you must specify both the ipv6-address and prefix-length arguments.

locator locator-name: Specifies a locator by its name. If you specify a locator, the device can dynamically allocate an End.X SID in the locator to the peer.

static-sid: Specifies a static SRv6 SID for the peer.

psp psp-sid: Specifies an End.X SID and enables PSP to remove the SRH on penultimate segment.

no-psp-usp no-psp-usp-sid: Specifies an End.X SID and disables PSP and USP. The SRH is not removed on the penultimate segment or the ultimate segment.

Usage guidelines

This command enables the device to allocate PeerNode SIDs and PeerAdj SIDs to peers.

If you do not specify any parameters, the device will dynamically allocate SRv6 SIDs to peers. The SRv6 SIDs belong to the locator specified by using the segment-routing ipv6 egress-engineering locator command in BGP instance view.

When you use the peer egress-engineering srv6 command for a peer, follow these restrictions and guidelines:

·     If you use this command to specify multiple locators for that peer, only the most recent configuration takes effect.

·     If you use this command to specify multiple static SRv6 SIDs and the SIDs belong to different types, all types of SRv6 SIDs can take effect. For the same type of SRv6 SIDs, only the most recent configuration takes effect.

If you specify a static SRv6 SID for a peer, the specified static SRv6 SID must belong to the locator specified by using the segment-routing ipv6 egress-engineering locator command in BGP instance view.

The static SRv6 SIDs specified by using the following commands cannot be the same:

·     peer egress-engineering srv6.

·     egress-engineering srv6 peer-set.

Examples

# Enable SRv6 BGP-EPE.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] peer 1::1 egress-engineering srv6

Related commands

egress-engineering srv6 peer-set

segment-routing ipv6 egress-engineering locator

peer peer-set

Use peer peer-set to add a peer to a BGP-EPE SRv6 peer set.

Use undo peer peer-set to remove a peer from a BGP-EPE SRv6 peer set.

Syntax

peer { ipv6-address [ prefix-length ] } peer-set srv6-peer-set-name

undo peer { ipv6-address [ prefix-length ] } peer-set

Default

No peers are added to a BGP-EPE SRv6 peer set.

Views

BGP instance view

Predefined user roles

network-admin

Parameters

ipv6-address: Specifies a peer by its IPv6 address. The peer must exist.

prefix-length: Specifies a prefix length in the range of 0 to 128. To specify a subnet, you must specify both the ipv6-address and prefix-length arguments.

peer-set-name: Specifies a BGP-EPE SRv6 peer set by its name, a case-sensitive string of 1 to 63 characters.

Usage guidelines

A PeerSet SID can be allocated to a BGP-EPE SRv6 peer set. When the device forwards traffic based on the PeerSet SID, it distributes the traffic among the peers in the peer set for load sharing.

Before adding a peer to a BGP-EPE SRv6 peer set, you must enable SRv6 BGP-EPE for that peer.

To change the BGP-EPE SRv6 peer set for a peer, you must first use undo peer peer-set command to remove that peer from the original BGP-EPE SRv6 peer set.

Examples

# Add peer 10::1 to the BGP-EPE SRv6 peer set named abc.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] peer 10::1 peer-set abc

Related commands

egress-engineering srv6 peer-set

peer egress-engineering srv6

router-id

Use router-id to configure the router ID for an IPv6 IS-IS process and enable IPv6 TE.

Use undo router-id to remove the router ID from an IPv6 IS-IS process and disable IPv6 TE.

Syntax

router-id ipv6-address

undo router-id

Default

No router ID is configured for an IPv6 IS-IS process and IPv6 TE is disabled.

Views

IS-IS IPv6 address family view

Predefined user roles

network-admin

Parameters

ipv6-address: Specifies an IPv6 router ID.

Usage guidelines

The IPv6 router ID must be unique in the IPv6 network.

The IPv6 router ID determines the source and destination addresses of the SRv6 tunnel distributed to the IGP. The destination address of the SRv6 tunnel must be the same as the IPv6 router ID of the destination node.

Configuring an IPv6 route ID on a router also enables the IPv6 TE feature on that router. After the SRv6 tunnel participates in IGP route calculation, traffic can be directed to the SRv6 tunnel.

Examples

# Configure the router ID for an IPv6 IS-IS process and enable IPv6 TE.

<Sysname> system-view

[Sysname] isis 1

[Sysname-isis-1] cost-style wide

[Sysname-isis-1] address-family ipv6

[Sysname-isis-1-ipv6] router-id 1000::1

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 egress-engineering locator

Use segment-routing ipv6 egress-engineering locator to apply a locator to BGP-EPE.

Use undo segment-routing ipv6 egress-engineering locator to restore the default.

Syntax

segment-routing ipv6 egress-engineering locator locator-name

undo segment-routing ipv6 egress-engineering locator

Default

No locator is applied to BGP-EPE.

Views

BGP instance view

Predefined user roles

network-admin

Parameters

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

Usage guidelines

Use this command to restrict the range of End.X SIDs that can be allocated to BGP-EPE SRv6 peer sets and BGP-EPE-enabled peers in a BGP instance. All static SRv6 SIDs configured for the BGP-EPE SRv6 peer sets and peers must belong to the locator specified by using this command.

To dynamically allocate End.X SIDs from the specified locator:

·     Do not configure a static SRv6 SID when you create a BGP-EPE SRv6 peer set by using the egress-engineering srv6 peer-set command.

·     Do not specify a locator or configure a static SRv6 SID when you enable SRv6 BGP-EPE for a peer by using the peer egress-engineering srv6 command.

Examples

# Apply locator test to BGP-EPE.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] segment-routing ipv6 egress-engineering locator test

Related commands

egress-engineering srv6 peer-set

peer egress-engineering srv6

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 ] [ auto-sid-disable ]

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.

auto-sid-disable: Disables automatic SRv6 SID allocation. If you do not specify this keyword, the device allows dynamically allocated SRv6 SIDs. If static SRv6 SIDs are configured when automatic SRv6 SID allocation is enabled, the static SRv6 SIDs take precedence. If no static SRv6 SIDs are configured when automatic SRv6 SID allocation is enabled, the system dynamically allocates SRv6 SIDs.

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.

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

segment-routing ipv6 locator (OSPFv3 process view)

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

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

Syntax

segment-routing ipv6 locator locator-name [ auto-sid-disable ]

undo segment-routing ipv6 locator locator-name

Default

No SRv6 locators are applied to an OSPFv3 process.

Views

OSPFv3 process view

Predefined user roles

network-admin

Parameters

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

auto-sid-disable: Disables automatic SRv6 SID allocation. If you do not specify this keyword, the device allows dynamically allocated SRv6 SIDs. If static SRv6 SIDs are configured when automatic SRv6 SID allocation is enabled, the static SRv6 SIDs take precedence. If no static SRv6 SIDs are configured when automatic SRv6 SID allocation is enabled, the system dynamically allocates SRv6 SIDs.

Usage guidelines

Use this command to enable OSPFv3 to advertise SRv6 SIDs.

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

Examples

# Apply locator abc to an OSPFv3 process.

<Sysname> system-view

[Sysname] ospfv3 1

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

Related commands

display segment-routing ipv6 locator

locator

segment-routing microloop-avoidance enable

Use segment-routing microloop-avoidance enable to enable SR microloop avoidance.

Use undo segment-routing microloop-avoidance enable to disable SR microloop avoidance.

Syntax

In IS-IS IPv6 unicast address family view:

segment-routing microloop-avoidance enable [ level-1 | level-2 ]

undo segment-routing microloop-avoidance enable [ level-1 | level-2 ]

In OSPFv3 process view:

segment-routing microloop-avoidance enable

undo segment-routing microloop-avoidance enable

Default

SR microloop avoidance is disabled.

Views

IS-IS IPv6 unicast address family view

OSPFv3 process view

Predefined user roles

network-admin

Parameters

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

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

Usage guidelines

After a network failure occurs or recovers, route convergence occurs on relevant network devices. Because of nonsimultaneous convergence on network devices, microloops might be formed. After you configure SR microloop avoidance, the devices will forward traffic along the specified path before route convergence is finished on all the relevant network devices. Because the forwarding path is independent of route convergence, microloops are avoided.

If you do not specify the level-1 or level-2 keyword, this command applies to both IS-IS levels.

Examples

# Enable SR microloop avoidance for IPv6 IS-IS process 1.

<Sysname> system-view

[Sysname] isis 1

[Sysname-isis-1] address-family ipv6

[Sysname-isis-1-ipv6] segment-routing microloop-avoidance enable

# Enable SR microloop avoidance for OSPFv3 process 1.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-isis-1] address-family ipv6

[Sysname-ospfv3-1] segment-routing microloop-avoidance enable

Related commands

segment-routing microloop-avoidance rib-update-delay

segment-routing microloop-avoidance rib-update-delay

Use segment-routing microloop-avoidance rib-update-delay to set the SR microloop avoidance RIB-update-delay time.

Use undo segment-routing microloop-avoidance rib-update-delay to restore the default.

Syntax

In IS-IS IPv6 unicast address family view:

segment-routing microloop-avoidance rib-update-delay delay-time [ level-1 | level-2 ]

undo segment-routing microloop-avoidance rib-update-delay [ level-1 | level-2 ]

In OSPFv3 process view:

segment-routing microloop-avoidance rib-update-delay delay-time

undo segment-routing microloop-avoidance rib-update-delay

Default

The SR microloop avoidance RIB-update-delay time is 5000 milliseconds.

Views

IS-IS IPv6 unicast address family view

OSPFv3 process view

Predefined user roles

network-admin

Parameters

delay-time: Sets the delay time in milliseconds, in the range of 1 to 60000.

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

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

Usage guidelines

To ensure sufficient time for IGP to complete route convergence, set the SR microloop avoidance RIB-update-delay time. Before the timer expires, faulty relevant devices will forward traffic along the specified path. Upon expiration of the timer and completion of IGP route convergence, traffic will traverse along the IGP-calculated path.

If you do not specify the level-1 or level-2 keyword, this command applies to both IS-IS levels.

Examples

# Set the SR microloop avoidance RIB-update-delay time to 6000 milliseconds for IPv6 IS-IS process 1.

<Sysname> system-view

[Sysname] isis 1

[Sysname-isis-1] address-family ipv6

[Sysname-isis-1-ipv6] segment-routing microloop-avoidance rib-update-delay 6000

# Set the SR microloop avoidance RIB-update-delay time to 6000 milliseconds for OSPFv3 process 1.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-isis-1] address-family ipv6

[Sysname-ospfv3-1] segment-routing microloop-avoidance rib-update-delay 6000

Related commands

segment-routing microloop-avoidance enable

service-class

Use service-class to specify a service class value for an SRv6 tunnel interface.

Use undo service-class to restore the default.

Syntax

service-class class-value

undo service-class

Default

No service class value is specified for an SRv6 tunnel interface.

Views

SRv6 tunnel interface view

Predefined user roles

network-admin

Parameters

class-value: Specifies a service class value. The lower the service class value, the lower the forwarding priority of a tunnel. If no service class value is specified for a tunnel, the tunnel has the lowest forwarding priority. The value range for this argument is 0 to7.

Usage guidelines

Class Based Tunnel Selection (CBTS) compares the service class value of the traffic with the service class values of SRv6 tunnels. CBTS uses the following rules to select a tunnel to forward the traffic:

·     If the traffic matches an SRv6 tunnel, CBTS uses this tunnel.

·     If the traffic matches multiple SRv6 tunnels, CBTS selects a tunnel based on the flow forwarding mode set on the tunnel interface:

¡     If flow-based forwarding is set, CBTS randomly selects a matching tunnel for packets of the same flow.

¡     If packet-based forwarding is set, CBTS uses all matching tunnels to load share the packets.

·     If the traffic does not match any SRv6 tunnels, CBTS selects an SRv6 tunnel from all tunnels with a service class value smaller than the traffic. Among these tunnels, the one with the largest service class value is used. If all SRv6 tunnels have a service class value greater than the traffic, CBTS uses the tunnel with the smallest service class value.

Examples

# Set the service class value to 5 for SRv6 tunnel interface Tunnel 1.

<Sysname> system-view

[Sysname] interface tunnel 1 mode sr ipv6

[Sysname-Tunnel1] service-class 5

sid

Use sid to configure a node in an SID list.

Use undo sid to remove a node from an SID list.

Syntax

sid [ index index-number ] ipv6-address

undo sid index index-number

Default

No nodes exist in an SID list.

Views

SID list view

Predefined user roles

network-admin

Parameters

index index-number: Specifies an index for the node, in the range of 1 to 65535. If you do not specify an index for the node, the system automatically assigns the node the largest index that has been assigned plus an increment.

ipv6-address: Specifies the IPv6 address of the node.

Usage guidelines

Make sure the node nearest to the source node is assigned the smallest index. The nearer a node is to the source node, the smaller the index value of the node must be.

Examples

# Configure a node in SID list aa. The index is 2 and the IPv6 address is 1::1.

<Sysname> system-view

[Sysname] ipv6 segment-routing sid-list aa

[Sysname-srv6-sid-list-aa] sid index 2 1::1

Related commands

ipv6 segment-routing sid-list

srv6 igp metric

Use srv6 igp metric to assign a metric to an SRv6 tunnel.

Use undo srv6 igp metric to restore the default.

Syntax

srv6 igp metric { absolute value | relative value }

undo srv6 igp metric

Default

The metric of an SRv6 tunnel equals its IGP metric.

Views

SRv6 tunnel interface view

Predefined user roles

network-admin

Parameters

absolute value: Specifies an absolute metric, an integer in the range of 1 to 65535.

relative value: Specifies a relative metric, an integer in the range of –10 to +10. A relative metric is the assigned metric value plus the IGP metric.

Usage guidelines

When IGP shortcut is enabled for an SRv6 tunnel, the tunnel participates in the IGP route calculation as a link. You can use this command to configure the metric of this link used for IGP route calculation.

Examples

# Assign SRv6 tunnel interface Tunnel 0 a relative metric of –1 for route calculation in IGP shortcut mechanism.

<Sysname> system-view

[Sysname] interface tunnel 0 mode sr ipv6

[Sysname-Tunnel0] srv6 igp metric relative -1

Related commands

srv6 igp shortcut

srv6 igp shortcut

Use srv6 igp shortcut to enable IGP shortcut for an SRv6 tunnel. The tunnel ingress node includes the tunnel in the IGP route calculation as a link.

Use undo srv6 igp shortcut to disable IGP shortcut.

Syntax

srv6 igp shortcut [ isis | ospf ]

undo srv6 igp shortcut

Default

IGP shortcut is disabled for an SRv6 tunnel. The ingress node does not include the tunnel in the IGP route calculation as a link.

Views

SRv6 tunnel interface view

Predefined user roles

network-admin

Parameters

isis: Specifies IS-IS as the IGP.

ospf: Specifies OSPF as the IGP.

Usage guidelines

If you do not specify an IGP in this command, both OSPF and IS-IS will include the SRv6 tunnel in route calculation.

Examples

# Enable IGP shortcut for SRv6 tunnel interface Tunnel 0, so the tunnel ingress node considers the tunnel as a link in OSPF and IS-IS route calculation.

<Sysname> system-view

[Sysname] interface tunnel 0 mode sr ipv6

[Sysname-Tunnel0] srv6 igp shortcut

Related commands

srv6 igp metric

tunnel bfd enable echo

Use tunnel bfd enable echo to enable BFD echo-mode detection on an SRv6 tunnel interface.

Use undo tunnel bfd enable echo to disable BFD echo-mode detection on an SRv6 tunnel interface.

Syntax

tunnel bfd enable echo

undo tunnel bfd enable echo

Default

BFD echo-mode detection is disabled on an SRv6 tunnel interface.

Views

SRv6 tunnel interface view

Predefined user roles

network-admin

Usage guidelines

Execute this command on an SRv6 tunnel interface to use BFD sessions for quick link connectivity detection of the SRv6 tunnel. If a link failure is detected along the path, the device can quickly handle the issue, for example, it can direct the traffic to the backup path to ensure traffic forwarding continuity.

If the BFD session of a path is down, the path is unavailable. If the BFD session of a path is up, the path is available.

Examples

# Enable BFD echo-mode detection on SRv6 tunnel interface Tunnel 1.

<Sysname> system-view

[Sysname] interface tunnel 1 mode sr ipv6

[Sysname-Tunnel1] tunnel bfd enable echo

Related commands

bfd echo-source-ipv6 (High Availability Command Reference)

tunnel route-static

Use tunnel route-static to configure automatic static route advertisement.

Use undo tunnel route-static to restore the default.

Syntax

tunnel route-static [ preference preference-value ]

undo tunnel route-static

Default

Automatic static route advertisement is not configured.

Views

SRv6 tunnel interface view

Predefined user roles

network-admin

Parameters

preference preference-value: Specifies a preference value for the static route to be advertised, in the range of 1 to 255. The default value is 60.

Usage guidelines

This command creates a static route whose destination address and output interface are the tunnel destination address and the tunnel interface, respectively.

Examples

# Configure automatic static route advertisement on SRv6 tunnel interface Tunnel 1 and set the preference to 3.

<Sysname> system-view

[Sysname] interface tunnel 1 mode sr ipv6

[Sysname-Tunnel1] tunnel route-static preference 3

tunnel sid-list

Use tunnel sid-list to specify an SID list on an SRv6 tunnel interface.

Use undo tunnel sid-list to remove an SID list from an SRv6 tunnel interface.

Syntax

tunnel sid-list list-name [ backup ]

undo tunnel sid-list list-name

Default

No SID lists are specified for an SRv6 tunnel interface.

Views

SRv6 tunnel interface view

Predefined user roles

network-admin

Parameters

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

backup: Specifies the SID list as the backup path of the SRv6 tunnel. If you do not specify this keyword, the specified SID list is used as the primary path of the SRv6 tunnel.

Examples

# Specify SID list aa on SRv6 tunnel interface Tunnel 1.

<Sysname> system-view

[Sysname] interface tunnel 1 mode sr ipv6

[Sysname-Tunnel1] tunnel sid-list aa

Related commands

interface tunnel (Layer 3—IP Services Command Reference)

ipv6 segment-routing sid-list

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