Apply Cost-Type; Apply Extcommunity - H3C MSR 20-20 Command Reference Manual

Msr 20/30/50 series routers
Hide thumbs Also See for MSR 20-20:
Table of Contents

Advertisement

1190
C
78: R
HAPTER
OUTING

apply cost-type

Syntax
View
Parameters
Description
Examples

apply extcommunity

Syntax
View
Parameters
P
C
C
OLICY
OMMON
ONFIGURATION
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match interface serial 2/0
[Sysname-route-policy] apply cost 120
apply cost-type { external | internal | type-1 | type-2 }
undo apply cost-type
Routing policy view
external: IS-IS external route.
internal: IS-IS internal route.
type-1: Type-1 external route of OSPF.
type-2: Type-2 external route of OSPF.
Use the
apply cost-type
Use the
undo apply cost-type
No cost type is set for routing information by default.
# Create routing policy policy1 with node 10, matching mode as permit. If a route
matches tag 8, set the cost type for the route to IS-IS internal route.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match tag 8
[Sysname-route-policy] apply cost-type internal
apply extcommunity { rt route-target }&<1-16> [ additive ]
undo apply extcommunity
Routing policy view
rt route-target: Sets the route target extended community attribute, which is a
string of 3 to 21 characters. route-target has two forms:
16-bit AS number: 32-bit self-defined number, for example, 101:3;
32-bit IP address: 16-bit self-defined number, for example, 192.168.122.15:1.
&<1-16>: Indicates the argument before it can be entered up to 16 times.
C
OMMANDS
command to set a cost type for routing information.
command to remove the clause configuration.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Msr 20-21Msr 30-16Msr 30-20Msr 30-40Msr 30-60Msr 50 ... Show all

Table of Contents