beautypg.com

H3C Technologies H3C S7500E Series Switches User Manual

Page 261

background image

6-36

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 system metric

default med

med-value

Optional

0 by default

Specify to 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.

Specify to filter received routes

filter-policy

{ acl-number |

ip-prefix ip-prefix-name

} import

Optional

By default, BGP does not filter

received routes.

Specify to 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.

Specify to 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.

Specify to advertise all default

routes of 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.