< Home

ipv4-family (VPN instance view)

Function

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.

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 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.

By default, the IPv4 address family is disabled for a VPN instance. However, for a VPN instance with which the device automatically associates during virtual system creation by the administrator, the IPv4 address family is enabled by default.

Example

# Enable the IPv4 address family for the VPN instance named vrf1.

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