set firewall family inet filter mf-classifier term Premium-data then forwarding-class
Premium-data
set firewall family inet filter mf-classifier term accept-all-else then accept
Device R2
set interfaces ge-1/0/2 description to-R1
set interfaces ge-1/0/2 unit 0 family inet address 10.30.0.2/30
Step-by-Step
Procedure
The following example requires that you navigate various levels in the configuration
hierarchy. For information about navigating the CLI, see
Using the CLI Editor in Configuration
Mode
in the
CLI User Guide
.
To configure Device R1:
1.
Configure the device interfaces.
[edit interfaces]
user@R1#
set ge-1/0/0 description to-host
user@R1#
set ge-1/0/0 unit 0 family inet address 172.16.50.2/30
user@R1#
set ge-1/0/2 description to-R2
user@R1#
set ge-1/0/2 unit 0 family inet address 10.30.0.1/30
2.
Configure the custom forwarding classes and associated queue numbers.
[edit class-of-service forwarding-classes]
user@R1#
set BE-data queue-num 0
user@R1#
set Premium-data queue-num 1
user@R1#
set Voice queue-num 2
user@R1#
set NC queue-num 3
3.
Configure the firewall filter term that places TCP traffic with a source port of 80
(HTTP traffic) into the BE-data forwarding class, associated with queue 0.
[edit firewall family inet filter mf-classifier]
user@R1#
set term BE-data from protocol tcp
user@R1#
set term BE-data from port 80
user@R1#
set term BE-data then forwarding-class BE-data
4.
Configure the firewall filter term that places TCP traffic with a source port of 12345
into the Premium-data forwarding class, associated with queue 1.
[edit firewall family inet filter mf-classifier]
user@R1#
set term Premium-data from protocol tcp
user@R1#
set term Premium-data from port 12345
user@R1#
set term Premium-data then forwarding-class Premium-data
5.
At the end of your firewall filter, configure a default term that accepts all other
traffic.
Otherwise, all traffic that arrives on the interface and is not explicitly accepted by
the firewall filter is discarded.
[edit firewall family inet filter mf-classifier]
user@R1#
set term accept-all-else then accept
6.
Apply the firewall filter to the ge-1/0/0 interface as an input filter.
[edit interfaces]
user@R1#
set ge-1/0/0 unit 0 family inet filter input mf-classifier
Copyright © 2016, Juniper Networks, Inc.
130
Traffic Policers Feature Guide for EX9200 Switches
Содержание EX9200 Series
Страница 8: ...Copyright 2016 Juniper Networks Inc viii Traffic Policers Feature Guide for EX9200 Switches ...
Страница 10: ...Copyright 2016 Juniper Networks Inc x Traffic Policers Feature Guide for EX9200 Switches ...
Страница 12: ...Copyright 2016 Juniper Networks Inc xii Traffic Policers Feature Guide for EX9200 Switches ...
Страница 20: ...Copyright 2016 Juniper Networks Inc 2 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 32: ...Copyright 2016 Juniper Networks Inc 14 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 34: ...Copyright 2016 Juniper Networks Inc 16 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 42: ...Copyright 2016 Juniper Networks Inc 24 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 54: ...Copyright 2016 Juniper Networks Inc 36 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 56: ...Copyright 2016 Juniper Networks Inc 38 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 72: ...Copyright 2016 Juniper Networks Inc 54 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 132: ...Copyright 2016 Juniper Networks Inc 114 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 152: ...Copyright 2016 Juniper Networks Inc 134 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 162: ...Copyright 2016 Juniper Networks Inc 144 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 178: ...Copyright 2016 Juniper Networks Inc 160 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 186: ...Copyright 2016 Juniper Networks Inc 168 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 188: ...Copyright 2016 Juniper Networks Inc 170 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 202: ...Copyright 2016 Juniper Networks Inc 184 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 212: ...Copyright 2016 Juniper Networks Inc 194 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 214: ...Copyright 2016 Juniper Networks Inc 196 Traffic Policers Feature Guide for EX9200 Switches ...
Страница 278: ...Copyright 2016 Juniper Networks Inc 260 Traffic Policers Feature Guide for EX9200 Switches ...