• The system in this scenario uses static MPLS labels for ingress and egress traffic. For configuration information on static label, refer to the Configuring MPLS over BGP with Static Labels section.The system in this scenario uses dynamic MPLS labels for ingress and egress traffic. For configuration information on dynamic label, refer to Configuring MPLS-over-BGP with Dynamic Labels section.The base configuration, as described in the Routing chapter of the System Enhanced Feature Configuration Guide, must be completed prior to attempt the configuration procedure described below.Important: Commands used in the configuration samples in this section provide base functionality to the extent that the most common or likely commands and/or keyword options are presented. In many cases, other optional commands and/or keyword options are available. Refer to the Command Line Interface Reference for complete information regarding all commands.
Step 1 Create a VRF on the router and assign a VRF-ID by applying the example configuration in the Create VRF with Route-distinguisher and Route-target section.
Step 2
Step 3
Step 4
Step 5 Configure the address family and redistribute the connected routes into BGP by applying the example configuration in the Configure Address Family section. This takes any routes from another protocol and redistributes them to BGP neighbors using the BGP protocol.
Step 6
Step 7 Optional. Bind DHCP service to work with MPLS labels for input and output by applying the example configuration in the Bind DHCP Service with MPLS Labels Bind DHCP Service with MPLS Labels section.
Step 8 Save your configuration as described in the Verifying and Saving Your Configuration chapter in this guide.Use this example to first create a VRF on the router and assign a VRF-ID. The second ip vrf command creates the route-distinguisher and route-target.Use this example to configure the address-family and to redistribute the connected routes into BGP. This takes any routes from another protocol and redistributes them to BGP neighbors using the BGP protocol.ip pool <name> <ip_addr_mask_combo> private vrf <vrf_name> mpls-label input <in_label_value> output <out_label_value1>bind address <ip_address> [ nexthop-forwarding-address <nexthop_ip_address> [ mpls-label input <in_mpls_label_value> output <out_mpls_label_value1> [ <out_mpls_label_value2> ]]]
• Optional keyword nexthop-forwarding-address <nexthop_ip_address> [ mpls-label input <in_mpls_label_value> output <out_mpls_label_value1> [ out_mpls_label_value2 ]] applies DHCP over MPLS traffic.The base MPLS configuration, as described in the Configuring MPLS over BGP with Static Lables section, must be performed prior to attempting the configuration procedure described below.Important: Commands used in the configuration samples in this section provide base functionality to the extent that the most common or likely commands and/or keyword options are presented. In many cases, other optional commands and/or keyword options are available. Refer to the Command Line Interface Reference for complete information regarding all commands.
Step 1 Modify the context, which is configured to support basic MPLS functionality, for MPLS forwarding on BGP router by applying the example configuration in the MPLS Forwarding Configuration section.
Step 2
Step 3
Step 4
Step 5 Modify the configured IP VRF, which is configured to support basic MPLS functionality, for import and/or export the target routes into VRF by applying the example configuration in the Route Import and Export Configuration section.
Step 6 Save your configuration as described in the Verifying and Saving Your Configuration chapter.Use this example to modify the Context in which IP VRF is configured in the Configuring MPLS over BGP with Static Labels section to support MPLS forwarding.Use this example to modify the configured IP VRF which is configured in the Configuring MPLS over BGP with Static Labels section to support MPLS forwarding.Use this example to modify the configured IP VRF interface, which is configured in the Configuring MPLS over BGP with Static Lables section, to support IP VRF forwarding on that interface.Use this example to modify the configured AAA server group to associate IP VRF, which is configured in the Configuring MPLS over BGP with Static Lables section, to support AAA attributes.Use this example to modify the BGP router, which is configured in Configuring MPLS over BGP with Static Lables section, and associate it with the IP VRF, which is configured to support import and/or export of route target lists.
![]() |
Cisco Systems Inc. |
Tel: 408-526-4000 |
Fax: 408-527-0883 |