517
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP instance view.
bgp
as-number
[
instance
instance-name
]
By default, BGP is not enabled.
3.
Configure the MCE as an
EBGP peer.
peer
{
group-name
|
ipv4-address
[
mask-length
] }
as-number
as-number
By default, no BGP peers or
peer groups exist.
4.
Enter BGP-VPN IPv4
unicast address family
view.
address-family ipv4
[
unicast
]
N/A
5.
Enable BGP to exchange
IPv4 unicast routes with the
peer.
peer
{
group-name
|
ipv4-address
[
mask-length
] }
enable
By default, BGP does not
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 default, no routes are
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:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
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
N/A
4.
Configure an IBGP peer.
peer
{
group-name
|
ipv4-address
[
mask-length
] }
as-number
as-number
By default, no BGP peers or
peer groups exist.
5.
Enter BGP-VPN IPv4
unicast address family
view.
address-family ipv4
[
unicast
]
N/A
6.
Enable BGP to exchange
IPv4 unicast routes with the
peer.
peer
{
group-name
|
ipv4-address
[
mask-length
] }
enable
By default, BGP does not
exchange IPv4 unicast routes
with any peer.
7.
(Optional.) Configure the
system to be the RR, and
specify the peer as the
client of the RR.
peer
{
group-name
|
ipv4-address
[
mask-length
] }
reflect-client
By default, no RR or RR client is
configured.
After you configure a VPN site
as an IBGP peer, the MCE does
not advertise the BGP routes
learned from the VPN site to
other IBGP peers, including
VPNv4 peers. The MCE
advertises routes learned from a
VPN site only when you
configure the VPN site as a
client of the RR (the MCE).