D-Link DES-7200 Refrigerator User Manual


  Open as PDF
of 1968
 
DES-7200 Configuration Guide Chapter 2 Configuring BGP IP VPN
2-29
rules and then run the neighbor peer-address route-map rmap_name out command in the BGP
IPv4 address family mode to associate the rules with the route map.
In the following example, a route map is created to assign an MPLS label to the route with a
prefix as 1.1.1.1/32, assign a common IPv4 route rather than label to only the route with a prefix
as 1.1.1.2/32, and not to send neighbors routes that fail to match acl1 and acl2.
Router(config)# ip access-list standard acl1
Router(config-std-nacl)# permit host 1.1.1.1
Router(config-std-nacl)# exit
Router(config)# ip access-list standard acl2
Router(config-std-nacl)# permit host 1.1.1.2
Router(config-std-nacl)# exit
Router(config)# route-map out-as permit 10
Router(config-route-map)# match ip address acl1
Router(config-route-map)# set mpls-label
Router(config-std-nacl)# exit
Router(config)# route-map out-as permit 20
Router(config-route-map)# match ip address acl2
Router(config)# router bgp 100
Router(config-router)# neighbor 30.30.30.2 remote-as 100
Router(config-router)# neighbor 30.30.30.2 route-map out-as out
Similarly, to receive only labeled IPv4 routes, you can run the match mpls-label command in the
route map mode. Set route map rules and then run the neighbor peer-address route-map
rmap_name in command to associate the rules with the route map.
In the following example, a route map is created to receive labeled IPv4 routes from only the
BGP peer at 30.30.30.2. The other routes are rejected.
Router(config)# route-map match-mpls
Router(config-route-map)# match mpls-label
Router(config)# router bgp 100
Router(config-router)# neighbor 30.30.30.2 remote-as 100
Router(config-router)# neighbor 30.30.30.2 route-map match-mpls in
Configuring an ASBR to Redistribute Inter-AS PE Routes Learnt from EBGP to the IGP
When an ASBR learn a route to the PE in another AS from the peer ASBR, the ASBR should
inform other PEs in the local AS of the route. The ASBR should also set up an LSP to the PE in
another AS. In this manner, the ASBR can redistribute routes learnt from EBGP to the IGP and at
the same time, enable the LDP to assign labels to BGP routes and then set up an LSP to the PE
in another AS.