D-Link DES-7200 Refrigerator User Manual


  Open as PDF
of 1968
 
DES-7200 Configuration Guide Chapter 2 Configuring BGP IP VPN
2-31
run the advertise-labels for bgp-routes acl acl-name command to control the labels assigned
to BGP routes.
# Configure ACL rules and route map routes so that:
The IGP redistributes only routes 1.1.1.1 and 2.2.2.2.
The LDP assigns labels to only routes 1.1.1.1 and 2.2.2.2.
The configuration procedure is as follows:
Router(config)# ip access-list extended 101
Router(config-ext-nacl)# permit ip host 1.1.1.1 any
Router(config-ext-nacl)# permit ip host 2.2.2.2 any
Router(config-ext-nacl)# exit
Router(config)# route-map pe-routes
Router(config-route-map)# match ip address 101
Router(config-route-map)# exit
Router(config)# router ospf 1
Router(config-router)# redistribute bgp subnets route-map pe-routes
Router(config-route-map)# exit
Router(config)# mpls router ldp
Router(config-mpls-router)# advertise-labels for bgp-routes acl 101
Configuring a Multi-Hop MP-EBGP Session
In the earlier steps, the inter-AS LSP is already set up. At this time, you can directly set up a
multi-hop MP-EBGP session on the PE to be deployed with inter-AS VPN services with the PE in
another AS. The session can then exchange VPN routes.
To configure a multi-hop MP-EBGP session, you should enter the privilege mode and perform
the following configuration steps:
Command Function
DES-7200# configure terminal
Enter the global configuration mode.
DES-7200(config)# router bgp
asn-num
Enable BGP and enter the BGP configuration
mode.
DES-7200(config-router)# neighbor
ebgp-peer-address remote-as
ebgp-asn-num
Set up a multi-hop EBGP session with the PE in
another AS.