244
Configuring eBGP between MCE and PE
To configure eBGP between MCE and PE:
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 the PE as the eBGP
peer
peer
{
group-name
|
ip-address
}
[
as-number
as-number
]
Required
Redistribute the VPN routes of
the VPN site
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.
NOTE:
BGP runs within a VPN in the same way as it runs within a public network. For more information about
BGP, see
Layer 3—IP Routing Configuration Guide.
Configuring iBGP between MCE and PE
To configure iBGP between MCE and PE:
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 the PE as the iBGP
peer
peer
{
group-name
|
ip-address
}
[
as-number
as-number
]
Required
Redistribute the VPN routes of
the VPN site
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.