422
7. Allow the local AS number
attribute of routes received
from the peer, and set the
repetitions.
peer
{ group-name | ip-address
[ mask-length ] }
allow-as-loop
[ number ]
By default, BGP discards
incoming route updates that
contain the local AS number.
8. Redistribute
routes advertised by the PE
into BGP.
import-route
protocol [ { process-id |
all-processes
} [
allow-direct
|
med
med-value
|
route-policy
route-policy-name ] * ]
By default, no routes are
redistributed into BGP.
9. (Optional.) Configure
filtering of advertised
routes.
filter-policy
{ acl-number |
prefix-list
prefix-list-name }
export
[ protocol
process-id ]
By default, BGP does not filter
advertised routes.
10. (Optional.) Configure
filtering of received routes.
filter-policy
{ acl-number |
prefix-list
prefix-list-name }
By default, BGP does not filter
received routes.
2. Configure a VPN site:
1. Enter system view.
N/A
2. Enter BGP view.
bgp
as-number N/A
3. Configure the MCE as an
EBGP peer.
peer
{ group-name | ip-address
[ mask-length ] }
as-number
as-number
N/A
4. Enter BGP-VPN IPv4 unicast
address family view.
address-family ipv4
[
unicast
]
N/A
5. E
IPv4 unicast routes with the
peer.
peer
{ group-name | ip-address
[ mask-length ] }
enable
exchange IPv4 unicast routes with
any peer.
6.
Redistribute the IGP routes
of the VPN into BGP.
import-route
protocol
[ { process-id |
all-processes
}
[
allow-direct
|
med
med-value
|
route-policy
route-policy-name ]
* ]
By
redistributed into BGP.
A VPN site must advertise the
VPN network addresses it can
reach to the connected MCE.
Configuring IBGP between MCE and VPN site
To run IBGP between an MCE and a VPN site, you must configure a BGP peer for each VPN
instance on the MCE, and redistribute the IGP routes of each VPN instance on the VPN site.
1. Configure the MCE:
1. Enter system view.
system-view
N/A
2. Enter BGP view.
bgp
as-number N/A
3. Enter BGP-VPN instance
view.
ip vpn-instance
vpn-instance-name
N/A
4. Configure an IBGP peer.
peer
{ group-name | ip-address
[ mask-length ] }
as-number
as-number
N/A
5. Enter BGP-VPN IPv4 unicast
address-family ipv4
[
unicast
]
N/A