beautypg.com

H3C Technologies H3C S10500 Series Switches User Manual

Page 265

background image

254

NOTE:

For information about BGP-L2VPN address family and VPLS address family, see

MPLS Command

Reference.

Configuring specific routing features for BGP-VPNv4 subaddress family

Follow these steps to configure specific routing features for BGP-VPNv4 subaddress family:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter BGP view

bgp as-number

Configure the remote PE as the
peer

peer ip-address as-number
as-number

Required

Specify the interface for TCP
connection

peer ip-address connect-interface
interface-type interface-number

Required

Enter BGP-VPNv4 subaddress
family view

ipv4-family vpnv4

Set the default value of the local
preference

default local-preference value

Optional
100 by default

Set the default value for the system
MED

default med med-value

Optional
By default, the default value of the

system MED is 0.

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.

Filter received routes

filter-policy { acl-number |

ip-prefix ip-prefix-name } import

Optional
By default, BGP does not filter

received routes.

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.

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.

Advertise a default route destined
for a VPN instance 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.

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.

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.