Apply a Service Set to an Interface
When you have defined and grouped the service rules by configuring the service-set definition, you need to apply services to one or more interfaces installed on the router. To associate a defined service set with an interface, include the
service-setstatement at the [edit interfacesinterface-nameunitlogical-unit-numberfamily inet service (input | output)] hierarchy level:[edit interfacesinterface-nameunitlogical-unit-numberfamily inet service]input {[ service-setservice-set-name<service-filterfilter-name> ];post-service-filterfilter-name;}output {[ service-setservice-set-name<service-filterfilter-name> ];}You can configure different service sets on the input and output sides of the interface. You can optionally include filters associated with each service set to refine the target and additionally process the traffic. If you include the
service-setstatement without aservice-filterdefinition, the router software assumes the match condition is true and selects the service set for processing automatically.You can also include more than one service set definition on each side of the interface. If you include multiple service sets, the router software evaluates them in the order in which they appear in the configuration. It executes the first service set for which it finds a match in the service filter and ignores the subsequent definitions.
An additional statement allows you to specify a filter for processing the traffic after the input service set is executed. To configure this type of filter, include the
post-service-filterstatement at the [edit interfacesinterface-nameunitlogical-unit-numberfamily inet service input] hierarchy level:[edit interfacesinterface-nameunitlogical-unit-numberfamily inet service input]post-service-filterfilter-name;For an example, see Example: Configure Service Sets.