将 OpenConfig 接口命令映射到 Junos 配置
请参阅 OpenConfig 数据模型版本主题 ,了解瞻博网络 MX 系列、PTX 系列和 QFX 系列的数据模型支持的版本及其 Junos OS 版本。
下表显示了 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 配置
| 命令名称 |
OpenConfig 命令路径 |
Junos 配置 |
|---|---|---|
| 自动协商 |
|
|
| MAC 地址 |
|
|
| 双工模式 |
|
|
| 端口速度 |
|
|
| 流量控制 |
|
|
| 命令名称 |
OpenConfig 配置 |
Junos 配置 |
|---|---|---|
| 源 |
openconfig-interfaces {
interfaces {
interface[name] {
subinterfaces {
subinterface[index] {
jnx-aug-openconfig-if-tunnel:tunnel {
config {
src <>;
}
}
}
}
}
}
}
|
interfaces {
gr-<> {
unit <> {
tunnel {
source <>;
}
}
}
}
|
| 增强的 OpenConfig 隧道 |
||
| 目的地 |
openconfig-interfaces {
interfaces {
interface[name] {
subinterfaces {
subinterface[index] {
jnx-aug-openconfig-if-tunnel:tunnel {
config {
dst <>;
}
}
}
}
}
}
}
|
interfaces {
gr-<> {
unit <> {
tunnel {
destination <>;
}
}
}
}
|
| 增强的 OpenConfig 隧道 |
||
| Ttl |
openconfig-interfaces {
interfaces {
interface[name] {
subinterfaces {
subinterface[index] {
jnx-aug-openconfig-if-tunnel:tunnel {
config {
ttl <>;
}
}
}
}
}
}
}
|
interfaces {
gr-<> {
unit <> {
tunnel {
ttl <>;
}
}
}
}
|
| 增强的 OpenConfig 隧道 |
||
| 关键 |
openconfig-interfaces {
interfaces {
interface[name] {
subinterfaces {
subinterface[index] {
jnx-aug-openconfig-if-tunnel:tunnel {
config {
gre-key <>;
}
}
}
}
}
}
}
|
interfaces {
gr-<> {
unit <> {
tunnel {
key <>;
}
}
}
}
|
| 增强的 OpenConfig 隧道 |
||
| 命令名称 |
OpenConfig 命令路径 |
Junos 配置 |
|---|---|---|
| 配置地址 |
|
|
| 邻居地址 |
|
|
| 链路层地址 |
|
|
| 要发送的邻居请求消息以进行重复地址检测 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-transmissions <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 在层次结构下 |
| 命令名称 |
OpenConfig 命令路径 |
Junos 配置 |
|---|---|---|
| 滞后类型 |
|
|
| 最少链接 |
|
|
| 命令名称 |
OpenConfig 命令路径 |
Junos 配置 |
|---|---|---|
| 接口类型 |
|
不支持。 类型派生自接口名称。 |
| 接口 MTU |
|
|
| 接口名称 |
|
|
| 接口说明 |
|
|
| 接口启用/禁用 |
|
|
| 保持时间 |
|
|
| 按住时间 |
|
|
| 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>;
}
}
}
}
|
| 命令名称 |
OpenConfig 命令路径 |
Junos 配置 |
|---|---|---|
| 设备名称 |
|
|
| 未编号的地址 |
|
|
| 单位说明 |
|
|
| 设备启用/禁用 |
|
|
| 接口别名 |
|
|
| 命令名称 |
OpenConfig 命令路径 |
Junos 配置 |
|---|---|---|
| LACP 间隔 |
|
|
| LACP 模式 |
|
|
| 系统 ID |
|
|
| 系统优先级 |
|
|
| 以太网选项 |
|
|
| 命令名称 |
OpenConfig 命令路径 |
Junos 配置 |
|---|---|---|
| 聚合 ID |
|
|
| 命令名称 |
OpenConfig 配置 |
Junos 配置 |
|---|---|---|
| 频率 |
openconfig-platform:components {
component <> {
openconfig-terminal-device:optical-channel {
config {
frequency <>;
}
}
}
}
|
interfaces <> {
optics-options {
wavelength <>;
}
}
|
| 从频率计算波长的公式,反之亦然,是 |
||
| 命令名称 |
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;
}
}
|
| 命令名称 |
OpenConfig 配置 |
Junos 配置 |
|---|---|---|
| proxy-arp |
openconfig-interfaces:interfaces {
interface <> {
subinterfaces {
subinterface <> {
openconfig-if-ip:ipv4 {
proxy-arp {
config {
mode <>;
}
}
}
}
}
}
}
|
interfaces {
<> {
unit <> {
proxy-arp <>;
}
}
}
|
| OpenConfig 有三种
|
||
| 命令名称 |
OpenConfig 命令路径 |
Junos 配置 |
|---|---|---|
| 虚拟路由器 ID |
|
|
| 虚拟地址 |
|
|
| VRRP 优先级 |
|
|
| VRRP 抢占式 |
|
|
| VRRP 抢占保持时间 |
|
|
| 接受数据 |
|
|
| 播发间隔 |
|
|
| 轨道接口 |
|
|
| 优先成本 |
|
|
| 虚拟链路本地地址 |
|
|