并非 ONTAP 97 的“路由显示”中列出的所有路由
适用于
- ONTAP 9.7
问题
- 对于 ONTAP 9.6 、不允许添加具有相同目标子网的两条路由:
fas8200-2n-dal-1::> version
NetApp Release 9.6: Wed Jul 10 16:25:33 UTC 2019
fas8200-2n-dal-1::>
fas8200-2n-dal-1::> route show -vserver svm1
Vserver Destination Gateway Metric
------------------- --------------- --------------- ------
svm1
0.0.0.0/0 10.128.227.1 20
fas8200-2n-dal-1::>
fas8200-2n-dal-1::> route create -vserver svm1 -destination 30.150.0.0/16 -gateway 30.151.24.254
fas8200-2n-dal-1::>
fas8200-2n-dal-1::> route show -vserver svm1
Vserver Destination Gateway Metric
------------------- --------------- --------------- ------
svm1
0.0.0.0/0 10.128.227.1 20
30.150.0.0/16 30.151.24.254 20
2 entries were displayed.
fas8200-2n-dal-1::>
fas8200-2n-dal-1::> route create -vserver svm1 -destination 30.150.0.0/25 -gateway 30.151.26.254
Error: command failed: Duplicate route exists.
fas8200-2n-dal-1::>
- 在 ONTAP 9.7P3 中、添加了“重复”路由而不会出错、而表 VIFMGR_VS_Routes 的下一个 () 中检测到的“路由显示”捕获错误和未列出所有路由:
fas8200-2n-dal-1::> version
NetApp Release 9.7P3: Fri Apr 17 14:37:51 UTC 2020
fas8200-2n-dal-1::>
fas8200-2n-dal-1::> route show -vserver svm1
Vserver Destination Gateway Metric
------------------- --------------- --------------- ------
svm1
0.0.0.0/0 10.128.227.1 20
30.150.0.0/16 30.151.24.254 20
2 entries were displayed.
fas8200-2n-dal-1::>
fas8200-2n-dal-1::> route create -vserver svm1 -destination 30.150.0.0/25 -gateway 30.151.26.254
fas8200-2n-dal-1::>
fas8200-2n-dal-1::> route show -vserver svm1
Vserver Destination Gateway Metric
------------------- --------------- --------------- ------
svm1 0.0.0.0/0 10.128.227.1 20
30.150.0.0/25 30.151.26.254 20
Error: show failed on vserver "svm1" destination "30.150.0.0/25" gateway "30.151.26.254": Loop detected in next() for table vifmgr_vs_routes. Next on "3 30.150.0.0/25 30.151.26.254" returned "3 30.150.0.0/16 30.151.24.254".
2 entries were displayed.
fas8200-2n-dal-1::>