JunOS:RT DEST 0.0.0.0 MASK 255.0.0.0掩码太短

时间:2020-02-23 14:44:17  来源:igfitidea点击:

JunOS : RT DEST 0.0.0.0 MASK 255.0.0.0 mask too short

您可能会在尝试向Juniper交换机堆栈添加静态路由时发现此错误:

root@ir01# set routing-options rib inet.0 static route 0.0.0.0/00 next-hop 0.0.0.0
{master:0}[edit]
root@ir01# commit synchronize
[edit protocols]
'bgp'
[edit protocols]
'ospf3'
[edit routing-options rib inet.0 static]
'route 0.0.0.0/00'
RT: DEST: 0.0.0.0 MASK: 255.0.0.0 mask too short
error: configuration check-out failed

{master:0}[edit]
root@ir01#

这表示您的子网IP不正确。
您可能使用了第一个可用IP而不是网络IP。

使用以下命令检查您的承诺规则:

show | compare

然后删除您尝试应用的错误静态路由:

delete routing-options rib inet.0 static route 0.0.0.0/00 next-hop 0.0.0.0

提交更改:

commit synchronize

然后使用正确的参数再次输入您的静态路由。