09-Segment Routing Command Reference

HomeSupportSwitchesS7500X-G SeriesReference GuidesCommand ReferencesH3C S7500X-G Switch Series Command References-R7761Pxx-6W10009-Segment Routing Command Reference
01-SRv6 commands
Title Size Download
01-SRv6 commands 232.41 KB

SRv6 commands

advertise srv6 locator

Use advertise srv6 locator to enable the device to generate routes for a locator in the BGP IPv6 unicast routing table and advertise the routes to BGP peers.

Use undo advertise srv6 locator to delete routes for a locator from the BGP IPv6 unicast routing table.

Syntax

advertise srv6 locator locator-name [ route-policy route-policy-name ]

undo advertise srv6 locator locator-name

Default

The device does not generate routes for a locator in the BGP IPv6 unicast routing table.

Views

BGP IPv6 unicast address family view

Predefined user roles

network-admin

mdc-admin

Parameters

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

route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. Only routes that match the routing policy can be generated in the BGP IPv6 unicast routing table for the locator. All routes for the locator can be generated in the BGP IPv6 unicast routing table in the following situations:

·     You do not specify a routing policy when using this command.

·     The specified routing policy does not exist.

·     The specified routing policy does not contain if-match clauses.

Usage guidelines

Use this command in an inter-AS BGP network. This command enables the device to use BGP to advertise routes for a locator.

Repeat this command to enable the device to use BGP to advertise routes for multiple locators.

Examples

# Enable the device to generate routes for locator abc in the BGP IPv6 unicast routing table and advertise the routes to BGP peers.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] address-family ipv6

[Sysname-bgp-default-ipv6] advertise srv6 locator abc

Related commands

display segment-routing ipv6 locator

locator

anycast enable

Use anycast enable to enable anycast for an SRv6 locator.

Use undo anycast enable to disable anycast for an SRv6 locator.

Syntax

anycast enable

undo anycast enable

Default

Anycast is disabled for an SRv6 locator.

Views

SRv6 locator view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

After you apply a locator to a routing protocol, the routing protocol will advertise the SRv6 SIDs in the locator. By default, the N-bit is set in the Flags field of the Locator TLV in routing protocol packets. The locator belongs to one SRv6 node. If you enable anycast for a locator, the A-bit is set in the Flags field of the Locator TLV in routing protocol packets. The locator is shared by a group of SRv6 nodes.

Examples

# Enable anycast for locator test1.

<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] anycast enable

Related commands

locator

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

mdc-admin

mdc-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 information.

Syntax

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

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-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.

flex-algo flex-algo-id: Specifies a Flex-Algo by its ID, in the range of 128 to 255. If you do not specify a Flex-Algo, this command displays locator route information calculated by all Flex-Algos.

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: XGE3/0/2

 

 Destination : 202::                                   PrefixLen: 64

 Flags       : R/-/-                                   Cost     : 1

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

 

      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 process.

Flex Algo Route Information for IS-IS(1)

Locator route information for the specified Flex-Algo.

Level-1 Locator Route Table

IS-IS Level-1 locator route information.

Level-2 Locator Route Table

IS-IS Level-2 locator route information.

Level-1 Flex Algo(xxx) Locator Route Table

IS-IS Level-1 locator route information calculated by the Flex-Algo. The value xxx represents the Flex-Algo ID.

Level-2 Flex Algo(xxx) Locator Route Table

IS-IS Level-2 locator route information calculated by the Flex-Algo. The value xxx represents the Flex-Algo ID.

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.

·     U—Route 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 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

mdc-admin

mdc-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 4 Command output

Field

Description

Router ID

Device router ID.

SRv6 capability

Whether SRv6 is enabled. The value can only be Enabled.

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

mdc-admin

mdc-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  : XGE3/0/1                  BkInterface: N/A

  Nexthop    : ::

  BkNexthop  : N/A

  Status     : Direct

Table 5 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 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

mdc-admin

mdc-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 locator test1.

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

 

                    Available static SRv6 SID table

 

 200:1::1

 200:1::2

 200:1::3

 200:1::4

 200:1::5

 200:1::6

 200:1::7

 200:1::8

 200:1::9

 200:1::A

 

Table 6 Command output

Field

Description

Available static SRv6 SID table

Available static non-compressible SRv6 SIDs.

Available static SRv6 CSID table

This field is not supported in the current software version. 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

mdc-admin

mdc-operator

Examples

# Display brief SRv6 information.

<Sysname> display segment-routing ipv6 brief

Current SRv6 info:

  Flavor mode: PSP

SRv6 info at next reboot:

  Flavor mode: 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

End.X update-delay time: 100 ms

SRv6 locator SBFD: Enabled

SRv6 locator SBFD Template: LocatorBFD

SRv6 locator SBFD prefix-list: prefixlist

Table 7 Command output

Field

Description

Current SRv6 info

Current active SRv6 information.

SRv6 info at the next reboot

SRv6 information that takes effect at the next startup.

Flavor mode

This field is not supported in the current software version.

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

This field is not supported in the current software version.

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

This field is not supported in the current software version.

Path MTU value for SRv6.

Path MTU reserved

This field is not supported in the current software version.

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

This field is not supported in the current software version.

SRv6 DiffServ mode.

Ingress mode

This field is not supported in the current software version.

SRv6 DiffServ mode in the inbound direction:

·     pipe—Pipe mode.

·     uniform—Uniform mode.

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

Engress mode

This field is not supported in the current software version.

SRv6 DiffServ mode in the outbound direction:

·     uniform—Uniform mode.

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

Service class

This field is not supported in the current software version.

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

End.X update-delay time

This field is not supported in the current software version.

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

SRv6 locator SBFD

This field is not supported in the current software version. SBFD status for SRv6 locators:

·     Disabled.

·     Enabled.

SRv6 locator SBFD Template

This field is not supported in the current software version. 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

