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 데이터 모델 버전 항목을 참조하십시오.

다음 표에는 Junos의 관련 구성에 대한 OpenConfig 인터페이스 명령 매핑이 나와 있습니다.

  • 표 1: 이더넷 구성
  • 표 2: GRE 터널 인터페이스 구성
  • 표 3: IPv4 및 IPV6 주소 구성
  • 표 4: 인터페이스 AE 구성
  • 표 5: IFD 구성
  • 표 6: IFL 구성
  • 표 7: LACP 구성
  • 표 8: 구성원 인터페이스 구성
  • 표 9: 옵티컬 전송 구성
  • 표 10: P4Runtime(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-전송 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. 스탠자에 interfaces OpenConfig dup-addr-detect-transmits 의 여러 인스턴스가 있는 경우, 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

지원되지 않습니다.

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: P4Runtime(P4RT) 구성

명령 이름

OpenConfig 구성

Junos 구성

자료

openconfig-interfaces:interfaces { 
    interface <> {
      config {
           openconfig-p4rt:id <>;
      }
   }
}
interfaces  {
         < >   {
              p4rt {
                  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에는 세 proxy-arp 가지 모드가 있고 Junos에는 두 가지 모드가 있습니다.

  • 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

광고 간격(Advertise Interval)

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