opcode end-dx4 evpn

Function

The opcode end-dx4 evpn command configures an opcode for static SRv6 End.DX4 SIDs.

The undo opcode end-dx4 evpn command deletes the opcode configured for static SRv6 End.DX4 SIDs.

The opcode end-dx6 evpn command configures an opcode for static SRv6 End.DX6 SIDs.

The undo opcode end-dx6 evpn command deletes the opcode configured for static SRv6 End.DX6 SIDs.

By default, no opcode is configured for static SRv6 End.DX4/End.DX6 SIDs.

Format

opcode func-opcode end-dx4 vpn-instance vpn-instance-name evpn interface { interface-name | interface-type interface-number } nexthop nexthop-address

opcode func-opcode end-dx6 vpn-instance vpn-instance-name evpn interface { interface-name | interface-type interface-number } nexthop nexthop-ipv6-address

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

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

Parameters

Parameter Description Value
func-opcode

Specifies an opcode for static SRv6 End.DX4/End.DX6 SIDs.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

vpn-instance vpn-instance-name

Specifies a VPN instance name.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. The VPN instance name cannot be <b>_public_</b>. When double quotation marks are used around the string, spaces are allowed in the string.

interface interface-name

Specifies an interface name.

-

interface-type

Specifies an interface type.

-

interface-number

Specifies an interface number.

-

nexthop nexthop-address

Specifies the next-hop address.

The value is in dotted decimal notation.

nexthop nexthop-ipv6-address

Specifies the next-hop IPv6 address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

Segment routing IPv6 locator view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
segr write

Usage Guidelines

Usage Scenario

An SRv6 SID is a 128-bit IPv6 address expressed in the Locator:Function:Args format. The Function field is also called Opcode, and different operation codes define different functions.

Static operation codes must be configured within the static operation code segment. The length of a static operation code segment is configured through the static static-length parameter in the locator command to determine the number of static operation codes that can be configured in a specified locator range.

After you run the opcode command to configure various types of operation codes, the Locator, Opcode, and Args fields form a unique SRv6 SID. The SRv6 SID is then added to the local SID table on the device. In forwarding, the Locator field in the SRv6 SID instructs other nodes to find the SRv6 SID generation node through addressing and forward SRv6 packets to the node; the Opcode field instructs the SRv6 SID generation node to implement corresponding functions.

End.DX4/End.DX6 (short for decapsulation and IPv4/IPv6 cross-connect) supports packet decapsulation and forwarding to a specified IPv4/IPv6 Layer 3 adjacency. End.DX4/End.DX6 SIDs are mainly used in L3VPNv4/L3VPNv6 scenarios as per-CE VPN SIDs.

End.DX4/End.DX6 can be disassembled into End + D + X4/X6, where D indicates decapsulation, and X4/X6 indicates IPv4/IPv6 cross-connect (meaning that a packet needs to be directly forwarded to a specified IPv4/IPv6 Layer 3 adjacency). Therefore, each End.DX4/End.DX6 SID needs to be bound to one or a group of IPv4/IPv6 Layer 3 adjacencies.

The End.DX4/End.DX6 SID instruction includes the following operations:

  1. Removes the outer IPv6 header and SRH.
  2. Forwards the inner IPv4/IPv6 packet to the IPv4/IPv6 Layer 3 adjacency bound to the End.DX4/End.DX6 SID.

Precautions

To ensure correct forwarding, the configured static SIDs cannot conflict with the IPv6 addresses configured on interfaces.

Example

# Configure an opcode for static End.DX6 SIDs.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] locator test1 ipv6-prefix 2001:DB8:100:: 64 static 32
[*HUAWEI-segment-routing-ipv6-locator] opcode ::205 end-dx6 vpn-instance vpn1 evpn interface GigabitEthernet0/1/0 nexthop 2001:DB8:500::100
# Configure an opcode for static End.DX4 SIDs.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] locator test1 ipv6-prefix 2001:DB8:100:: 64 static 32
[*HUAWEI-segment-routing-ipv6-locator] opcode ::202 end-dx4 vpn-instance vpn1 evpn interface GigabitEthernet0/1/0 nexthop 10.4.4.4
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >