[Contents] [Prev] [Next] [Index] [Report an Error]

Examples: Applying MPLS EXP Classifiers to Routing Instances

Configure a global classifier for all routing instances and override the global classifier for a specific routing instance. In this example, there are three routing instances: vpn1, vpn2, and vpn3, each with VRF table label enabled. The classifier exp-classifier-global is applied to vpn1 and vpn2 (that is, all but vpn3, which is listed separately). The classifier exp-classifier-3 is applied to vpn3.

Configuring a Global Classifier

[edit routing-instances]
vpn1 {
vrf-table-label;
}
vpn2 {
vrf-table-label;
}
vpn3 {
vrf-table-label;
}
 
[edit class-of-service routing-instances]
all {
classifiers {
exp exp-classifier-global;
}
}
vpn3 {
classifiers {
exp exp-classifier-3;
}
}

Configure a wildcard routing instance and override the wildcard with a specific routing instance. In this example, there are three routing instances: vpn-red, vpn-yellow, and vpn-green, each with VRF table label enabled. The classifier exp-class-wildcard is applied to vpn-yellow and vpn-green. The classifier exp-class-red is applied to vpn-red.

Configuring a Wildcard Routing Instance

[edit routing-instances]
vpn-red {
vrf-table-label;
}
vpn-yellow {
vrf-table-label;
}
vpn-green {
vrf-table-label;
}
 
[edit class-of-service routing-instances]
vpn* {
classifiers {
exp exp-class-wildcard;
}
}
vpn-red {
classifiers {
exp exp-class-red;
}
}

Display the MPLS EXP classifiers associated with two routing instances:

Monitoring a Configuration

[edit class-of-service routing-instances]
vpn1 {
classifiers {
exp default;
}
}
vpn2 {
classifiers {
exp class2;
}
}

user@host> show class-of-service routing-instances
  Routing Instance : vpn1
    Object            Name                   Type                    Index
    Classifier        exp-default            exp                         8
 
  Routing Instance : vpn2
    Object            Name                   Type                    Index
    Classifier        class2                 exp                     57507

[Contents] [Prev] [Next] [Index] [Report an Error]