Multi-Protocol Label Switching (MPLS) Support
Configuring BGP/MPLS VPN with Dynamic Labels ▀
Cisco ASR 5x00 Packet Data Network Gateway Administration Guide ▄
427
context
<
context_name
> -
noconfirm
ip vrf
<
vrf_name
>
router bgp
<
as_number
>
ip vrf
<
vrf_name
>
route-distinguisher
{<
as_value
> | <
ip_address
>} <
rt_value
>
route-target export
{<
as_value
> | <
ip_address
>} <
rt_value
>
route-target import
{<
as_value
> | <
ip_address
>} <
rt_value
>
end
Notes:
If export and improt route targets are the same, alternate command
route-target both
{<
as_value
> |
<
ip_address
> } <
rt_value
> can be used in place of
route-target import
and
route-target
export
commands.
Set Neighbors and Enable VPNv4 Route Exchange
Use this example to set the neighbors and address family to exchange VPNv4 routing information with a peer router.
configure
context
<
context_name
>
mpls bgp forwarding
router bgp
<
as_number
>
neighbor
<
ip_address
>
remote-as
<
AS_num
>
address-family
vpnv4
neighbor
<
ip_address
>
activate
neighbor
<
ip_address
>
send-community both
exit
interface
<
bind_intfc_name
>
ip address
<
ip_addr_mask_combo
>
end