D-Link DES-7200 Refrigerator User Manual


  Open as PDF
of 1968
 
DES-7200 Configuration Guide Chapter 2 Configuring BGP IP VPN
2-13
By default, an L3VPN adopts the VRF-based label distribution mode. You can run the
alloc-label command in the VRF configuration mode to modify the default label distribution
mode. You can also choose different distribution modes for different VRFs.
To configure the label distribution mode, you should enter the privilege mode and perform the
following configuration steps:
Command Function
DES-7200# config terminal
Enter the global configuration mode.
DES-7200(config)# ip vrf vrf-name
Create a VRF and enter the VRF configuration
mode.
DES-7200(config-vrf)# alloc-label
per-vrf
Assign one label to all routes in the VRF. When
advertising VPN routes, the MP-BGP uses the
same label for all routes.
DES-7200(config-vrf)# alloc-label
per-route
Assign one label to each route in the VRF. When
advertising VPNv4 routes, the MP-BGP uses a
different label for each route.
DES-7200(config-vrf)# show
running-config
View all configuration information.
Caution
1. When you modify the label distribution mode, the MP-BGP cancels
all routes advertised in the VPN and advertises the routes again.
2. By default, the VRF-based label distribution mode is adopted. In
this case, a PE first pops out the received packets with labels and
then chooses routes to forward the packets based on the IP routing
table.
2.3.1.6 Configuring Import and Export Policies
for VPN Routes (Optional)
In most situations, you can define the route-target import attribute in the VRF configuration mode
to determine the routes to be imported into the VRF and define the route-target export attribute to
determine the RTs to be carried in the routes. These configurations are valid to all routes. In
certain application scenarios that require accurate control on the import and export of VPN
routes, however, you need to adopt polices. Enter the privilege mode and perform the following
configuration procedure:
Command Function