The ipv4-family command either enables the IPv4 address family for a VPN instance and displays the VPN instance IPv4 address family view or displays the VPN instance IPv4 address family view directly.
The undo ipv4-family command disables the IPv4 address family for a VPN instance.
By default, VPN instances are disabled with the IPv4 address family.
Usage Scenario
In BGP/MPLS IP VPN networking, after running the ip vpn-instance command to create a VPN instance, you can run the ipv4-family command to enable the IPv4 address family for the VPN instance and perform VPN configurations in the address family view if you want to have IPv4 VPN routes advertised and IPv4 VPN data forwarded.
Follow-up Procedure
Run the route-distinguisher command to configure an RD for the IPv4 address family of the VPN instance. VPN configurations can be performed in the IPv4 address family view only after an RD is configured for the IPv4 address family of the VPN instance.
Precautions
Except descriptionand service id, all commands configured in the VPN instance view will be generated in the IPv4 address family view after the IPv4 address family is enabled for the VPN instance.