- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
02-SRv6 commands | 230.15 KB |
display isis segment-routing ipv6 capability
display isis segment-routing ipv6 locator
display ospfv3 segment-routing ipv6 capability
display ospfv3 segment-routing ipv6 locator
display segment-routing ipv6 brief
display segment-routing ipv6 forwarding
display segment-routing ipv6 local-sid
display segment-routing ipv6 locator
fast-reroute microloop-avoidance enable
fast-reroute microloop-avoidance rib-update-delay
isis ipv6 fast-reroute ti-lfa disable
ospfv3 fast-reroute ti-lfa disable
segment-routing ipv6 (system view)
segment-routing ipv6 end-x delete-delay
segment-routing ipv6 locator (IS-IS IPv6 address family view)
segment-routing ipv6 locator (OSPFv3 process view)
segment-routing microloop-avoidance enable
segment-routing microloop-avoidance rib-update-delay
segment-routing microloop-avoidance strict-sid-only
SRv6 commands
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
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:: 98 static 30
[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
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 ] [ [ 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: XGE2/0/0
Destination : 202:: PrefixLen: 64
Flags : R/-/- Cost : 1
Next hop : FE80::38A5:3DFF:FEE9:218 Interface: XGE2/0/2
Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set
Table 2 Command output
Field |
Description |
Destination |
Destination IPv6 prefix. |
PrefixLen |
Prefix length. |
Flag/Flags |
Route flags: · D—The route is a direct route. · R—The route has been flushed to the RIB. · L—The route has been advertised in LSPs. · U—Penetration flag. Setting it to UP can prevent an LSP sent from L2 to L1 from being sent back to L2. |
Cost |
Route cost value. |
Next hop |
Route next hop. |
Interface |
Output interface. |
# Display detailed IS-IS SRv6 locator route information.
<Sysname> display isis segment-routing ipv6 locator verbose
Route information for IS-IS(1)
------------------------------
Level-1 Locator Route Table
---------------------------
IPv6 dest : 5000::/64
Flag : D/L/- Cost : 0
Admin tag : - Src count : 1
Algorithm : 0
Priority : Low
Nexthop : Direct
NxthopFlag : -
Interface : NULL0 Delay Flag : N/A
Nib ID : 0x0
Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set
Level-2 Locator Route Table
---------------------------
IPv6 dest : 5000::/64
Flag : D/L/- Cost : 0
Admin tag : - Src count : 4
Algorithm : 0
Priority : Low
Nexthop : Direct
NxthopFlag : -
Interface : NULL0 Delay Flag : N/A
Nib ID : 0x0
Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set
Table 3 Command output
Field |
Description |
Route information for IS-IS(1) |
Locator route information about the IS-IS proces. |
Level-1 Locator Route Table |
IS-IS Level-1 locator route information. |
Level-2 Locator Route Table |
IS-IS Level-2 locator route information. |
IPv6 dest |
Destination IPv6 prefix |
Flag |
Route state flag: · D—Direct route. · R—The route has been added into the routing table. · L—The route has been advertised in an LSP. · 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
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
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 : XGE2/0/0 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 brief
Use display segment-routing ipv6 brief to display brief SRv6 information.
Syntax
display segment-routing ipv6 brief
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display brief SRv6 information.
<Sysname> display segment-routing ipv6 brief
Current SRv6 info:
Flavor mode: NO-PSP
SRv6 info at next reboot:
Flavor mode: NO-PSP
SRv6 Locator SBFD: Enabled
SRv6 Locator SBFD Template: LocatorBFD
SRv6 Locator SBFD prefix-list: prefixlist
Table 6 Command output
Field |
Description |
Current SRv6 info |
Current effective SRv6 information. |
SRv6 info at the next reboot |
Effective SRv6 information at the next startup. |
Flavor mode |
SRv6 SID flavor: · PSP—The penultimate SRv6 node removes the SRH. · NO-PSP—The penultimate SRv6 node does not remove the SRH. |
SRv6 locator SBFD |
SBFD status for SRv6 locators: · Disabled. · Enabled. |
SRv6 locator SBFD Template |
Template used for detecting the SBFD session status for SRv6 locators. This field is not displayed if no such template is configured. |
SRv6 locator SBFD Prefix-list |
IPv6 prefix list referenced by SBFD for SRv6 locators. This field is not displayed if no such IPv6 prefix list is configured. |
display segment-routing ipv6 forwarding
Use display segment-routing ipv6 forwarding to display SRv6 forwarding entry information.
Syntax
display segment-routing ipv6 forwarding [ entry-id ] [ 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 a card by its slot number. If you do not specify a card, this command displays SRv6 forwarding entries on the active MPU.
Examples
# Display all SRv6 forwarding entries.
<Sysname> display segment-routing ipv6 forwarding
Total SRv6 forwarding entries: 4
Flags: N – Forwarded through the outgoing interface to the nexthop IP address
A - Active forwarding information
B – Backup forwarding information
ID FWD-Type Flags Forwarding info
Attri-Val Attri-Val
--------------------------------------------------------------------------------
2148532225 SRv6PSIDList NA XGE2/0/0
FE80::54CB:70FF:FE86:316
{6000::1, 7000::1, 8000::1}
2149580801 SRv6PCPath TA 2148532225
2150629377 SRv6Policy TA 2149580801
Policy10
Table 7 Command output
Field |
Description |
FWD-Type |
Tunnel forwarding type: · SRv6SIDs—Tunnel established based on SRv6 SIDs. · 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. · SRv6BE—Tunnel established on the path selected in the SRv6 BE mode. |
Flags |
Forwarding flags: · 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. |
Attri-Val |
Forwarding attribute. In the current software version, the value is an SRv6 TE policy name. This field is available only when the value for the FWD-Type field is SRv6Policy or SRv6PGroup. |
display segment-routing ipv6 local-sid
Use display segment-routing ipv6 local-sid to display information about the SRv6 local SID forwarding table.
Syntax
display segment-routing ipv6 local-sid { end | end-b6encaps | end-b6encapsred | end-b6insert | end-b6insertred | end-dx2 | end-dx2l | end-op } [ sid ]
display segment-routing ipv6 local-sid { end-dt4 | end-dt46 | end-dt6 } [ sid | vpn-instance vpn-instance-name ]
display segment-routing ipv6 local-sid end-x [ sid | interface interface-type interface-number [ nexthop nexthop-ipv6-address ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
end: Specifies End SIDs.
end-b6encaps: Specifies End.B6ENCAPS SIDs.
end-b6encapsred: Specifies End.B6ENCAPSRED SIDs.
end-b6insert: Specifies End.B6INSERT SIDs.
end-b6insertred: Specifies End.B6INSERTRED SIDs.
end-dt4: Specifies End.DT4 SIDs.
end-dt46: Specifies End.DT46 SIDs.
end-dt6: Specifies End.DT6 SIDs.
end-dx2: Specifies End.DX2 SIDs.
end-dx2l: Specifies End.DX2L 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.
vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance to which the SRv6 SIDs belong. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays SRv6 local SID forwarding table information in the public network.
interface interface-type interface-number: Specifies an output interface by its type and number. If you do not specify an output interface, the command displays SRv6 local SID forwarding table information for all End.X SIDs.
nexthop nexthop-ipv6-address: Specifies the IPv6 address of a next hop. If you do not specify a next hop, the command displays SRv6 local SID forwarding table information for all IPv6 next hops.
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 : XGE2/0/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.DX2 SIDs.
<Sysname> display segment-routing ipv6 local-sid end-dx2
Local SID forwarding table (End.DX2)
Total SIDs: 1
SID : 100:1:2:3::6400/96
Function type : End.DX2 Flavor : PSP
Xconnect-group: abc Connection : test
Locator name : abc Allocation type: Static
Owner : SIDMGR State : Active
Create Time : May 20 09:17:58.995 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/1 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. · End.B6.Encaps. · End.B6.Encaps.Red. · End.B6.Insert. · End.B6.Insert.Red. · End.DT4. · End.DT46. · End.DT6. · End.DX2. · End.DX2L. · 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. |
VPN instance |
VPN instance name. For the public network, this field displays Public instance. |
Xconnect group |
Cross-connect group name. |
Connection |
Cross-connect name. |
Allocation type |
SID allocation type: · Static—Manually configured. · Dynamic—Dynamically allocated. |
Network type |
Type of the network to which the SRv6 SID is applied: · MPLS L3VPN—The SRv6 SID is applied to an MPLS L3VPN network. · 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. |
Mirror locator number |
Number of protected locators. |
Mirror locator |
IPv6 address prefix and prefix length of each protected locator. |
Owner |
Protocol that applies for the SID: · SIDMGR. · BGP. · SRPolicy. · IS-IS. · OSPFv3. · L2VPN. · LSM. |
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 Flag(A) : 0
IPv6 prefix : 100:1:2:3:: Prefix length : 96
Static length : 24 Args length : 8
Common prefix length: 0
Algorithm : 0
Auto SID start : N/A
Auto SID end : N/A
Static SID start : 100:1:2:3::100
Static SID end : 100:1:2:3::FFFF:FF00
Table 9 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 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. |
fast-reroute microloop-avoidance enable
Use fast-reroute microloop-avoidance enable to enable FRR microloop avoidance.
Use undo fast-reroute microloop-avoidance enable to disable FRR microloop avoidance.
Syntax
fast-reroute microloop-avoidance enable [ level-1 | level-2 ]
undo fast-reroute microloop-avoidance enable [ level-1 | level-2 ]
Default
FRR microloop avoidance is disabled.
Views
IS-IS IPv6 unicast address family view
Predefined user roles
network-admin
Parameters
level-1: Specifies FRR microloop avoidance for IS-IS Level-1.
level-2: Specifies FRR microloop avoidance for IS-IS Level-2.
Usage guidelines
Use this command only on the source node.
On an network configured with TI-LFA FRR, if a node or link fails, traffic will be switched to the backup path calculated by TI-LFA. However, if a device along the backup path has not finished route convergence, traffic will be looped between the device and the source node (the node prior to the node or link that failed) until the device finishes route convergence.
To resolve this problem, configure microloop avoidance on the source node. Then, when a node or link fails, traffic will be switched to the backup path calculated by TI-LFA. The source node waits for a period of time for other devices to finish route convergence. After the delay time elapses, the source node starts route convergence.
If you do not specify the level-1 or level-2 keyword, the command enables or disables FRR microloop avoidance on all IS-IS levels.
Examples
# Enable FRR microloop avoidance for IS-IS process 1.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] address-family ipv6
[Sysname-isis-1-ipv6] fast-reroute microloop-avoidance enable
Related commands
fast-reroute microloop-avoidance rib-update-delay
fast-reroute microloop-avoidance rib-update-delay
Use fast-reroute microloop-avoidance rib-update-delay to set the FRR microloop avoidance RIB-update-delay time.
Use undo fast-reroute microloop-avoidance rib-update-delay to restore the default.
Syntax
fast-reroute microloop-avoidance rib-update-delay delay-time [ level-1 | level-2 ]
undo fast-reroute microloop-avoidance rib-update-delay [ level-1 | level-2 ]
Default
The FRR microloop avoidance RIB-update-delay time is 5000 ms.
Views
IS-IS IPv6 unicast address family view
Predefined user roles
network-admin
Parameters
delay-time: Specifies the FRR microloop avoidance RIB-update-delay time in milliseconds. The value range is 1 to 60000.
level-1: Specifies the FRR microloop avoidance RIB-update-delay time for IS-IS Level-1.
level-2: Specifies the FRR microloop avoidance RIB-update-delay time for IS-IS Level-2.
Usage guidelines
Use this command only on the source node.
If you do not specify the level-1 or level-2 keyword, the command sets the FRR microloop avoidance RIB-update-delay time for all IS-IS levels.
Examples
# Set the FRR microloop avoidance RIB-update-delay time to 6000 ms for Level-1 of IS-IS process 1.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] address-family ipv6
[Sysname-isis-1-ipv6] fast-reroute microloop-avoidance rib-update-delay 6000 level-1
Related commands
fast-reroute microloop-avoidance
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 ipv6
[Sysname-isis-1-ipv6] 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)
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 Ten-GigabitEthernet2/0/0 from participating in TI-LFA calculation.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 2/0/0
[Sysname-Ten-GigabitEthernet2/0/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
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.
When you configure an SRv6 SID, follow these restrictions and guidelines:
· The total length of the IPv6 address prefix and prefix length portion and the dynamic segment portion must be greater than 96. That is, the total length of the argument and static segment portions must be equal to or smaller than 31.
· The length of the argument portion must be equal to or smaller than 16.
Examples
# Configure locator test1, setting the IPv6 address prefix to 100::, prefix length to 98, and static length to 30, 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:: 98 static 30
[Sysname-segment-routing-ipv6-locator-test1]
Related commands
opcode
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 | hex hex-opcode } end
opcode { opcode | hex hex-opcode } end-x interface interface-type interface-number nexthop nexthop-ipv6-address
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-dx2 xconnect-group group-name connection connection-name
opcode { opcode | hex hex-opcode } end-dx2 vsi vsi-name interface interface-type interface-number
opcode { opcode | hex hex-opcode } end-dx2l xconnect-group group-name connection connection-name
opcode { opcode | hex hex-opcode } end-dx2l vsi vsi-name interface interface-type interface-number
opcode { opcode | hex hex-opcode } end-op
undo opcode { opcode | hex hex-opcode }
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.
hex hex-opcode: Specifies an SRv6 SID in hexadecimal notation. The hex-opcode argument represents the SRv6 SID in hexadecimal notation.
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-dx2: Specifies the End.DX2 type.
end-dx2l: Specifies the End.DX2L 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. 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.
l3vpn-evpn: Specifies EVPN routes, VPNv4 routes, and VPNv6 routes.
xconnect-group group-name: Specifies the cross-connect group to which the SRv6 SID belongs. The group-name argument represents the cross-connect group name, a case-sensitive string of 1 to 31 characters. The name cannot contain a hyphen (-). The specified cross-connect group must exist.
connection connection-name: Specifies the cross-connect to which the SRv6 SID belongs. The connection-name argument represents the cross-connect name, a case-sensitive string of 1 to 20 characters. The name cannot contain a hyphen (-). The specified cross-connect must exist.
Usage guidelines
An SRv6 locator and its opcode and argument generate unique SRv6 SIDs. SRv6 SIDs form local SID forwarding table entries.
Use this command to configure the opcode of static SRv6 SIDs on a locator. The number of static SRv6 SIDs is determined by the static static-length option in the locator command.
To modify the opcode of static SRv6 SIDs on a locator, you must first delete the original opcode by using the undo opcode command.
Examples
# Configure End SRv6 SIDs, and set the opcode to 64. Configure End.X SRv6 SIDs, set the opcode to 128, and configure Ten-GigabitEthernet 2/0/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:: 98 static 30
[Sysname-segment-routing-ipv6-locator-test] opcode 64 end
[Sysname-segment-routing-ipv6-locator-test] opcode 128 end-x interface ten-gigabitethernet 2/0/0 nexthop 2001::1
Related commands
locator
segment-routing ipv6
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 Ten-GigabitEthernet2/0/0 from participating in TI-LFA calculation.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 2/0/0
[Sysname-Ten-GigabitEthernet2/0/0] ospfv3 fast-reroute ti-lfa disable
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 end-x delete-delay
Use segment-routing ipv6 end-x delete-delay to enable dynamic End.X SID deletion delay and set the delay time.
Use undo segment-routing ipv6 end-x delete-delay to restore the default.
Syntax
segment-routing ipv6 end-x delete-delay [ time-value ]
undo segment-routing ipv6 end-x delete-delay
Default
Dynamic End.X SID deletion delay is enabled. The delay time is 1800 seconds.
Views
IS-IS IPv6 address family view
OSPFv3 process view
Predefined user roles
network-admin
Parameters
time-value: Sets the dynamic End.X SID deletion delay time in seconds, in the range of 0 to 3600. The default value is 1800. If the delay time is 0 seconds, dynamic End.X SID deletion delay is disabled.
Usage guidelines
Packet loss occurs between OSPFv3 or IS-IS neighbors if the neighbors frequently delete and request dynamically allocated End.X SIDs for the links between them because of neighbor flapping. To resolve this issue, set a delay timer for deleting dynamically allocated End.X SIDs when the neighbors are disconnected. If the neighbors are still disconnected when the delay timer expires, the device deletes the dynamically allocated End.X SIDs.
The device always immediately deletes automatically allocated End.X SIDs without any delay in the following situations:
· The reset ospfv3 process command is executed.
· The reset isis all command is executed.
· Interfaces are deleted or removed. For example, an interface module is removed or a subinterface is deleted.
Examples
# Enable dynamic End.X SID deletion delay for IPv6 IS-IS process 1.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] address-family ipv6
[Sysname-isis-1-ipv6] segment-routing ipv6 end-x delete-delay
# Enable dynamic End.X SID deletion delay for OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] segment-routing ipv6 end-x delete-delay
Related commands
reset isis all (Layer 3—IP Routing Command Reference)
reset ospfv3 process (Layer 3—IP Routing Command Reference)
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
segment-routing microloop-avoidance strict-sid-only
Use segment-routing microloop-avoidance strict-sid-only to configure SR microloop avoidance to encapsulate only strict SIDs in the SID list.
Use undo segment-routing microloop-avoidance strict-sid-only to restore the default.
Syntax
segment-routing microloop-avoidance strict-sid-only
undo segment-routing microloop-avoidance strict-sid-only
Default
The strict-SID-only feature is not configured for SR microloop avoidance.
Views
IS-IS IPv6 unicast address family view
Predefined user roles
network-admin
Usage guidelines
By default, SR microloop avoidance first calculates the End SID to the P node, and then calculates the End.X SIDs from the P node to the destination node. Then, the SIDs are encapsulated into the SRH in the order of the End SID of the P node and the End.X SIDs from the P node to the destination node.
If multipoint failure exists and the forwarding path is frequently switched, a microloop might exist on the path to the P node identified by the End SID. To resolve this issue, use this command to strictly constrain the path to the P node.
This command strictly constrains the path to the P node by calculating an End.X SID to reach the P node. The SIDs are encapsulated into the SID list of the SRH in the order of the End.X SID to the P node and the End.X SIDs from the P node to the destination node.
Examples
# Configure SR microloop avoidance to encapsulate only strict SIDs in the SID list for IS-IS process 1.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] address-family ipv6
[Sysname-isis-1-ipv6] segment-routing microloop-avoidance strict-sid-only
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
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