14
system-view
2.
Enter BGP instance view.
bgp
as-number
[
instance
instance-name
]
By default, BGP is not enabled.
3.
Enter BGP-VPN instance view.
ip vpn-instance
vpn-instance-name
4.
Configure the PE as an IBGP peer.
peer
{
group-name
|
ipv4-address
[
mask-length
]
}
as-number
as-number
5.
Enter BGP-VPN IPv4 unicast address family view.
address-family ipv4
[
unicast
]
6.
Enable BGP to exchange IPv4 unicast routes with the specified peer.
peer
{
group-name
|
ipv4-address
[
mask-length
]
}
enable
By default, BGP does not exchange IPv4 unicast routes with peers.
7.
Redistribute the VPN routes of the VPN site.
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.
Display and maintenance commands for MCE
Execute
display
commands in any view.
Task
Command
Display VPN instance information.
display ip vpn-instance
[
instance-name
vpn-instance-name
]
For commands that display routing tables for VPN instances, see
Layer 3—IP Routing Command
Reference
.
MCE configuration examples
Example: Configuring the MCE that uses OSPF to advertise
VPN routes to the PE
Network configuration
, VPN 2 runs OSPF. The edge devices of VPN 1 and VPN 2 are VR 1 and VR 2,
respectively. Configure the MCE device to separate routes from different VPNs and to advertise the
VPN routes to PE 1 through OSPF.