Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

OpenConfig インターフェイス コマンドから Junos 設定へのマッピング

メモ:

ジュニパーネットワークスのMXシリーズ、PTXシリーズ、QFXシリーズでサポートされているデータモデルのバージョンとJunos OSリリースについては、 OpenConfigデータモデルのバージョン のトピックを参照してください。

以下の表は、OpenConfig インターフェイス コマンドの Junos の関連設定へのマッピングを示しています。

  • 表1:イーサネット構成
  • 表 2: GRE トンネル インターフェイスの設定
  • 表 3: IPv4 および IPV6 アドレスの設定
  • 表 4: インターフェイス AE の設定
  • 表 5: IFD の設定
  • 表 6: IFL コンフィギュレーション
  • 表 7: LACP の設定
  • 表 8: メンバー インターフェイスの構成
  • 表 9: 光トランスポートの設定
  • 表 10: P4ランタイム (P4RT) の設定
  • 表 11: プロキシ ARP の設定
  • 表 12: VRRP の設定
表1:イーサネット構成

コマンド名

OpenConfig コマンド パス

Junos の設定

自動ネゴシエーション

/ethernet/config/auto-negotiate

set interfaces interface gigether-options auto-negotiation/no-auto-negotiation

MAC アドレス

/ethernet/config/mac-address

set interfaces interface mac

デュプレックスモード

/ethernet/config/duplex-mode

set interfaces interface link-mode

ポートスピード

/ethernet/config/port-speed

set interface interface speed

フロー制御

/ethernet/config/enable-flow-control

set interface interface gigether-options flow-control

表 2: GRE トンネル インターフェイスの設定

コマンド名

OpenConfigの構成

Junos の設定

ソース

openconfig-interfaces {
    interfaces {
         interface[name] {
             subinterfaces {
                subinterface[index] {
                    jnx-aug-openconfig-if-tunnel:tunnel {
                        config {
                            src <>;
                        }
                    }
                }
             }  
         }
    }
}
interfaces {
    gr-<> {
        unit <> {
            tunnel {
                source <>;
            }
        }
    }
}

拡張されたOpenConfigトンネル src ノード値は、Junosパラメータにマッピングされます source

openconfig-interfaces {
    interfaces {
         interface[name] {
             subinterfaces {
                subinterface[index] {
                    jnx-aug-openconfig-if-tunnel:tunnel {
                        config {
                            dst <>;
                        }
                    }
                }
             }  
         }
    }
}
interfaces {
    gr-<> {
        unit <> {
            tunnel {
                destination <>;
            }
        }
    }
}

拡張されたOpenConfigトンネル dst ノード値は、Junosパラメータにマッピングされます destination

Ttl

openconfig-interfaces {
    interfaces {
         interface[name] {
             subinterfaces {
                subinterface[index] {
                    jnx-aug-openconfig-if-tunnel:tunnel {
                        config {
                            ttl <>;
                        }
                    }
                }
             }  
         }
    }
}
interfaces {
    gr-<> {
        unit <> {
            tunnel {
                ttl <>;
            }
        }
    }
}

拡張されたOpenConfigトンネル ttl ノード値は、Junosパラメータにマッピングされます ttl

キー

openconfig-interfaces {
    interfaces {
         interface[name] {
             subinterfaces {
                subinterface[index] {
                    jnx-aug-openconfig-if-tunnel:tunnel {
                        config {
                            gre-key <>;
                        }
                    }
                }
             }  
         }
    }
}
interfaces {
    gr-<> {
        unit <> {
            tunnel {
                key <>;
            }
        }
    }
}

拡張されたOpenConfigトンネル gre-key ノード値は、Junosパラメータにマッピングされます key

表 3: IPv4 および IPv6 アドレスの設定

コマンド名

OpenConfig コマンド パス

Junos の設定

構成アドレス

ipv4/addresses/address/ip

ipv4/addresses/address/prefix-length

set interfaces interface-name unit unit-number family inet address address

set interfaces interface-name unit unit-number family inet6 address address

ネイバーアドレス

ipv4/neighbors/neighbor/ip

ipv6/neighbors/neighbor/ip

set interfaces interface-name unit unit-number family inet address address arp address

set interfaces interface-name unit unit-number family inet6 address address ndp address

リンク層アドレス

ip4/neighbors/neighbor/ip/link-layer-address

