address-family ipv4/ipv6 label
To configure label control and policies on a specific IPv4 or IPv6 destination, use the address-family ipv4/ipv6 label command in the MPLS LDP configuration mode.
[ vrf vrf-name ] address-family {ipv4 | ipv6} label [remote accept from ldp-id for prefix-acl] local [default-route] [allocate for {prefix-acl | host-routes}] [ advertise [to ldp-id for prefix-acl] [interface type interface-path-id ] ]
Syntax Description
address-family |
Configure address-family and its parameters. |
||
ipv4 |
Specifies IP version 4 address family. |
||
ipv6 |
Specifies IP version 6 address family. |
||
label |
(Optional) Configure label control and policies. |
||
remote |
(Optional) Configure remote/peer label control and policies. |
||
accept |
(Optional) Configure inbound label acceptance control. |
||
from ldp-id |
Specifies which LDP neighbors will receive label advertisements. LDP ID is written in A.B.C.D: format. |
||
for prefix-acl |
Specifies prefix destinations for which labels will be advertised. |
||
local |
(Optional) Configure local label control and policies. |
||
default-route |
(Optional) Enable MPLS forwarding for default route. |
||
allocate |
(Optional) Configure label allocation control. |
||
for prefix-acl |
Specifies prefix destinations for which labels will be allocated. |
||
host-routes |
Allocates labels for host routes only. |
||
advertise |
(Optional) Configure outbound label advertisement control. |
||
to ldp-id |
(Optional) Specifies which LDP neighbors will receive label advertisements. LDP ID is written in A.B.C.D: format. |
||
for prefix-acl |
(Optional) Specifies prefix destinations for which labels will be advertised. |
||
interface |
(Optional) Advertise interface host address. |
||
type |
Interface type. For more information, use the question mark (?) online help function. |
||
interface-path-id |
Physical interface or a virtual interface.
For more information about the syntax for the router, use the question mark (?) online help function. |
Command Default
No default behavior or values
Command Modes
MPLS LDP configuration
Command History
Release |
Modification |
---|---|
Release 7.0.12 |
This command was introduced |
Usage Guidelines
No specific guidelines impact the use of this command.
Task ID
Task ID | Operation |
---|---|
mpls-ldp |
read, write |
Examples
The following example shows how to configure label control and policies on a specific IPv4 destination:
RP/0/RP0/CPU0:router(config-ldp)# address-family ipv4 label