address-family (static)
To enter various address family configuration modes while configuring static routes, use the address-family command in the appropriate configuration mode. To disable support for an address family, use the no form of this command.
address-family {ipv4 | ipv6} {unicast | multicast}
no address-family {ipv4 | ipv6} {unicast | multicast}
Syntax Description
ipv4 |
Specifies IP Version 4 address prefixes. |
ipv6 |
Specifies IP Version 6 address prefixes. This option is available only in static router configuration mode. |
unicast |
Specifies unicast address prefixes. |
multicast |
Specifies multicast address prefixes. This option is available only in static router configuration mode. |
Command Default
All static routes belong to the default VRF if you enter address family configuration mode without entering VRF configuration mode.Command Modes
Router static configuration
VRF router static configuration
Command History
Release |
Modification |
---|---|
Release 6.0 |
This command was introduced. |
Usage Guidelines
Use the address-family command to enter various address family configuration modes while configuring static routing sessions. From address family configuration mode, you can configure static routes using the route command.
Task ID
Task ID |
Operations |
---|---|
static |
read, write |
Examples
The following example shows how to enter IPv6 unicast address family mode:
RP/0/RP0/CPU0:router(config)# router static
RP/0/RP0/CPU0:router(config-static)# address-family ipv6 unicast
RP/0/RP0/CPU0:router(config-static-afi)#