This field is not supported in the current software version. IPv6 prefix list referenced by SBFD for SRv6 locators. This field is not displayed if no such IPv6 prefix list is configured.

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-dt4 | end-dt46 | end-dt6 | end-dx4 | end-dx6 ] [ [ owner owner ] sid | vpn-instance vpn-instance-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-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-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.

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.

owner owner: Specifies a protocol. The value for the owner argument is case insensitive. The supported values . 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

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.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     : Vlan10                          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     : Vlan10                          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 8 Command output

Field

Description

SID

SRv6 SID.

Function type

SRv6 SID type:

·     End (COCNONE).

·     End.DT4.

·     End.DT46.

·     End.DT6.

·     End.R

·     End.X (COCNONE).

·     End.DX4.

·     End.DX6.

·     End.T.

Flavor

This field is not supported in the current software version.

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.

Prefix SID1

This field is not supported in the current software version. SRv6 SID that is associated with End.R SIDs and carried in the BGP route. After you configure the srv6-inter-as enable command, the device will request a new End.R SID for the BGP route based on this SRv6 SID.

NexthopID1

This field is not supported in the current software version. Next hop ID of the SRv6 SID that is associated with End.R SIDs and carried in the BGP route.

Prefix SID2

This field is not supported in the current software version. SRv6 SID that is associated with End.R SIDs and carried in the BGP route. After you configure the srv6-inter-as enable command, the device might request the same End.R SID for BGP routes that carry different SRv6 SIDs for load sharing. This field is not displayed if the srv6-inter-as enable command is not configured.

NexthopID2

This field is not supported in the current software version. Next hop ID of the SRv6 SID that is associated with End.R SIDs and carried in the BGP route. This field is not displayed if the srv6-inter-as enable command is not configured.

Interface

Output interface.

Interface index

Output interface index.

VPN instance

VPN instance name.

For the public network, this field displays Public instance.

Allocation type

This field is not supported in the current software version.

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.

·     EVPN L3VPN—The SRv6 SID is applied to an EVPN L3VPN network.

·     MPLS L3VPN, EVPN L3VPN—The SRv6 SID is applied to MPLS L3VPN and EVPN L3VPN networks.

Owner

Protocol that applies for the SID:

State

SID state:

·     Active.

·     Inactive.

Create Time

SID creation time.

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

mdc-admin

mdc-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  IS-IS   OSPFv3  BGP     L2VPN   VSRP    NAT     Total

End             0       3       0       0       0       0       0       3

End.X           0       0       0       0       0       0       0       0

End.COC32       0       0       0       0       0       0       0       0

End.XCOC32      0       0       0       0       0       0       0       0

End.COCNONE     0       0       0       0       0       0       0       0

End.XCOCNONE    0       0       0       0       0       0       0       0

End.DT4         0       0       0       0       0       0       0       0

End.DT46        0       0       0       0       0       0       0       0

End.DT6         0       0       0       0       0       0       0       0

End.DX4         0       0       0       0       0       0       0       0

End.DX6         0       0       0       0       0       0       0       0

End.DX2         0       0       0       0       0       0       0       0

End.DX2L        0       0       0       0       0       0       0       0

End.DT2M        0       0       0       0       0       0       0       0

End.DT2U        0       0       0       0       0       0       0       0

End.DT2UL       0       0       0       0       0       0       0       0

End.M           0       0       0       0       0       0       0       0

End.OP          0       0       0       0       0       0       0       0

End.T           0       0       0       0       0       0       0       0

End.AS          0       0       0       0       0       0       0       0

End.R           0       0       0       0       0       0       0       0

Funtion         SRP     BIER    MVPN    Total

End.B6Encaps    0       0       0       0

End.B6EncapsRed 0       0       0       0

End.B6Insert    0       0       0       0

End.B6InsertRed 0       0       0       0

End.BIER        0       0       0       0

Src.DT4         0       0       0       0

Src.DT6         0       0       0       0

End.RGB         0       0       0       0

End.XSID        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: 0

Funtion         SIDMGR  IS-IS   OSPFv3  BGP     L2VPN   VSRP    NAT     Total

End             0       3       0       0       0       0       0       3

End.X           0       0       0       0       0       0       0       0

End.COC32       0       0       0       0       0       0       0       0

End.XCOC32      0       0       0       0       0       0       0       0

End.COCNONE     0       0       0       0       0       0       0       0

End.XCOCNONE    0       0       0       0       0       0       0       0

End.DT4         0       0       0       0       0       0       0       0

End.DT46        0       0       0       0       0       0       0       0

End.DT6         0       0       0       0       0       0       0       0

End.DX4         0       0       0       0       0       0       0       0

End.DX6         0       0       0       0       0       0       0       0

End.DX2         0       0       0       0       0       0       0       0

End.DX2L        0       0       0       0       0       0       0       0

End.DT2M        0       0       0       0       0       0       0       0

End.DT2U        0       0       0       0       0       0       0       0

End.DT2UL       0       0       0       0       0       0       0       0

End.M           0       0       0       0       0       0       0       0

End.OP          0       0       0       0       0       0       0       0

End.T           0       0       0       0       0       0       0       0

End.AS          0       0       0       0       0       0       0       0

End.R           0       0       0       0       0       0       0       0

Funtion         SRP     BIER    MVPN    Total

End.B6Encaps    0       0       0       0

End.B6EncapsRed 0       0       0       0

End.B6Insert    0       0       0       0

End.B6InsertRed 0       0       0       0

End.BIER        0       0       0       0

Src.DT4         0       0       0       0

Src.DT6         0       0       0       0

End.RGB         0       0       0       0

End.XSID        0       0       0       0

Table 9 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. This value is not supported in the current software version.

·     End.X. This value is not supported in the current software version.

·     End.COC32. This value is not supported in the current software version.

·     End.XCOC32. This value is not supported in the current software version.

·     End.COCNONE. This value is not supported in the current software version.

·     End.XCOCNONE. This value is not supported in the current software version.

·     End.DT4.

·     End.DT46.

·     End.DT6.

·     End.DX4.

·     End.DX6.

·     End.DX2. This value is not supported in the current software version.

·     End.DX2L. This value is not supported in the current software version.

·     End.DT2M. This value is not supported in the current software version.

·     End.DT2U. This value is not supported in the current software version.

·     End.DT2UL. This value is not supported in the current software version.

·     End.M. This value is not supported in the current software version.

·     End.OP. This value is not supported in the current software version.

·     End.R. This value is not supported in the current software version.

·     End.T. This value is not supported in the current software version.

·     End.AS. This value is not supported in the current software version.

·     End.B6Encaps. This value is not supported in the current software version.

·     End.B6EncapsRed. This value is not supported in the current software version.

·     End.B6Insert. This value is not supported in the current software version.

·     End.B6InsertRed. This value is not supported in the current software version.

·     End.BIER. This value is not supported in the current software version.

·     Src.DT4. This value is not supported in the current software version.

·     Src.DT6. This value is not supported in the current software version.

·     End.XSID. This value is not supported in the current software version.

SIDMGR

Static SIDs.

IS-IS

SRv6 SIDs allocated for IS-IS.

OSPFv3

SRv6 SIDs allocated for OSPFv3.

BGP

SRv6 SIDs allocated for BGP.

L2VPN

This field is not supported in the current software version.

SRv6 SIDs allocated for L2VPN.

VSRP

SRv6 SIDs allocated for VSRP.

NAT

SRv6 SIDs allocated for NAT.

SRP

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

BIER

This field is not supported in the current software version. SRv6 SIDs allocated for BIER.

MVPN

This field is not supported in the current software version.

SRv6 SIDs allocated for MVPN.

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

mdc-admin

mdc-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        : test1                                 Flag(A)       : 0

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

Static length       : 8                                     Args length   : 16

Common prefix length: 0

Algorithm           : 0

Auto SID start      : 100:200:DB8:ABCD::100:0

Auto SID end        : 100:200:DB8:ABCD:FFFF:FFFF:FFFF:0

Static SID start    : 100:200:DB8:ABCD::1:0

Static SID end      : 100:200:DB8:ABCD::FF:0

Compressed Auto SID count      : 0

Compressed Static SID count    : 0

Non-compressed Auto SID count  : 0

Non-compressed Static SID count: 0

Table 10 Command output

Field

Description

Algorithm

Algorithm ID:

·     0—SPF algorithm.

·     128 to 255—Flex-Algo algorithm.

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.

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

This field is not supported in the current software version. Start value for compressible dynamic SRv6 SIDs.

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

Compressed auto SID end

This field is not supported in the current software version. End value for compressible dynamic SRv6 SIDs.

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

Compressed static SID start

This field is not supported in the current software version. Start value for compressible static SRv6 SIDs.

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

Compressed static SID end

This field is not supported in the current software version. End value for compressible static SRv6 SIDs.

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

Compressed Auto SID count

This field is not supported in the current software version. Number of dynamic compressible SRv6 SIDs.

Compressed Static SID count

This field is not supported in the current software version. 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

mdc-admin

mdc-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 11 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

This value is not supported in the current software version. Number of dynamic compressible SRv6 SIDs, This value is not supported in the current software version. 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.

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 ] * ]

