H3C Technologies H3C SR8800 User Manual

Page 416

Advertising
background image

400

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter routing policy view.

route-policy route-policy-name
{ deny | permit } node node-number Not created by default.

3.

Set the AS-PATH attribute for
BGP routing information.

apply as-path as-number&<1-10>
[ replace ]

Optional.
Not set by default.

4.

Delete the community attribute

of BGP routing information
using the community list.

apply comm-list { comm-list-number
| comm-list-name } delete

Optional.
Not configured by default.

5.

Set the community attribute for

BGP routing information.

apply community { none | additive
| { community-number&<1-16> |

aa:nn&<1-16> | internet |

no-advertise | no-export |

no-export-subconfed } *
[ additive ] }

Optional.
Not set by default.

6.

Set a cost for routing

information.

apply cost [ + | - ] value

Optional.
Not set by default.

7.

Set a cost type for routing
information.

apply cost-type [ external | internal
| type-1 | type-2 ]

Optional.
Not set by default.

8.

Set the extended community
attribute for BGP routing.

apply extcommunity { rt
{ as-number:nn |

ip-address:nn } }&<1-16>
[ additive ]

Optional
Not set by default.

9.

Set the next hop.

Set the next hop for IPv4 routes:
apply ip-address next-hop

ip-address

Set the next hop for IPv6 routes:

apply ipv6 next-hop

ipv6-address

Optional.
Not set by default.
The setting does not apply to
redistributed routing information.

10.

Inject routing information to a
specified ISIS level.

apply isis { level-1 | level-1-2 |
level-2 }

Optional.
Not configured by default.

11.

Set the local preference for
BGP routing information.

apply local-preference preference

Optional.
Not set by default.

12.

Set MPLS label.

apply mpls-label

Optional.
Not set by default.

13.

Set the origin attribute for BGP
routing information.

apply origin { egp as-number | igp
| incomplete }

Optional
Not set by default.

14.

Set the preference for the
routing protocol.

apply preference preference

Optional.
Not set by default.

15.

Set a preferred value for BGP

routing information.

apply preferred-value
preferred-value

Optional.
Not set by default.

Advertising