Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Creating Labels per FEC

    The following configuration is used to configure the router to generate a label for each different FEC that a BGP route points to in the VPN. The following commands configure a router where BGP is running in VRF pe11 and static and connected routes are redistributed into the VRF:

    1. Configure the VRF.
      host1(config)#ip vrf pe11
    2. Configure the router to generate a label for each different FEC that a BGP route points to in a VPN.
      host1(config-vrf)#ip mpls forwarding-mode label-switched
    3. Establish the static routes for the VRF interface.
      host1(config-vrf)#ip route vrf pe11 fastEthernet 0/1 host1(config-vrf)#ip route vrf pe11 loopback 1 host1(config-vrf)#exit
    4. Configure the BGP routing process.
      host1(config)#router bgp 100
    5. For the IPv4 address family, configure the router to exchange IPv4 addresses in unicast.
      host1(config-router)#address-family ipv4 unicast vrf pe11 host1(config-router-af)#exit
    6. Configure the router to advertise the network routes without waiting for IGP synchronization with BGP.
      host1(config-router)#no synchronization
    7. Configure the router to redistribute routes that are established automatically when IP is enabled on an interface.
      host1(config-router)#redistribute connected
    8. Disable automatic synchronization.
      host1(config-router)#no auto-summary
    9. Configure the router to redistribute static routes.
      host1(config-router)#redistribute static

    For each connected route that is redistributed into the VRF and advertised across the BGP/MPLS VPN, the router assigns a per-VRF label rather than a per-FEC label.

    The static route points to loopback interface 1. BGP therefore advertises this static route with a per-VRF label.

    Published: 2014-08-18