The encapsulation source-address command configures a source address for SRv6 encapsulation.
The undo encapsulation source-address command deletes the source address configured for SRv6 encapsulation.
By default, no source address is configured for SRv6 encapsulation.
Parameter | Description | Value |
---|---|---|
ipv6-address |
Specifies an IPv6 address. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
ip-ttl ttl-value |
Specifies a TTL in IPv6 packets. If the ttl-mode command is not run or the ttl-mode pipe is run in the VPN instance view, the TTL carried in the IPv6 header is the same as ip-ttl ttl-value. |
The value is an integer ranging from 1 to 255. The default value is 255. |
Usage Scenario
IPv6 encapsulation is performed during SRv6 data forwarding. The source and destination addresses need to be encapsulated in the IPv6 header. This command is used to configure the source address to be encapsulated.
In unicast forwarding scenarios, SRv6 selects source addresses in the following sequence: