OpenConfig ネットワーク インスタンス コマンドから Junos 操作へのマッピング
ジュニパーネットワークスACXシリーズ、EXシリーズ、MXシリーズ、PTXシリーズ、QFXシリーズでサポートされているデータモデルのバージョンとJunos OSリリースについては、 OpenConfigデータモデルのバージョン のトピックを参照してください。
ネットワークインスタンスは、デバイス上の汎用仮想転送テーブルをモデル化します。これにより、仮想ルーティングおよび転送(VRF)インスタンスなどのレイヤー 3 転送構成、または仮想スイッチ インスタンスなどのレイヤー 2 インスタンスがサポートされます。レイヤー 2 とレイヤー 3 の混合インスタンスもサポートされています。
Junos OS Release 17.4R1以降、ネットワークインスタンスベースのBGP設定がサポートされています。ネットワーク インスタンスが設定されると、グローバル bgp、ネイバー bgp などの BGP 設定のオプションが表示されます。
既存のBGPの設定に変更はなく、特定のネットワークインスタンスでBGPを設定することができます。
#mapping-openconfig-network-instance-commands-to-junos-operation__NetworkInstance-1377A821 は、ネットワークインスタンスのリソースパスの一覧です。
設定とJunosコマンドへのマッピングについては、以下を参照してください。
- 表 1: 基本構成
- 表 2: インターフェイスの設定
-
表 3: サブインターフェイスの設定
- 表 4: スタティック ルートの設定
- 表 5: ローカルアグリゲートの設定
- 表 6: インスタンス間ポリシーの構成
- 表 7: ルート制限
| コマンド名 |
OpenConfig Configuration |
Junos の設定 |
|---|---|---|
| 説明 |
network-instances {
network-instance <> {
config {
description;
}
}
}
|
routing-instances <> {
description;
}
|
| 有効 |
network-instances {
network-instance <> {
config {
enabled;
}
}
}
|
routing-instances <>;
メモ:
|
| 名前 |
network-instances {
network-instance <> {
config {
name;
}
}
}
|
routing-instances <>; |
| ルート識別子 |
network-instances {
network-instance <> {
config {
route-distinguisher <>;
}
}
}
|
routing-instances <> {
route-distinguisher <>;
}
|
| ルーター ID |
network-instances {
network-instance <> {
config {
router-id <>;
}
}
}
|
routing-instances <> {
router-options {
router-id <>;
}
}
|
| 型 |
network-instances {
network-instance <> {
config {
type <>;
}
}
}
|
routing-instances <> {
instance-type <>;
}
|
| コマンド名 |
OpenConfig Configuration |
Junos の設定 |
|---|---|---|
| インターフェイス |
network-instances {
network-instance <> {
interfaces {
config {
interface <>;
}
}
}
}
|
routing-instances <> {
interface <>;
}
|
| サブインターフェイス |
network-instances {
network-instance <> {
interfaces {
config {
subinterface <>;
}
}
}
}
|
routing-instances <> {
interface <>;
}
|
| コマンド名 |
OpenConfig Configuration |
Junos の設定 |
|---|---|---|
| 間隔 |
openconfig-interfaces:interfaces {
interface <> {
subinterfaces {
subinterface <> {
oc-ip:ipv6 {
oc-ip:router-advertisement {
oc-ip:config {
oc-ip:interval <>;
}
}
}
}
}
}
}
|
protocols {
router-advertisement {
interface <> {
max-advertisement-interval <>;
}
}
}
|
| 有効 期間 |
openconfig-interfaces:interfaces {
interface <> {
subinterfaces {
subinterface <> {
oc-ip:ipv6 {
oc-ip:router-advertisement {
oc-ip:config {
oc-ip:lifetime <>;
}
}
}
}
}
}
}
|
protocols {
router-advertisement {
interface <> {
default-lifetime <>;
}
}
}
|
| 抑制 |
openconfig-interfaces:interfaces {
interface <> {
subinterfaces {
subinterface <> {
oc-ip:ipv6 {
oc-ip:router-advertisement {
oc-ip:config {
oc-ip:suppress <>;
}
}
}
}
}
}
}
|
protocols {
router-advertisement {
interface <> {
passive-mode <>;
}
}
}
|
| コマンド名 |
OpenConfig Configuration |
Junos の設定 |
|---|---|---|
| 説明 |
openconfig-network-instance:network-instances {
network-instance <> {
protocols {
protocol <> {
static-routes{
static <> {
config {
description <>;
}
}
}
}
}
}
} |
routing-instances <> {
routing-options {
static {
route <> {
description <>
}
}
}
}
|
| プレフィックス |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
config {
prefix <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <>;
}
}
}
|
| タグの設定(スタティックルート) |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
config {
set-tag <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <> {
tag <>;
}
}
}
}
|
| インデックス |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
next-hops {
next-hop <> {
config {
index <>;
}
}
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <> {
next-hop <>;
}
}
}
}
|
| メトリック |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
next-hops {
next-hop <> {
config {
metric <>;
}
}
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <> {
qualified-next-hop <> {
metric <>;
}
}
}
}
}
|
| ネクストホップ |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
next-hops {
next-hop <> {
config {
next-hop <>;
}
}
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <> {
next-hop <>;
}
}
}
}
|
| インターフェイス |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
next-hops {
next-hop <> {
interface-ref {
config {
interface <>;
}
}
}
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <> {
next-hop <>;
}
}
}
}
|
| サブインターフェイス |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
next-hops {
next-hop <> {
interface-ref {
config {
subinterface <>;
}
}
}
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <> {
next-hop <>;
}
}
}
}
|
| Recurse |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
next-hops {
next-hop <> {
config {
recurse;
}
}
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <> {
resolve;
}
}
}
}
|
| 既定のメトリック |
network-instances {
network-instance <> {
protocols {
protocol {
config {
default-metric;
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
defaults {
metric <>;
}
}
}
}
|
| コマンド名 |
OpenConfig Configuration |
Junos の設定 |
|---|---|---|
| 説明 |
openconfig-network-instance:network-instances {
network-instance <> {
protocols {
protocol <> {
local-aggregates{
aggregate <> {
config {
description <>;
}
}
}
}
}
}
} |
routing-instances <> {
routing-options {
aggregate {
route <> {
description <>
}
}
}
}
|
| 破棄 |
network-instances {
network-instance <> {
protocols {
protocol {
local-aggregates {
aggregate {
config {
discard <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
aggregate {
route <> {
discard;
}
}
}
}
|
| プレフィックス |
network-instances {
network-instance <> {
protocols {
protocol {
local-aggregates {
aggregate {
config {
prefix <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
aggregate {
route <>;
}
}
}
|
| タグの設定 |
network-instances {
network-instance {
protocols {
protocol {
local-aggregates {
aggregate {
config {
set-tag <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
aggregate {
route <> {
tag <>;
}
}
}
}
|
| メトリック |
network-instances {
network-instance {
protocols {
protocol {
local-aggregates {
aggregate <> {
config {
metric <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
aggregate {
route <> {
metric <>;
}
}
}
}
|
| 好み |
network-instances {
network-instance {
protocols {
protocol {
local-aggregates {
aggregate <> {
config {
preference <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
aggregate {
route <> {
preference <>;
}
}
}
}
|
| 既定のメトリック |
network-instances {
network-instance <> {
protocols {
protocol {
config {
default-metric;
}
}
}
}
}
|
routing-instances <> {
routing-options {
aggregate {
defaults {
metric <>;
}
}
}
}
|
| コマンド名 |
OpenConfig Configuration |
Junos の設定 |
|---|---|---|
| エクスポートポリシー |
network-instances {
network-instance <> {
inter-instance-policies {
apply-policy <> {
config {
export-policy;
}
}
}
}
}
|
routing-instances <> {
vrf-export <>;
}
|
| インポートポリシー |
network-instances {
network-instance <> {
inter-instance-policies {
apply-policy <> {
config {
import-policy;
}
}
}
}
}
|
routing-instances <> {
vrf-import <>;
}
|
| デフォルトのエクスポート・ポリシー |
network-instances {
network-instance <> {
inter-instance-policies {
apply-policy <> {
config {
default-export-policy;
}
}
}
}
}
|
routing-instances <> {
export-default-action <accept | reject>;
}
|
| デフォルトのエクスポートポリシーを設定する前に、エクスポートポリシーを設定する必要があります。 |
||
| デフォルトのインポートポリシー |
network-instances {
network-instance <> {
inter-instance-policies {
apply-policy <> {
config {
default-import-policy;
}
}
}
}
}
|
routing-instances <> {
import-default-action <accept | reject>;
}
|
| デフォルトのインポートポリシーを設定する前に、インポートポリシーを設定する必要があります。 |
||
| ルートターゲットのエクスポート |
network-instances {
network-instance <> {
inter-instance-policies {
import-export-policy {
config {
export-route-target;
}
}
}
}
}
|
routing-instances <> {
vrf-target {
export;
}
}
|
| ルートターゲットのインポート |
network-instances {
network-instance <> {
inter-instance-policies {
import-export-policy {
config {
import-route-target;
}
}
}
}
}
|
routing-instances <> {
vrf-target {
import;
}
}
|
| コマンド名 |
OpenConfig Configuration |
Junos の設定 |
|---|---|---|
| 最大 |
network-instances {
network-instance <> {
route-limits {
route-limit <> {
config {
maximum <>;
}
}
}
}
}
|
routing-instances <> {
routing-options rib <> {
maximum-paths <>;
}
}
|
| 警告のみ |
network-instances {
network-instance <> {
route-limits {
route-limit <> {
config {
warning-only <>;
}
}
}
}
}
|
routing-instances <> {
routing-options rib <> {
maximum-paths log-only;
}
}
|
変更履歴テーブル
機能のサポートは、使用しているプラットフォームとリリースによって決まります。 機能エクスプローラー を使用して、機能がプラットフォームでサポートされているかどうかを判断します。