- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
01-IPv6 Segment Routing commands | 154.15 KB |
display isis segment-routing ipv6 capability
display isis segment-routing ipv6 locator
display ospfv3 segment-routing ipv6 capability
display segment-routing ipv6 forwarding
display segment-routing ipv6 local-sid
display segment-routing ipv6 locator
isis ipv6 fast-reroute ti-lfa disable
peer advertise encap-type srv6
segment-routing ipv6 locator (BGP-VPN IPv4 or IPv6 unicast address family view)
segment-routing ipv6 locator (IS-IS IPv6 address family view)
segment-routing ipv6 locator (OSPFv3 process view)
segment-routing ipv6 best-effort
segment-routing microloop-avoidance enable
segment-routing microloop-avoidance rib-update-delay
IPv6 Segment Routing commands
display isis segment-routing ipv6 capability
Use display isis segment-routing ipv6 capability to display IS-IS SRv6 capability information.
Syntax
display isis segment-routing ipv6 capability [ level-1 | level-2 ] [ process-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
level-1: Specifies the level-1 area.
level-2: Specifies the level-2 area.
process-id: Specifies an IS-IS process by its ID, in the range of 1 to 65535. If you do not specify a process, this command displays SRv6 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 areas.
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 SRv6 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
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.
level-1: Specifies the level-1 area.
level-2: Specifies the level-2 area.
verbose: Displays detailed IS-IS SRv6 locator information. If you do not specify this keyword, the command displays only brief IS-IS SRv6 locator information.
process-id: Specifies an IS-IS process by its ID, in the range of 1 to 65535. If you do not specify a process, this command displays IS-IS SRv6 locator information for all IS-IS processes.
Examples
# Display IS-IS SRv6 locator information.
<Sysname> display isis segment-routing ipv6 locator
Route information for IS-IS(1)
------------------------------
Level-1 Locator Route Table
---------------------------
Destination : 201:: PrefixLen: 64
Flags : R/-/- Cost : 2
Next hop : FE80::38A5:3DFF:FEE9:218 Interface: GE1/2/0/1
Destination : 202:: PrefixLen: 64
Flags : R/-/- Cost : 1
Next hop : FE80::38A5:3DFF:FEE9:218 Interface: GE1/2/0/3
Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set
Table 2 Command output
Field |
Description |
Destination |
Destination IPv6 prefix. |
PrefixLen |
Prefix length. |
Flag/Flags |
Route flags: · D—The route is a direct route. · R—The route has been flushed to the RIB. · L—The route has been advertised in LSPs. · U—Penetration flag. Setting it to U 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 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 3 Command output
Field |
Description |
Router ID |
Neighbor router ID. |
SRv6 capability |
Whether SRv6 is enabled. |
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 ]
display segment-routing ipv6 forwarding [ entry-id ] [ chassis chassis-number slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
entry-id: Specifies an SRv6 forwarding entry by its ID. The value range for this argument varies by device model. 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.
chassis chassis-number slot slot-number: Specifies a card on a cluster member device. The chassis-number argument represents the cluster member ID. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays SRv6 forwarding entries on the global active MPU.
Examples
# Display all SRv6 forwarding entries.
<Sysname> display segment-routing ipv6 forwarding
Total SRv6 forwarding entries: 4
Flags: T – Forwarded through a tunnel
N – Forwarded through the outgoing interface to the nexthop IP address
A - Active forwarding information
B – Backup forwarding information
ID Flags Forwarding info
--------------------------------------------------------------------------------
2148532225 NA GE1/2/0/1
FE80::54CB:70FF:FE86:316
{6000::1, 7000::1, 8000::1}
2149580801 TA 2148532225
2150629377 TA 2149580801
Table 4 Command output
Field |
Description |
Flags |
Forwarding flags: · T—Tunnel forwarding. · N—Output interface or next hop forwarding. · A—Active forwarding information. · B—Backup forwarding information. |
Forwarding info |
SRv6 forwarding information. · For the N forwarding flag, the forwarding information includes the output interface, next hop, and SID list. · For the T forwarding flag, the forwarding information is the SRv6 forwarding entry ID. |
display segment-routing ipv6 local-sid
Use display segment-routing ipv6 local-sid to display information about the SRv6 local SID forwarding table.
Syntax
display segment-routing ipv6 local-sid { end | end-b6encaps | end-dt4 | end-dt46 | end-dt6 | end-op | end-x } [ sid ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
end: Specifies End SIDs.
end-b6encaps: Specifies End.B6ENCAPS SIDs.
end-dt4: Specifies End.DT4 SIDs.
end-dt46: Specifies End.DT46 SIDs.
end-dt6: Specifies End.DT6 SIDs.
end-op: Specifies End.OP SIDs.
end-x: Specifies End.X SIDs.
sid: Specifies an SRv6 SID. If you do not specify an SRv6 SID, this command displays SRv6 local forwarding table information for all SRv6 SIDs of the specified type.
Examples
# Display SRv6 local forwarding table information for all End SIDs.
<Sysname> display segment-routing ipv6 local-sid end
Local SID forwarding table (End)
Total SIDs: 1
SID : 100::64/96
Function type : End Flavor : PSP
Locator name : abc Allocation type: Static
Owner : SIDMGR State : Active
Create Time : May 19 17:21:15.687 2020
# Display SRv6 local forwarding table information for all End.X SIDs.
<Sysname> display segment-routing ipv6 local-sid end-x
Local SID forwarding table (End.X)
Total SIDs: 1
SID : 1000:0:0:15::/32
Function type : End.X Flavor : PSP
Interface : GE1/2/0/1 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
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
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
Table 5 Command output
Field |
Description |
SID |
SRv6 SID. |
Function type |
SRv6 SID type: · End. · End.B6.Encaps. · End.DT4. · End.DT46. · End.DT6. · End.OP. · End.X. |
Flavor |
SRv6 SID operation type. Only (Penultimate Segment POP of the SRH) PSP is supported in the current software version. |
Interface |
Output interface. |
Interface index |
Output interface index. |
Next hop |
Next hop address. |
VPN instance |
VPN instance name. |
Allocation type |
SID allocation type: · Static—Manually configured. · Dynamic—Dynamically allocated. |
Owner |
Protocol that applies for the SID: · SIDMGR. · BGP. · SRPolicy. · IS-IS. · L2VPN. · LSM. · 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
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 : a
IPv6 prefix : 5000:: Prefix length : 64
Static length : 32 Args length : 0
Auto SID start: 5000::1:0:0
Auto SID end : 5000::FFFF:FFFF:FFFF:FFFF
Static SID start: 5000::1
Static SID end : 5000::FFFF:FFFF
Table 6 Command output
Field |
Description |
IPv6 prefix |
IPv6 address prefix of the locator. |
Prefix length |
Prefix length of the locator. |
Static length |
Static length of the locator. |
Args length |
Argument length. |
Auto SID start |
Start dynamic SRv6 SID. If no dynamic SRv6 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. |
encapsulation source-address
Use encapsulation source-address to specify a source address for the outer IPv6 header of SRv6 VPN packets.
Use undo encapsulation source-address to restore the default.
Syntax
encapsulation source-address ipv6-address [ ip-ttl ttl-value ]
undo encapsulation source-address
Default
No source address is specified for the outer IPv6 header of SRv6 VPN packets.
Views
SRv6 view
Predefined user roles
network-admin
mdc-admin
Parameters
ipv6-address: Specifies a source IPv6 address.
ip-ttl ttl-value: Specifies the TTL of the outer IPv6 header, in the range of 1 to 255. The default value is 255.
Usage guidelines
To ensure correct VPN traffic forwarding in an SRv6 VPN network, you must specify a source address for the outer IPv6 header of SRv6 VPN packets.
Examples
# Specify 1::1 as the source address of SRv6 VPN packets in the outer IPv6 header and set the TTL of the outer IPv6 header to 200.
<Sysname> system-view
[Sysname] segment-routing ipv6
[Sysname-segment-routing-ipv6] encapsulation source-address 1::1 ip-ttl 200
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
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 ]
Default
TI-LFA FRR is disabled.
Views
IS-IS IPv6 unicast address family view
Predefined user roles
network-admin
mdc-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 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
Related commands
fast-reroute (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
mdc-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 GigabitEthernet 1/2/0/1 from participating in TI-LFA calculation.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/2/0/1
[Sysname-GigabitEthernet1/2/0/1] isis ipv6 enable 1
[Sysname-GigabitEthernet1/2/0/1] 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
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. The ipv6-address argument represents the IPv6 address prefix. The prefix-length argument represents the prefix length, in the range of 32 to 120.
args args-length: Specifies an argument length. The value range for the args-length argument depends on the value of the prefix-length argument. 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. If the value for the prefix-length argument is in the range of 32 to 96, the value range for the static-length argument is 1 to 32. If the value for the prefix-length argument is equal to or larger than 97, the value range for the static-length argument is 1 to (128 - prefix-length). The static-length argument restricts the value range of the opcode argument in the opcode command. If you do not specify a static length, the static length is 0.
Usage guidelines
An SRv6 SID is in the format of IPv6 address and it contains 128 bits. An SRv6 SID contains the Locator, Function, and Args portions.
· The Locator portion is determined by the ipv6-prefix ipv6-address prefix-length parameter. The portion length is determined by the prefix-length argument. A locator is an IPv6 subnet. All IPv6 addresses in the subnet can be used as SRv6 SIDs.
· The Function portion contains an opcode. The opcode can be a static opcode or a dynamic opcode.
¡ Static opcode—Manually configured by using the opcode command. SRv6 SIDs generated based on a static opcode are static SRv6 SID. The length of a static opcode is determined by the static static-length option, and it determines the number of static SRv6 SIDs on the locator.
¡ Dynamic opcode—Dynamically allocated by IGP. SRv6 SIDs generated based on a dynamic opcode are dynamic SRv6 SID. When dynamically allocating SRv6 SIDs, IGP applies for SIDs outside the static opcode range to avoid SRv6 SID conflicts.
· The Args portion contains traffic flow and service information. This portion is determined by the args args-length option.
The length of a dynamic opcode is calculated by using the following formula: dynamic-length = 128 - (prefix-length + static-length + args-length).
A static SRv6 SID is generated based on the following formula: static SRv6 SID = ipv6-prefix + 0 + opcode + 0.
· The ipv6-prefix portion represents the IPv6 prefix specified by using theipv6-address and prefix-length arguments in the locator command. The number of bits occupied by the IPv6 prefix is configured by using the prefix-length argument.
· The number of bits occupied by 0s (following the ipv6-prefix portion) is the value of the dynamic-length argument.
· The opcode portion represents the opcode. The number of bits occupied by the opcode is configured by using the static-length argument in the locator command.
· The number of bits occupied by 0s (following the opcode portion) is the value of the args-length argument.
A dynamic SRv6 SID is generated based on the following formula: dynamic SRv6 SID = ipv6-prefix + dynamic + 0.
· The ipv6-prefix portion represents the IPv6 prefix specified by using the ipv6-address and prefix-length arguments in the locator command. The number of bits occupied by the IPv6 prefix is configured by using the prefix-length argument.
· The dynamic portion is dynamically allocated by IGP. The number of bits occupied by this portion is the value of the dynamic-length argument.
· The number of bits occupied by 0s is the sum value of the static-length and args-length arguments.
For example, in the locator test1 ipv6-prefix 100:200:DB8:ABCD:: 64 static 24 args 32 command:
· The Locator portion is 100:200:DB8:ABCD::. This portion occupies 64 bits.
· The static opcode occupies 24 bits.
· The Args portion occupies 32 bits.
· The dynamic opcode occupies 8 bits.
The static SRv6 SID range and dynamic SRv6 SID range are as follows:
· The start static SRv6 SID is 100:200:DB8:ABCD:0:1::.
· The end static SRv6 SID is 100:200:DB8:ABCD:FF:FFFF::.
· The start dynamic SRv6 SID is 100:200:DB8:ABCD:100::.
· The end dynamic SRv6 SID is 100:200:DB8:ABCD:FFFF:FFFF::.
If a static opcode has been configured, a routing protocol preferentially uses the static opcode to construct SRv6 SIDs. If no static opcode exists, the routing protocol dynamically allocates SRv6 SIDs.
By applying a locator to IGP and BGP, you can use IGP and BGP to advertise the SRv6 SIDs on the locator.
When you create a locator, you must specify an IPv6 address prefix, prefix length, and static length for the locator. When you enter the view of an existing SRv6 locator, you do not need to specify the IPv6 address prefix, prefix length, or static length of the locator.
Each locator must have a unique name.
Do not specify the same IPv6 address prefix and prefix length for different locators. In addition, the IPv6 address prefixes of different locators cannot overlap.
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 an SRv6 SID.
Use undo opcode to delete the opcode of an SRv6 SID.
Syntax
opcode opcode end
opcode opcode end-x interface interface-type interface-number nexthop nexthop-address
opcode opcode end-dt4 vpn-instance vpn-instance-name [ evpn ]
opcode opcode end-dt46 vpn-instance vpn-instance-name [ evpn ]
opcode opcode end-dt6 vpn-instance vpn-instance-name [ evpn ]
opcode opcode end-op
undo opcode opcode
Default
No opcode exists.
Views
SRv6 locator view
Predefined user roles
network-admin
mdc-admin
Parameters
opcode: Specifies an opcode in the range of 1 to 2static-length-1, in which the static-length argument is configured by using the locator command.
end: Specifies the End type.
end-x: Specifies the End.X type.
end-dt4: Specifies the End.DT4 type.
end-dt46: Specifies the End.DT46 type.
end-dt6: Specifies the End.DT6 type.
end-op: Specifies the End.OP type.
interface interface-type interface-number: Specifies an output interface.
nexthop nexthop-address: Specifies a next hop IPv6 address.
vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance to which the End.DT4 or End.DT6 SID belongs. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. The specified VPN instance must exist.
evpn: Specifies EVPN routes. If you do not specify this keyword, the command specifies the End.DT4 SID of VPNv4 routes or the End.DT6 SID of VPNv6 routes.
Usage guidelines
An SRv6 locator and its opcode generate a unique SRv6 SID. SRv6 SIDs form local SID forwarding table entries.
An SRv6 SID is generated based on the following formula: SRv6 SID = ipv6-prefix + opcode + 0.
· The ipv6-prefix argument represents the IPv6 prefix, which is specified by using the ipv6-address and prefix-length arguments in the locator command. The number of bits occupied by the IPv6 prefix is configured by using the prefix-length argument.
· The opcode argument represents the opcode. The number of bits occupied by the opcode is configured by using the static-length argument in the locator command.
· If the total number of IPv6 prefix bits and opcode bits does not reach 128, the remaining bits are all 0s.
For example, the locator and opcode configurations are as follows:
· locator test1 ipv6-prefix 100:: 64 static 32
· opcode 64 end
The SRv6 SID is 100::40:0:0.
To modify the opcode of an SRv6 SID, you must first delete the original opcode by using the undo opcode command.
Examples
# Configure an End SRv6 SID, and set the opcode to 64. Configure an End.X SRv6 SID, set the opcode to 128, and configure GigabitEthernet 1/2/0/1 as the output interface and 2001::1 as the next hop IPv6 address.
<Sysname> system-view
[Sysname] segment-routing ipv6
[Sysname-segment-routing-ipv6] locator test ipv6-prefix 100:: 64 static 32
[Sysname-segment-routing-ipv6-locator-test] opcode 64 end
[Sysname-segment-routing-ipv6-locator-test] opcode 128 end-x interface gigabitethernet 1/2/0/1 nexthop 2001::1
Related commands
locator
segment-routing ipv6
peer advertise encap-type srv6
Use peer advertise encap-type srv6 to enable SRv6 encapsulation for the EVPN IP prefix advertisement routes advertised to a peer or peer group.
Use undo peer advertise encap-type srv6 to disable SRv6 encapsulation for the EVPN IP prefix advertisement routes advertised to a peer or peer group.
Syntax
peer { group-name | ipv6-address [ prefix-length ] } advertise encap-type srv6
undo peer { group-name | ipv6-address [ prefix-length ] } advertise encap-type srv6
Default
IP prefix advertisement routes use VXLAN encapsulation.
Views
BGP EVPN address family view
Predefined user roles
network-admin
mdc-admin
Parameters
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must exist.
ipv6-address: Specifies a peer by its IPv6 address. The peer must exist.
prefix-length: Specifies a prefix length in the range of 0 to 128. To specify a subnet, you must specify both the ipv6-address and prefix-length arguments.
Usage guidelines
Use this command to enable the device to advertise EVPN IP prefix advertisement routes with SRv6 encapsulation in an EVPN L3VPN over SRv6 network.
Execute this command on the edge nodes of the EVPN L3VPN network and RRs.
Examples
# Enable SRv6 encapsulation for the IP prefix advertisement routes advertised to peer 1::1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] address-family l2vpn evpn
[Sysname-bgp-default-evpn] peer 1::1 advertise encap-type srv6
peer prefix-sid
Use peer prefix-sid to enable BGP to exchange prefix SID information with an IPv6 peer or peer group.
Use undo peer prefix-sid to restore the default.
Syntax
peer { group-name | ipv6-address [ prefix-length ] } prefix-sid
undo peer { group-name | ipv6-address [ prefix-length ] } prefix-sid
Default
BGP does not exchange prefix SID information with an IPv6 peer or peer group.
Views
BGP VPNv4 address family view
BGP VPNv6 address family view
Predefined user roles
network-admin
mdc-admin
Parameters
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must exist.
ipv6-address: Specifies a peer by its IPv6 address. The peer must exist.
prefix-length: Specifies a prefix length in the range of 0 to 128. To specify a subnet, you must specify both the ipv6-address and prefix-length arguments.
Usage guidelines
Use this command to enable IPv6 peers in an SRv6 VPN network to exchange End.DT4 SID information through BGP VPNv4 routes or exchange End.DT6 SID information through BGP VPNv6 routes.
Examples
# In BGP VPNv4 address family view, enable BGP to exchange prefix SID information with peer 2001:1::1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] address-family vpnv4
[Sysname-bgp-default-vpnv4] peer 2001:1::1 prefix-sid
peer srv6-vpn compatible
Use peer srv6-vpn compatible to enable SRv6 VPN compatibility with a peer or peer group.
Use undo peer srv6-vpn compatible to disable SRv6 VPN compatibility with a peer or peer group.
Syntax
peer { group-name | ipv6-address [ prefix-length ] } srv6-vpn compatible
undo peer { group-name | ipv6-address [ prefix-length ] } srv6-vpn compatible
Default
SRv6 VPN compatibility is disabled for a peer or peer group.
Views
BGP VPNv4 address family view
Predefined user roles
network-admin
mdc-admin
Parameters
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must exist.
ipv6-address: Specifies a peer by its IPv6 address. The peer must exist.
prefix-length: Specifies a prefix length in the range of 0 to 128. To specify a subnet, you must specify both the ipv6-address and prefix-length arguments.
Usage guidelines
PEs from different vendors might define different End.DT4 SID message formats in VPNv4 routes. A PE cannot learn VPNv4 routes from its peers if it uses an End.DT4 SID message format different than its peers. To resolve this issue, perform this task on the PE to enable its SRv6 VPN compatibility with its peers. This task ensures that a Comware PE can communicate with PEs from other vendors in an MPLS L3VPN over SRv6 network.
Examples
# Enable SRv6 VPN compatibility with peer 2::2.
<Sysname> system-view
[Sysname] bgp 1
[Sysname-bgp-default] address-family vpnv4
[Sysname-bgp-default-vpnv4] peer 2::2 srv6-vpn compatible
router-id
Use router-id to configure the router ID for an IPv6 IS-IS process and enable IPv6 TE.
Use undo router-id to remove the router ID from an IPv6 IS-IS process and disable IPv6 TE.
Syntax
router-id ipv6-address
undo router-id
Default
No router ID is configured for an IPv6 IS-IS process and IPv6 TE is disabled.
Views
IS-IS IPv6 address family view
Predefined user roles
network-admin
mdc-admin
Parameters
ipv6-address: Specifies an IPv6 router ID.
Usage guidelines
The IPv6 router ID must be unique in the IPv6 network.
The IPv6 router ID determines the source and destination addresses of the SRv6 tunnel distributed to the IGP. The destination address of the SRv6 tunnel must be the same as the IPv6 router ID of the destination node.
Configuring an IPv6 route ID on a router also enables the IPv6 TE feature on that router. After the SRv6 tunnel participates in IGP route calculation, traffic can be directed to the SRv6 tunnel.
Examples
# Configure the router ID for an IPv6 IS-IS process and enable IPv6 TE.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] cost-style wide
[Sysname-isis-1] address-family ipv6
[Sysname-isis-1-ipv6] router-id 1000::1
segment-routing ipv6
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.
Examples
# Enable SRv6 and enter SRv6 view.
<Sysname> system-view
[Sysname] segment-routing ipv6
[Sysname-segment-routing-ipv6]
segment-routing ipv6 locator (BGP-VPN IPv4 or IPv6 unicast address family view)
Use segment-routing ipv6 locator to add the SID attribute to private network routes when the routes are converted to BGP VPNv4, VPNv6, or EVPN routes.
Use undo segment-routing ipv6 locator to restore the default.
Syntax
segment-routing ipv6 locator locator-name [ evpn ] [ auto-sid-disable ]
undo segment-routing ipv6 locator [ evpn ]
Default
The SID attribute is not add to private network routes when the routes are converted to BGP VPNv4, VPNv6, or EVPN routes.
Views
BGP-VPN IPv4 unicast address family view
BGP-VPN 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. The specified locator must exist.
evpn: Adds the SID attribute to private network routes when the routes are converted to EVPN routes. If you do not specify this keyword, the command adds the SID attribute to private network routes when the routes are converted to BGP VPNv4 or VPNv6 routes.
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
In an SRv6 VPN network, the private network routes of a VPN instance advertised by a PE through BGP update messages must have an End.DT4 or End.DT6 SID. This End.DT4 or End.DT6 SID is used to identify packets that belong to the VPN instance. Use this command to specify the End.DT4 or End.DT6 SID to be added in the private network routes when the routes are converted to BGP VPNv4, VPNv6, or EVPN routes.
The VPN instance of the private network must be the same as the VPN instance of the specified locator. To specify a VPN instance for a locator, use the opcode end-dt4 or opcode end-dt6 command in SRv6 locator view.
If you execute the segment-routing ipv6 locator command multiple times for the same address family, the most recent configuration takes effect.
Examples
# In BGP-VPN IPv4 unicast address family view, add the SID attribute to private network routes when the routes are converted to BGP VPNv4 routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] ip vpn-instance vpn1
[Sysname-bgp-default-vpn1] address-family ipv4
[Sysname-bgp-default-ipv4-vpn1] segment-routing ipv6 locator abc
# In BGP-VPN IPv6 unicast address family view, add the SID attribute to private network routes when the routes are converted to BGP VPNv6 routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] ip vpn-instance vpn1
[Sysname-bgp-default-vpn1] address-family ipv6
[Sysname-bgp-default-ipv6-vpn1] segment-routing ipv6 locator abc
# In BGP-VPN IPv6 unicast address family view, add the SID attribute to private network routes when the routes are converted to BGP EVPN routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] ip vpn-instance vpn1
[Sysname-bgp-default-vpn1] address-family ipv6
[Sysname-bgp-default-ipv6-vpn1] segment-routing ipv6 locator abc evpn
Related commands
locator
opcode end-dt4
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
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.
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
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.
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 ipv6 best-effort
Use segment-routing ipv6 best-effort to enable the SID-route-recursion feature.
Use undo segment-routing ipv6 best-effort to disable the SID-route-recursion feature.
Syntax
segment-routing ipv6 best-effort [ evpn ]
undo segment-routing ipv6 best-effort [ evpn ]
Default
The SID-route-recursion feature is disabled. A PE does not recurse private network routes of a VPN instance to IPv6 routes of the End.DT4 or End.DT6 SID associated with that VPN instance.
Views
BGP-VPN IPv4 unicast address family view
BGP-VPN IPv6 unicast address family view
Predefined user roles
network-admin
mdc-admin
Parameters
evpn: Recurses the private network routes based on the SID attribute in EVPN routes. If you do not specify this keyword, the device recurses the private network routes based on the SID attribute in BGP VPNv4 or VPNv6 routes.
Usage guidelines
After a PE adds an End.DT4 or End.DT6 SID to a private network packet, it searches the routing table for a route to forward the packet based on the SID. The PE selects a route from the following private network routes to forward the packet:
· BGP VPNv4 routes that carry the End.DT4 SID.
· BGP VPNv6 routes that carry the End.DT6 SID.
· BGP EVPN routes that carry the End.DT4 or End.DT6 SID.
To recurse the private network routes to the IPv6 routes of the End.DT4 or End.DT6 SID, use this command to enable the SID-route-recursion feature. Then, the PE can use IGP to calculate the optimal path to forward the private network packet to the End.DT4 or End.DT6 SID over the SRv6 VPN backbone network.
Examples
# In BGP-VPN IPv4 unicast address family view, enable the SID-route-recursion feature.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] ip vpn-instance vpn1
[Sysname-bgp-default-vpn1] address-family ipv4
[Sysname-bgp-default-ipv4-vpn1] segment-routing ipv6 best-effort
# In BGP-VPN IPv6 unicast address family view, enable the SID-route-recursion feature.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] ip vpn-instance vpn1
[Sysname-bgp-default-vpn1] address-family ipv6
[Sysname-bgp-default-ipv6-vpn1] segment-routing ipv6 best-effort
Related commands
segment-routing ipv6 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
segment-routing microloop-avoidance enable [ level-1 | level-2 ]
undo segment-routing microloop-avoidance enable [ level-1 | level-2 ]
Default
SR microloop avoidance is disabled.
Views
IS-IS IPv6 unicast address family view
Predefined user roles
network-admin
mdc-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
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
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 ]
Default
The SR microloop avoidance RIB-update-delay time is 5000 milliseconds.
Views
IS-IS IPv6 unicast address family view
Predefined user roles
network-admin
mdc-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
Related commands
segment-routing microloop-avoidance enable