显示路由信息
可显示有关 SVM 内的路由的信息。
根据您要查看的路由信息的类型,输入合适的命令:
要查看信息... | 输入... |
---|---|
静态路由,每个 SVM | network route show |
每个路由上的 LIF,每个 SVM | network route show-lifs |
可通过指定 -instance 参数显示每个路由的详细信息。
示例
以下命令将显示 cluster-1 中的 SVM 内的静态路由:
cluster-1::> network route show
Vserver Destination Gateway Metric
------------------- --------------- --------------- ------
Cluster
0.0.0.0/0 10.63.0.1 10
cluster-1
0.0.0.0/0 198.51.9.1 10
vs1
0.0.0.0/0 192.0.2.1 20
vs3
0.0.0.0/0 192.0.2.1 20
以下命令将显示 cluster-1 中的所有 SVM 内的静态路由和逻辑接口(LIF)的关联:
cluster-1::> network route show-lifs
Vserver: Cluster
Destination Gateway Logical Interfaces
---------------------- ---------------------- -------------------
0.0.0.0/0 10.63.0.1 -
Vserver: cluster-1
Destination Gateway Logical Interfaces
---------------------- ---------------------- -------------------
0.0.0.0/0 198.51.9.1 cluster_mgmt,
cluster-1_mgmt1,
Vserver: vs1
Destination Gateway Logical Interfaces
---------------------- ---------------------- -------------------
0.0.0.0/0 192.0.2.1 data1_1, data1_2
Vserver: vs3
Destination Gateway Logical Interfaces
---------------------- ---------------------- -------------------
0.0.0.0/0 192.0.2.1 data2_1, data2_2
提供反馈