Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

インターフェイス範囲の設定

インターフェイス範囲を設定するには、 階層レベルで ステートメントを使用します。interface-range[edit interfaces] ステートメントは、 その定義に物理ネットワークインターフェイス名のみを受け入れます。interface-range Junos OSは、次のインターフェイスタイプのインターフェイス範囲をサポートしています。

  • Atm: at-fpc/pic/port

  • チャネル化: (coc | cstm)n-fpc/pic/port

  • Dpc: xe-fpc/pic/port

  • E1/E3: (e1 | e3)-fpc/pic/port

  • イーサネット: (xe | ge | fe)-fpc/pic/port

  • Isdn: isdn-fpc/pic/port

  • シリアル: se-fpc/pic/port

  • Sonet/SDH: so-fpc/pic/port

  • T1/T3: (t1 | t3)-fpc/pic/port

インターフェイス範囲を設定するには:

  1. 階層レベルで ステートメントを使用します。interface-range[edit interfaces] インターフェイス範囲に選択した名前を含めます。

    たとえば、「range1」という名前のインターフェイス範囲を設定するには:

  2. メンバー範囲を指定するには、 階層レベルで ステートメントを使用します。member-range start-range to end-range[edit interfaces interface-range range-name] たとえば、以下のように表示されます。

  3. 個々のメンバーを指定するには、 階層レベルで ステートメントを使用します。member[edit interfaces interface-range range-name] たとえば、以下のように表示されます。
  4. ステートメントで 正規表現を使用して、インターフェイス範囲メンバーのリストを指定できます。member range of interface names メンバーステートメントの範囲には、次のものを含めることができます。
    • *—すべて。0 から 47 までの順次インターフェースを指定します。

      注意:

      メンバー ステートメントのワイルドカード では、特定のインターフェイス タイプでサポートされているインターフェイス番号は考慮されません。* インターフェイスのタイプに関係なく、 インターフェイスグループに0〜47の範囲のインターフェイス番号を含めます。* そのため、 メンバー ステートメントでの使用には注意が必要です。*

    • num—番号。1 つの特定のインターフェイスをその番号で指定します。

    • [low-high]- 低いものから高いものまでの数字。シーケンシャル インターフェイスの範囲を指定します。

    • - 数字 、 、および複数の特定のインターフェイスを指定します。[num1, num2, num3]num1num2num3

    正規表現とワイルドカードは、インターフェイスタイプのプレフィックスではサポートされていません。たとえば、プレフィックス および は明示的に指定する必要があります。etxe

    たとえば、以下のように表示されます。

定義には、定義内に および ステートメントの両方を含めることができます。interface-rangemembermember-range 定義内の or ステートメントの数に制限はありません。membermember-rangeinterface-range ただし、定義内には少なくとも 1 つの or ステートメントが存在している必要があります。membermember-rangeinterface-range

または ステートメントのみを含み、共通の設定ステートメントを持たない定義は有効です。interface-rangemembermember-range ただし、オプションで、定義の一部として 共通の設定ステートメントをインターフェイス範囲に追加できます。interface-range たとえば、以下のように表示されます。

これらの定義されたインターフェイス範囲は、ノードが存在する場所 の他の設定階層で使用できます。interface たとえば、以下のように表示されます。

上記の例では、ノードは 個々のインターフェイスとインターフェイス範囲の両方を受け入れることができます。interface

ヒント:

拡張された設定でインターフェイス範囲を表示するには、 コマンドを使用します 。(show | display inheritance)

サポートされている階層

デフォルトでは、 は、 ステートメントが 利用可能なCLIで設定するために使用できません。interface-rangeinterface 次の場所がサポートされています。ただし、このリストに表示される階層の一部は製品固有です。

  • ethernet-switching-options analyzer name input [egress | ingress ] interface

  • ethernet-switching-options analyzer name output interface

  • ethernet-switching-options bpdu-block interface

  • ethernet-switching-options interfaces ethernet-switching-options voip interface

  • ethernet-switching-options redundant-trunk-group group g1 interface

  • ethernet-switching-options secure-access-port interface

  • poe interface vlans pro-bng-mc1-bsd1 interface

  • protocols dot1x authentication interface

  • protocols dvmrp interface

  • protocols esis interface

  • protocols gvrp interface

  • protocols igmp interface

  • protocols igmp-snooping vlan name interface

  • protocols igmp-host client num interface

  • protocols isis interface

  • protocols layer2-control bpdu-block interface

  • protocols layer2-control mac-rewrite interface

  • protocols ldp interface

  • protocols link-management peer control-channel

  • protocols link-management peer lmp-control-channel interface

  • protocols link-management te-link name interface

  • protocols lldp interface

  • protocols lldp-med interface

  • protocols mld interface

  • protocols mld-host client num interface

  • protocols mpls interface

  • protocols mstp interface

  • protocols mstp msti id interface

  • protocols mstp msti vlan id interface

  • protocols oam ethernet link-fault-management interface

  • protocols oam ethernet lmi interface

  • protocols ospf area id interface

  • protocols pim interface

  • protocols rip group name neighbour

  • protocols ripng group name neighbour

  • protocols router-advertisement interface

  • protocols router-discovery interface

  • protocols rstp interface

  • protocols rsvp interface

  • protocols sflow interfaces

  • protocols snmp interface

  • protocols stp interface

  • protocols vstp interface

  • protocols vstp vlan name interface