< Home

ipv4-family (VPN instance view)

Function

The ipv4-family command enables the IPv4 address family for a VPN instance and displays the VPN instance IPv4 address family view.

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.

Format

ipv4-family

undo ipv4-family

Parameters

None.

Views

VPN instance view

Default Level

2: Configuration level

Usage Guidelines

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. You can then perform VPN configurations in the address family view to advertise IPv4 VPN routes and allow IPv4 VPN data to be forwarded.

Follow-up Procedure

Run the route-distinguisher command to configure an RD for the IPv4 address family of the VPN instance. Before performing VPN configurations in the IPv4 address family view, configure an RD for the IPv4 address family of the VPN instance.

Precautions

Configurations of the commands run in the VPN instance view, except the description and service id command, are automatically synchronized to the VPN instance IPv4 address family view.

The IPv4 address family for a VPN instance with a BFD session bound can be disabled using the undo ipv4-family command only after the bound BFD session is deleted.

Example

# Enable the IPv4 address family for a VPN instance.

<HUAWEI> system-view
[HUAWEI] ip vpn-instance vrf1
[HUAWEI-vpn-instance-vrf1] ipv4-family
[HUAWEI-vpn-instance-vrf1-af-ipv4]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >