The transit-vpn command ensures that the status of a VRF (VPN Routing and Forwarding table) obtained from MIB is always Up, no matter whether this VRF is bound to interfaces.
The undo transit-vpn command restores the default setting.
By default, the status of a VRF obtained from MIB is Up only if it is bound to at least one interface in the Up state.
Usage Scenario
According to RFC, the status of a VRF obtained from MIB is Up only if it is bound to at least one interface in the Up state. In the HoVPN or H-VPN networking, however, a VRF does not need to be bound to any interface. If the VRF is not bound to an interface in this networking, the status of the VRF obtained from MIB is Down by default.
In this case, you can run the transit-vpn command to ensure that the status of a VRF obtained from MIB is always Up.
Prerequisites
The route-distinguisher command has been executed to set the RD of the VPN instance.
# Configure the status of the VRF vpna obtained from MIB to be always Up, no matter whether the VRF is bound to interfaces.
<HUAWEI> system-view [HUAWEI] ip vpn-instance vpna [HUAWEI-vpn-instance-vpna] ipv4-family [HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1 [HUAWEI-vpn-instance-vpna-af-ipv4] transit-vpn