Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

OpenConfig 네트워크 인스턴스 명령을 Junos 운영에 매핑

참고:

주니퍼 네트웍스 ACX 시리즈, EX 시리즈, MX 시리즈, PTX 시리즈 및 QFX 시리즈에 대한 데이터 모델 지원 버전과 Junos OS 릴리스를 이해하려면 OpenConfig 데이터 모델 버전 주제를 참조하십시오.

네트워크 인스턴스는 디바이스에서 일반 가상 포워딩 테이블을 모델링합니다. 이는 가상 라우팅 및 포워딩(VRF) 인스턴스와 같은 레이어 3 포워딩 구성 또는 가상 스위치 인스턴스와 같은 레이어 2 인스턴스를 지원합니다. 혼합 계층 2 및 계층 3 인스턴스도 지원됩니다.

Junos OS 릴리스 17.4R1부터 네트워크 인스턴스 기반 BGP 구성이 지원됩니다. 네트워크 인스턴스가 구성되면 글로벌 bgp, neighbor BGP 등과 같은 BGP 구성 옵션을 묻는 메시지가 표시됩니다.

참고:

기존 BGP 구성에는 변경 사항이 없으며, 특정 네트워크 인스턴스에서 BGP를 구성할 수 있습니다.

#mapping-openconfig-network-instance-commands-to-junos-operation__NetworkInstance-1377A821 은 네트워크 인스턴스 리소스 경로를 나열합니다.

Junos 명령에 대한 구성 및 매핑은 다음을 참조하십시오.

  • 표 1: 기본 구성
  • 표 2: 인터페이스 구성
  • 표 3: 하위 인터페이스 구성

  • 표 4: 고정 경로 구성
  • 표 5: 로컬 집계 구성
  • 표 6: 인스턴스 간 정책 구성
  • 표 7: 경로 제한
표 1: 기본 구성

명령 이름

OpenConfig 구성

Junos 구성

설명

network-instances {
     network-instance <> { 
          config {
               description;
          }
     }
}

routing-instances <> {
     description; 
}

사용

network-instances {
     network-instance <> { 
          config {
               enabled;
          }
     }
}

routing-instances <>;
참고:

deactivate 명령을 사용하여 네트워크 인스턴스가 활성화되지 않아야 함을 나타냅니다.

이름

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 <>; 
}
표 2: 인터페이스 구성

명령 이름

OpenConfig 구성

Junos 구성

인터페이스

network-instances {
     network-instance <> { 
          interfaces {
	        config {
                    interface <>;
               }
          }
     }
}

routing-instances <> {
     interface <>; 
}

하위 인터페이스

network-instances {
     network-instance <> { 
          interfaces {
	        config {
                    subinterface <>;
               }
          }
     }
}

routing-instances <> {
     interface <>; 
}
표 3: 하위 인터페이스 구성

명령 이름

OpenConfig 구성

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 <>;
        }
    }
}
표 4: 고정 경로 구성

명령 이름

OpenConfig 구성

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 <>;
         }
      }
   }
}
표 5: 로컬 집계 구성

명령 이름

OpenConfig 구성

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 <>;
         }
      }
   }
}
표 6: 인스턴스 간 정책

명령 이름

OpenConfig 구성

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;
   }
}
표 7: 경로 제한 구성

명령 이름

OpenConfig 구성

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;
   }
}

변경 내역 테이블

기능 지원은 사용 중인 플랫폼 및 릴리스에 따라 결정됩니다. 기능 탐색기 를 사용하여 플랫폼에서 기능이 지원되는지 확인합니다.

릴리스
설명
17.4R1
Junos OS 릴리스 17.4R1부터 네트워크 인스턴스 기반 BGP 구성이 지원됩니다.