1190 CHAPTER 78: ROUTING POLICY COMMON CONFIGURATION COMMANDS

 

<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

 

Syntax

apply cost-type { external internal type-1 type-2 }

 

undo apply cost-type

View

Routing policy view

Parameters

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.

Description

Use the apply cost-typecommand to set a cost type for routing information.

 

Use the undo apply cost-typecommand to remove the clause configuration.

 

No cost type is set for routing information by default.

Examples

# 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

 

Syntax

apply extcommunity { rt route-target}&<1-16> [ additive ]

 

undo apply extcommunity

View

Routing policy view

Parameters

rt route-target: Sets the route target extended community attribute, which is a

 

string of 3 to 21 characters. route-targethas 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.

Page 1190
Image 1190
3Com MSR 30, MSR 50 manual Apply cost-type, Apply extcommunity