R21xx-HP FlexFabric 11900 MPLS Configuration Guide

113
Ste
p
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 a
BGP peer.
peer { group-name | ip-address }
as-number as-number
By default, no BGP peer is created.
4. Specify the source interface
for route updates.
peer { group-name | ip-address }
connect-interface interface-type
interface-number
By default, BGP uses the egress
interface of the optimal route
destined for the peer as the source
interface.
5. Enter BGP-VPNv4 address
family view.
ipv4-family vpnv4 N/A
6. Enable BGP-VPNv4 route
exchange with the specified
peer.
peer { group-name | ip-address }
enable
By default, BGP does not exchange
BGP-VPNv4 routes with any peer.
Configuring BGP VPNv4 route control
BGP VPNv4 route control is configured similarly with BGP route control, except that it is configured in
BGP-VPNv4 address family view. For detailed information about BGP route control, see Layer 3—IP
Routing Configuration Guide.
To configure BGP VPNv4 route control:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter BGP view.
bgp as-number N/A
3. Enter BGP-VPNv4 address
family view.
ipv4-family vpnv4 N/A
4. Configure filtering of
advertised routes.
filter-policy { acl-number |
prefix-list prefix-list-name } export
[ protocol process-id ]
Optional.
By default, BGP does not filter
advertised routes.
5. Configure filtering of received
routes.
filter-policy { acl-number |
prefix-list prefix-list-name } import
Optional.
By default, BGP does not filter
received routes.
6. 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.
7. Allow the local AS number to
appear in the AS_PATH
attribute of routes received
from the peer, and set the
maximum number of
repetitions.
peer { group-name | ip-address }
allow-as-loop [ number ]
By default, BGP discards route
updates that contain the local AS
number.
8. Filter routes received from or
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.