ip6/neighbors/neighbor/ip/link-layer-address

set interfaces interface-name unit unit-number family inet address address arp address mac address

set interfaces interface-name unit unit-number family inet6 address address ndp address mac address

重複アドレスの検出のために送信する近隣要請メッセージ

dup-addr-detect-transmits 0

openconfig-interfaces:interfaces {
    interface <interface_name> {
        subinterfaces {
            subinterface <unit> {
                openconfig-if-ip:ipv6 {
                    config {
                        dup-addr-detect-transmits 0;
                    }
                }
            }
        }
    }
}
interfaces {
    <interface_name> {
        unit <unit> {
            family inet6 {
                dad-disable;
            }
        }
    }
} 

重複アドレスの検出のために送信する近隣要請メッセージ

dup-addr-detect-transmits <non_zero_value>

openconfig-interfaces:interfaces {
    interface <interface_name>{
        subinterfaces {
            subinterface <unit> {
                openconfig-if-ip:ipv6 {
                    config {
                        dup-addr-detect-transmits <non_zero_value>;
                    }
                }
            }
        }
    }
}
system {
    internet-options {
        ipv6-duplicate-addr-detection-transmits <non_zero_value>;
    }
}
interfaces {
    <interface_name> {
        unit <unit> {
            family inet6 {
                no-dad-disable;
            }
        }
    }
}
メモ:

Junos OS の階層の下に interfaces は、重複アドレスの検出のために送信する近隣要請メッセージの数をマッピングする同等の設定はありません。したがって、これは階層のパラメーター ipv6-duplicate-addr-detection-transmits にマップされます system 。スタンザに OpenConfig dup-addr-detect-transmits のインスタンスが interfaces 複数存在する場合、Junos OS パラメーターはその中で設定された最大値を取ります。

表 4: インターフェイス AE の設定

コマンド名

OpenConfig コマンド パス

Junos の設定

LAG タイプ

/aggregation/config/lag-type/lacp

/aggregation/config/lag-type/static

set interfaces ae-name aggregated-ether-options lacp

最小リンク数

/aggregation/config/min-links

set interfaces ae-name aggregated-ether-options minimum-links

表 5: IFD の設定

コマンド名

OpenConfig コマンド パス

Junos の設定

インターフェイスタイプ

/interfaces/interface/config/type

サポートされていません。

型はインターフェイス名から派生します。

インターフェイスMTU

/interfaces/interface/config/mtu

set interface interface mtu

インターフェース名

/interfaces/interface/config/name

set interface interface

インターフェイスの説明

/interfaces/interface/config/description

set interface interface description

インターフェイスの有効/無効

/interfaces/interface/config/enabled

set interface interface disabled

set interface interface enabled

ホールドタイムアップ

/interfaces/interface/config/hold-time/config/up

set interface interface hold-time up

ホールドタイムダウン

/interfaces/interface/config/hold-time/config/down

set interface interface hold-time down

VLAN タグ プロトコル識別子(TPID)

openconfig-interfaces:interfaces {
    interfaces <interface_name> {
        config {
            openconfig-vlan:tpid <tpid>;
        }
    }
}
interfaces {
    <interface_name> {
        gigether-options {
            ethernet-switch-profile {
                tag-protocol-id <tpid>;
            }
        }
    }
}
表 6: IFL コンフィギュレーション

コマンド名

OpenConfig コマンド パス

Junos の設定

ユニット名

/interfaces/interface/subinterfaces/subinterface/config/index

set interfaces interface unit unit

番号なしアドレス

/interfaces/interface/config/subinterfaces/subinterface/config/unnumbered

set interfaces interface unit unit family family unnumbered-address source ifl

ユニットの説明

/interfaces/interface/subinterfaces/subinterface/config/description

set interfaces interface unit unit description

ユニットの有効/無効

/interfaces/interface/subinterfaces/subinterface/config/enabled

set interfaces interface unit unit enabled

set interfaces interface unit unit disabled

インターフェイスエイリアス

/interfaces/interface/subinterfaces/subinterface/config/name

set interfaces interface alias

表 7: LACP の設定

コマンド名

OpenConfig コマンド パス

Junos の設定

LACP 間隔

/lacp/interfaces/interface/config/interval

set interfaces ae-name aggregated-ether-options lacp periodic fast