Default

No SRv6 locators exist.

Views

SRv6 view

Predefined user roles

network-admin

mdc-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, which represent the value and length for the locator in SRv6 SIDs, respectively. 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

The locator command is used not only for configuring the value and length for the locator in SRv6 SIDs but also for planning the length of the Function, Arguments, and MBZ fields. All SRv6 SIDs are allocated by the locator command. According to whether compression is supported, configure the parameters differently for SRv6 SIDs. For more information, see SRv6 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 | hex hex-opcode } end-dt4 [ vpn-instance vpn-instance-name [ evpn | l3vpn-evpn ] ]

opcode { opcode | hex hex-opcode } end-dt46 [ vpn-instance vpn-instance-name [ evpn | l3vpn-evpn ] ]

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

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

opcode { opcode | hex hex-opcode } end-dx6 interface interface-type interface-number nexthop np-ipv6-address [ vpn-instance vpn-instance-name [ evpn ] ]

undo opcode { opcode | hex hex-opcode }

Default

No opcode exists.

Views

SRv6 locator view

Predefined user roles

network-admin

mdc-admin

Parameters

opcode: Specifies an opcode. The value range varies by the settings of the locator command.

hex hex-opcode: Specifies an SRv6 SID in hexadecimal notation. The hex-opcode argument represents the SRv6 SID in hexadecimal notation.

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.

