DES-7200 Configuration Guide Chapter 2 Configuring BGP IP VPN
2-30
Enter the privilege mode and perform the following configuration procedure:
Command Function
DES-7200# configure terminal
Enter the global configuration mode.
DES-7200(config)# router igp
Enter the IGP configuration mode.
DES-7200(config-router)#
redistribute bgp subnets
[route-map routemap-name]
Redistribute BGP routes. Route filtering by using route
map rules is optional.
DES-7200(config-router)# exit
Quit the IGP configuration mode.
DES-7200(config)# mpls router
ldp
Enter the LDP configuration mode.
DES-7200(config-mpls-router)#
ldp router-id interface
loopback 0 force
Configure the LDP router ID. The loopback address is
generally used as the router ID.
DES-7200(config-mpls-router)#
advertise-labels for bgp-routes
[acl acl-name]
Assign labels to BGP routes. ACL rules and filtering are
optional.
DES-7200(config-mpls-router)#
show running-config
View all configuration information.
Caution
By default, the LDP assigns labels to only IGP routes and does not assign
labels to BGP routes. To assign labels to BGP routes, you can run the
advertise-labels for bgp-routes command.
# Configure an IGP and MPLS signaling in an AS.
DES-7200# configure terminal
DES-7200(config)# router ospf 1
DES-7200(config-router)# redistribute bgp subnets
DES-7200(config-router)# exit
DES-7200(config)# mpls router ldp
DES-7200(config-mpls-router)# ldp router-id interface loopback 0 force
DES-7200(config-mpls-router)# advertise-labels for bgp-routes
DES-7200(config-mpls-router)# end
When an IGP redistributes the learnt BGP routes in the OptionC scheme, you can run the
redistribute bgp subnets route-map routemap-name command in the IGP configuration mode
to control the BGP routes to be redistributed to the IGP. In the LDP configuration mode, you can