Enables IPv4 or IPv6 address-family configuration mode.

address-family { ipv4 | ipv6 } [ max-route num ]
no address-family { ipv4 | ipv6 } [ max-route num ]

An address family is not configured.

ipv4
Specifies an IPv4 address family.
ipv6
Specifies an IPv6 address family.
max-route num
Configures the maximum number routes in a VRF. The valid range is from 128 through 15168. The default is 1024.

VRF configuration mode

Use the no form of this command to remove IPv4 or IPv6 address family configurations from the device.

The following example enables IPv4 address-family configuration mode:

device(config)# vrf red
device(config-vrf-red)# address-family ipv4
device(config-vrf-red-ipv4)#