no-psp: Disables the penultimate SRv6 node from removing the SRH. If you do not specify this keyword, the penultimate SRv6 node will remove the SRH.

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 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.

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.

If you specify the hex keyword in this command, and the length of the static portion in the locator to which the SID belongs is 32, you can use the IPv4 address format to specify the value of the SID, for example, opcode hex ::1.2.3.4 end no-flavor. The configured opcode value is displayed in hexadecimal format.

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 1.2.3.4.

<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 hex ::1.2.3.4 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

mdc-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 admin-tag

Use  segment-routing ipv6 admin-tag to configure the administrative tag value for SRv6 locators.

Use undo segment-routing ipv6 admin-tag to restore the default.

Syntax

segment-routing ipv6 admin-tag tag-value

undo segment-routing ipv6 admin-tag

Default

SRv6 locators do not carry an administrative tag value when they are advertised by IS-IS.

Views

IS-IS IPv6 address family view

Predefined user roles

network-admin

mdc-admin

Parameters

tag-value: Specifies an administrative tag value, in the range of 1 to 4294967295.

Usage guidelines

Application scenarios

To import only specific SRv6 locators when the device imports IS-IS routes from different levels and areas or learns IS-IS routes from IS-IS neighbors, use this command to configure the administrative tag value for SRv6 locators. Then use the if-match tag command to filter SRv6 locators with different administrative tags.

Operating mechanism

With this feature configured, IS-IS will carry a 32-bit administrative tag sub-TLV with type 1 and value tag-value in the SRv6 locator TLV with type 27 when it advertises an SRv6 locator. This SRv6 locator is then marked through the administrative tag Sub-TLV.

Restrictions and guidelines

You can use this command to configure the same administrative tag value for all SRv6 locators advertised by IS-IS. Alternatively, you can use the segment-routing ipv6 locator command with the tag keyword specified in IS-IS IPv6 address family view to configure different administrative tag values for different SR6 locators.

For the same SRv6 locator, the administrative tag value specified using the segment-routing ipv6 locator command in IS-IS IPv6 address family view takes precedence. If no administrative tag value is specified using this command, the administrative tag value specified using the segment-routing ipv6 admin-tag command is applied.

This command is available only if the link cost style is wide, wide-compatible, or compatible.

Examples

# Configure administrative tag value 100 for SRv6 locators on IS-IS process 1.

<Sysname> system-view

[Sysname] isis 1

[Sysname-isis-1] address-family ipv6

[Sysname-isis-1-ipv4] segment-routing ipv6 admin-tag 100

Related commands

·     if-match tag (Layer 3—IP Routing Command Reference)

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

segment-routing ipv6 compatible locator-fixed-length

Use segment-routing ipv6 compatible locator-fixed-length to enable compatibility of the Locator field in SRv6 Locator TLVs with earlier drafts.

Use undo segment-routing ipv6 compatible locator-fixed-length to restore the default.

Syntax

segment-routing ipv6 compatible locator-fixed-length

undo segment-routing ipv6 compatible locator-fixed-length

Default

The Locator field in SRv6 locator LSAs is of variable length, with a maximum of 128 bytes.

Views

OSPFv3 view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

Application scenarios

To avoid interoperability issues caused by differences in the Locator field length in the SRv6 Locator TLV when a third-party device or an H3C device with an older software version interoperates with an H3C device with a newer software version, you can this command to have the new devices compatible with older draft standards.

Operating mechanism

In the OSPFv3 protocol, the SRv6 Locator TLV is carried in the SRv6 Locator LSA, used to announce the network segment and mask of the locator to which the SRv6 SID belongs, as well as the End SID related to that locator.

The length of the Locator field in SRv6 Locator TLVs is defined as variable in draft-ietf-lsr-ospfv3-srv6-extensions-12 and later drafts and can be up to 128 bits. The length of the Locator field can vary based on the configured locator segment length. However, the length is fixed at 128 bits in draft-ietf-lsr-ospfv3-srv6-extensions-11 and earlier drafts. For example, if you specify the prefix-length argument as 96 in the locator command, the default Locator field length is 96 bits and the remaining 32 bits are not required in the TLV when you apply the locator to OSPFv3 and advertise it. After this command is configured, the Locator field must be 128-bit long and the remaining 32 bits are all set to zero.

Restrictions and guidelines

For compatibility with draft-ietf-lsr-ospfv3-srv6-extensions-08 and earlier drafts, you must both this command and the segment-routing ipv6 private-srv6-extensions compatible command.

Examples

# Enable compatibility of the Locator field in SRv6 Locator TLVs with earlier drafts.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] segment-routing ipv6 compatible locator-fixed-length

Related commands

segment-routing ipv6 private-srv6-extensions compatible

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 ] [ cost cost-value ] [ tag tag-value ]

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

mdc-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.

cost cost-value: Specifies a cost value for locators, in the range of 1 to 16777215.

tag tag-value: Specifies an administrative tag value, in the range of 1 to 4294967295.

Usage guidelines

Application scenarios

For IS-IS neighbors in an IS-IS network to access each other through SRv6 SIDs, configure this feature.

Operating mechanism

With this command configured, IS-IS can advertise the specified locator and the SRv6 SIDs in the locator. After learning the locator and the SRv6 SIDs in the locator, the IS-IS neighbors generate route entries.

When multiple nodes use IS-IS to reference and advertise the same SRv6 locator, you can specify different cost values for the same SRv6 locator on different nodes for optimal route selection.

To import only specific SRv6 locators when the device imports IS-IS routes from different levels and areas or learns IS-IS routes from IS-IS neighbors, use this command to configure the administrative tag value for SRv6 locators. Then use the if-match tag command to filter SRv6 locators with different administrative tags.

Restrictions and guidelines

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.

You can use this command with the tag keyword specified to configure different administrative tag values for different SR6 locators. Alternatively, you can use the segment-routing ipv6 admin-tag command to configure the same administrative tag value for all SRv6 locators advertised by IS-IS.

For the same SRv6 locator, the administrative tag value specified using the segment-routing ipv6 locator command in IS-IS IPv6 address family view takes precedence. If no administrative tag value is specified using this command, the administrative tag value specified using the segment-routing ipv6 admin-tag command is applied.

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

mdc-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

snmp-agent trap enable srv6

Use snmp-agent trap enable srv6 to enable SNMP notifications for SRv6.

Use undo snmp-agent trap enable srv6 to disable SNMP notifications for SRv6.

Syntax

snmp-agent trap enable srv6

undo snmp-agent trap enable srv6

Default

SNMP notifications are disabled for SRv6.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

To report critical SRv6 events to an NMS, enable SNMP notifications for SRv6. For SRv6 event notifications to be sent correctly, you must also configure SNMP on the device. For more information about SNMP configuration, see Network Management and Monitoring Configuration Guide.

Examples

# Enable SNMP notifications for SRv6.

<Sysname> system-view

[Sysname] snmp-agent trap enable srv6

  • 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
新华三官网