set interfaces ae-name aggregated-ether-options lacp periodic slow

LACP モード

/lacp/interfaces/interface/config/lacp-mode

set interfaces ae-name aggregated-ether-options lacp active

set interfaces ae-name aggregated-ether-options lacp passive

システム ID

/lacp/interfaces/interface/config/system-id-mac

set interfaces ae-name aggregated-ether-options lacp system-id address

システム優先度

/lacp/interfaces/interface/config/system-priority

set interfaces ae-name aggregated-ether-options lacp system-priority system-priority

イーサネット オプション

/lacp/interfaces/interface/members/member

set interface interface gigether-options 802.3ad

set interface interface fastether-options 802.3ad

set interface interface ether-options 802.3ad

表 8: メンバー インターフェイスの構成

コマンド名

OpenConfig コマンド パス

Junos の設定

集約 ID

/interface/aggregate-id

set interface interface gigether-options 802.3ad aggregate-id

set interface interface fastether-options 802.3ad aggregate-id

set interface interface ether-options 802.3ad aggregate-id

表 9: 光トランスポートの設定

コマンド名

OpenConfigの構成

Junos の設定

周波数

openconfig-platform:components {  
   component <> { 
       openconfig-terminal-device:optical-channel { 
           config { 
               frequency <>;
           } 
       } 
   } 
}  
interfaces <> { 
   optics-options { 
       wavelength <>;
   }
}   

周波数から波長を計算する式、またはその逆は、C =真空中の光速(299792458 m / s)です C = (wavelength x frequency)

表 10: P4ランタイム (P4RT) の設定

コマンド名

OpenConfigの構成

Junos の設定

Id

openconfig-interfaces:interfaces { 
    interface <> {
      config {
           openconfig-p4rt:id <>;
      }
   }
}
interfaces  {
         < >   {
              p4rt {
                  Id <>;
              }
         }
}

Id

openconfig-interfaces:interfaces { 
        interface <> {
               config {
                     type <> {
                           openconfig-if-sdn-ext:forwarding-viable <>;
                     }
                }
         }
}
interfaces  {
         < >   {
             no-forwarding-viable;
         }
}
表 11: プロキシ ARP の設定

コマンド名

OpenConfigの構成

Junos の設定

プロキシーARP

openconfig-interfaces:interfaces {
    interface <> {
        subinterfaces {
            subinterface <> {
                openconfig-if-ip:ipv4 {
                    proxy-arp {
                        config {
                           mode <>;
                        }
                    }
                }
            }
        }
    }
}
interfaces {
    <> {
        unit <> {
            proxy-arp <>;
        }
    }
}

OpenConfig には 3 つの proxy-arp モードがあり、Junos には 2 つのモードがあります。

  • OC マップ先 Junos (native)
  • REMOTE_ONLY マップ先 restricted
  • ALL マップ先 Unrestricted
  • DISABLE 構成済みの proxy-arp 構成を削除します
表 12: VRRP の設定

コマンド名

OpenConfig コマンド パス

Junos の設定

仮想ルーター ID

ifa/vrrp/vrrp-group/config/virtual-router-id

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id

仮想アドレス

ifa/vrrp/vrrp-group/config/virtual-address

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id virtual-address address

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id virtual-inet6-address

VRRP 優先度

ifa/vrrp/vrrp-group/config/priority

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id priority

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id priority

VRRP プリエンプト

ifa/vrrp/vrrp-group/config/preempt

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id preempt

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id preempt

VRRP プリエンプト保留時間

ifa/vrrp/vrrp-group/config/preempt-delay

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id preempt hold-time time

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id preempt hold-time time

データの受け入れ

ifa/vrrp/vrrp-group/config/accept_mode

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id accept-data

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id accept-data

アドバタイズ間隔

ifa/vrrp/vrrp-group/config/advertisement_interval

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id advertise-interval

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id inet6-advertise-interval

トラックインターフェース

ifa/vrrp/vrrp-group/interface-tracking/config/track-interface

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id track interface interface-name

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id track interface interface-name

優先コスト

ifa/vrrp/vrrp-group/interface-tracking/config/priority-decrement

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id track interface interface-name priority-cost cost

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id track interface interface-name priority-cost cost

仮想リンクローカルアドレス

ifa/vrrp/vrrp-group/config/virtual-link-local

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id virtual-link-local-address