D-Link DES-7200 Refrigerator User Manual


  Open as PDF
of 1968
 
DES-7200 Configuration Guide Chapter 2 Configuring BGP IP VPN
2-28
DES-7200(config-router-af)#
neighbor asbr-address
route-map routemap-name out
(Optional) Configure a route distribution policy to
control the routes sent to neighbors and specify
whether the routes can carry labels, by defining a
route map rule.
DES-7200(config-router-af)#
neighbor asbr-address
route-map routemap-name in
(Optional) Configure a route distribution policy to
receive only labeled routes by defining a route map
rule.
DES-7200(config-router-af)#
show running-config
View all configuration information.
Caution
1. You must run the label-switching command on the interface that
connects two ASBRs to enable MPLS on the interface so that the links
between the ASBRs can forward MPLS packets.
2. If the ASBRs do not use directly connected addresses to set up an
MP-EBGP session and use the loopback address with 32-bit mask
length as the source address to set up an MP-EBGP session, you must
use the neighbor ebgp-multihop command to enable multi-hop EBGP.
At the same time, you must configure static routes on the ASBR to the
loopback address on the peer, enable LDP or configure a static FTN
(with an outgoing label as 3, indicating that the ASBR is the second but
last hop).
# Set up an EBGP session between ASBRs, enable label exchanging of IPv4 routes, and run the
network command to import PE routes to the BGP module.
DES-7200# configure terminal
DES-7200(config)# router bgp 1
DES-7200(config-router)# neighbor 20.20.20.2 remote-as 2
DES-7200(config-router)# address-family ipv4
DES-7200(config-router-af)# neighbor 20.20.20.2 send-label
DES-7200(config-router-af)# network 10.10.10.10 mask 255.255.255.255
DES-7200(config-router-af)# end
In actual applications, an ASBR is generally required to distribute labels for PE routes for only
inter-AS VPN services. For this purpose, you can run the set mpls-label command in the route
map mode.
The set mpls-label command sets labels for routes. You can create a route map rule to
advertise only inter-PE routes to the peer ASBR and set labels for the routes. Set route map