240
After you configure a BGP VPN instance, the BGP route exchange for the VPN instance is the same with
the normal BGP VPN route exchange. For more information about BGP, see
Layer 3—IP Routing
Configuration Guide
.
2.
Configure a VPN site
To configure the VPN site:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter BGP view
bgp
as-number
—
Configure the MCE as the eBGP
peer
peer
{
group-name
|
ip-address
}
[
as-number
as-number
]
Required
Redistribute the IGP routes of the
VPN
import-route
protocol
[
process-id
]
[
med
med-value
|
route-policy
route-policy-name
] *
Optional
A VPN site must advertise the VPN
network addresses it can reach to
the connected MCE.
Configuring iBGP beween MCE and VPN site
If iBGP is used for exchanging routing information between an MCE and VPN sites, you must configure
a BGP peer for each VPN instance respectively, and redistribute the IGP routes of each VPN instance on
the VPN sites.
1.
Configure the MCE
To configure the MCE:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter BGP view
bgp
as-number
—
Enter BGP-VPN instance view
ipv4-family vpn-instance
vpn-instance-name
Required
Configure an iBGP peer
peer
{
group-name
|
ip-address
}
[
as-number
as-number
]
Required
Configure the system to be the RR
and specify the peer as the client of
the RR
peer
{
group-name
|
ip-address
}
reflect-client
Optional
By default, no RR or RR client is
configured.
Redistribute remote site routes
advertised by the PE
import-route
protocol
[
process-id
|
all-processes
] [
med
med-value
|
route-policy
route-policy-name
] *
Required
By default, no route redistribution
is configured.
Configure a filtering policy to filter
the routes to be advertised
filter-policy
{
acl-number
|
ip-prefix
ip-prefix-name
}
export
[
direct
|
isis
process-id
|
ospf
process-id
|
rip
process-id
|
static
]
Optional
By default, BGP does not filter the
routes to be advertised.
Configure a filtering policy to filter
the received routes
filter-policy
{
acl-number
|
ip-prefix
ip-prefix-name
}
import
Optional
By default, BGP does not filter the
received routes.