260
Configuring specific routing features for BGP-VPNv4 subaddress family
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP view.
bgp
as-number
N/A
3.
Configure the remote PE as
the peer.
peer
ip-address
as-number
as-number
N/A
4.
Specify the interface for TCP
connection.
peer
ip-address
connect-interface
interface-type interface-number
N/A
5.
Enter BGP-VPNv4 subaddress
family view.
ipv4-family vpnv4
N/A
6.
Set the default value of the
local preference.
default local-preference
value
Optional.
100 by default
7.
Set the default value for the
system MED.
default med
med-value
Optional.
By default, the default value of the
system MED is 0.
8.
Filter all or certain types of
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
routes to be advertised.
9.
Filter received routes.
filter-policy
{
acl-number
|
ip-prefix
ip-prefix-name
}
import
Optional.
By default, BGP does not filter
received routes.
10.
Advertise community
attributes to a peer or peer
group.
peer
{
group-name
|
ip-address
}
advertise-community
Optional.
By default, no community attributes
are advertised to any peer or peer
group.
11.
Filter routes received from or
to be advertised to a peer or
peer group based on an
AS_PATH list.
peer
{
group-name
|
ip-address
}
as-path-acl
aspath-filter-number
{
import
|
export
}
Optional.
By default, no AS filtering list is
applied to a peer or peer group.
12.
Advertise a default VPN route
to a peer or peer group.
peer
{
group-name
|
ip-address
}
default-route-advertise
vpn-instance
vpn-instance-name
Optional.
By default, no default route is
advertised to a peer or peer group.
13.
Apply a filtering policy to a
peer or peer group.
peer
{
group-name
|
ip-address
}
filter-policy
acl-number
{
export
|
import
}
Optional.
By default, no filtering policy is
applied to a peer or peer group.
14.
Apply a route filtering policy
based on IP prefix list to a
peer or peer group.
peer
{
group-name
|
ip-address
}
ip-prefix
prefix-name
{
export
|
import
}
Optional.
By default, no route filtering policy
based on IP prefix list is applied to
a peer or peer group.