サービスの改善にご協力お願いします。

お客様のご意見をお聞かせください。

アンケートの所要時間はおよそ 2 分です。

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
keyboard_arrow_right

この機械翻訳はお役に立ちましたでしょうか?

starstarstarstarstar
Go to English page
免責事項:

このページは、サードパーティー製機械翻訳ソフトウェアを使用して翻訳されます。質の高い翻訳を提供するために合理的な対応はされていますが、ジュニパーネットワークスがその正確性を保証することはできかねます。この翻訳に含まれる情報の正確性について疑問が生じた場合は、英語版を参照してください. ダウンロード可能なPDF (英語版のみ).

例:2 色ポリサーとプレフィックス リストの使用

date_range 19-Jan-25

内部または外部の顧客に特定の量の帯域幅を提供する場合、ポリシングを使用して、顧客が必要な帯域幅よりも多くの帯域幅を消費しないようにすることができます。例えば、多くの顧客を1つの10Gbpsインターフェイスに接続していて、割り当てられた帯域幅以上の帯域幅を使用して、どの顧客もインターフェイスを輻輳させないようにしたい場合があります。

これは、顧客ごとに次のような2色のポリサーを作成することで実現できます。

content_copy zoom_out_map
firewall {
    policer Limit-Customer-1 {
        if-exceeding {
            bandwidth-limit 100m;
            burst-size-limit 150m;
        }
        then discard;
    }

ただし、顧客ごとにポリサーを作成することは、明らかにスケーラブルなソリューションではありません。別の方法として、顧客のクラスをグループ化するプレフィックスリストを作成し、プレフィックスリストごとにポリサーを作成することもできます。例えば、([edit policy-options]階層レベルで)Class-A-Customer-PrefixesClass-B-Customer-PrefixesClass-C-Customer-Prefixesなどのプレフィックスリストを作成し、以下の対応するポリサーを作成することができます。

content_copy zoom_out_map
firewall {
    policer Class-A {
        if-exceeding {
            bandwidth-limit 100m;
            burst-size-limit 150m;
        }
        then discard;
    }
    policer Class-B {
        if-exceeding {
            bandwidth-limit 75m;
            burst-size-limit 100m;
        }
        then discard;
    }
    policer Class-C {
        if-exceeding {
            bandwidth-limit 50m;
            burst-size-limit 75m;
        }
        then discard;
    }
}

fromステートメントでプレフィックスリストを指定し、thenステートメントで対応するポリサーを指定するフィルター条件を、以下のように作成する必要があります。

content_copy zoom_out_map
firewall
    family inet {
        filter Class-A-Customers {
            term term-1 {
                from {
                    destination-prefix-list {
                        Class-A-Customer-Prefixes;
                    }
                }
                then policer Class-A;
            }
        }
        filter Class-B-Customers {
            term term-1 {
                from {
                    destination-prefix-list {
                        Class-B-Customer-Prefixes;
                    }
                }
                then policer Class-B;
            }
        }
        filter Class-C-Customers {
            term term-1 {
                from {
                    destination-prefix-list {
                        Class-C-Customer-Prefixes;
                    }
                }
                then policer Class-C;
            }
        }
    }

このファイアウォール構成を作成する手順は次のとおりです。

  1. 最初のポリサーを作成します。

    content_copy zoom_out_map
    [edit firewall]
    user@switch# set policer Class-A if-exceeding bandwidth-limit 100m burst-size-limit 150m
    user@switch# set policer Class-A then discard
  2. 2 番目のポリサーを作成します。

    content_copy zoom_out_map
    [edit firewall]
    user@switch# set policer Class-B if-exceeding bandwidth-limit 75m burst-size-limit 100m
    user@switch# set policer Class-B then discard
  3. 3 番目のポリサーを作成します。

    content_copy zoom_out_map
    [edit firewall]
    user@switch# set policer Class-C if-exceeding bandwidth-limit 50m burst-size-limit 75m
    user@switch# set policer Class-C then discard
  4. クラス A の顧客用のフィルターを作成します。

    content_copy zoom_out_map
    [edit firewall]
    user@switch# edit family inet filter Class-A-Customers
    
  5. Class-A-Customer-Prefixesプレフィックスリストに一致するパケットをClass-Aポリサーに送信するようにフィルターを構成します。

    content_copy zoom_out_map
    [edit firewall family inet filter Class-A-Customers]
    user@switch# set term term-1 from source-prefix-list Class-A-Customers
    user@switch# set term term-1 then policer Class-A
  6. クラス B の顧客向けのフィルターを作成します。

    content_copy zoom_out_map
    [edit firewall]
    user@switch# edit family inet filter Class-B-Customers
  7. Class-B-Customer-Prefixesプレフィックスリストに一致するパケットをClass-Bポリサーに送信するようにフィルターを構成します。

    content_copy zoom_out_map
    [edit firewall family inet filter Class-B-Customers]
    user@switch# set term term-1 from source-prefix-list Class-B-Customers
    user@switch# set term term-1 then policer Class-B
  8. クラス C のお客様向けのフィルターを作成します。

    content_copy zoom_out_map
    [edit firewall]
    user@switch# edit family inet filter Class-C-Customers
  9. Class-C-Customer-Prefixesプレフィックスリストに一致するパケットをClass-Cポリサーに送信するようにフィルターを構成します。

    content_copy zoom_out_map
    [edit firewall family inet filter Class-C-Customers]
    user@switch# set term term-1 from source-prefix-list Class-C-Customers
    user@switch# set term term-1 then policer Class-C
  10. 作成したフィルターを出力方向の適切なインターフェイスに適用します。

注:

このフィルターの暗黙的な拒否ステートメントは、プレフィックスリストのいずれにも一致しない送信元からのトラフィックをブロックすることに注意してください。フィルターでこのトラフィックを許可する場合は、この目的のために明示的な条件を含める必要があります。

footer-navigation