跳转到主内容

ONTAP 9.2 及更高版本如何选择路由?

Views:
34
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

适用场景

ONTAP 9.2及更高版本

问题解答

如果不满足此条件、ONTAP将按顺序执行以下步骤来选择路由、从顶部开始、向下移动:

  1. ONTAP将选择 到达目的地地址的最具体的路由(静态)
  2. 如果ONTAP发现两个或更多路由符合最具体的路由条件 、并且源LIF地址已知(通常在LIF与目标位于同一子网时显示)
    •   如果可能、请选择网关与LIF地址位于同一网络的路由
      • 如果网关与目标位于同一子网中、则满足此条件
    • 否则: 如果可能、ONTAP将选择与LIF端口相同的路由 
      • 如果ONTAP找到的路由与分配给源LIF的端口关联、则满足此条件
    • 否则: 如果可能、ONTAP将选择一个路由、其网关与可提供该服务的另一个LIF地址位于同一网络中 
  3. ONTAP将使用加权指标 作为断路器

注: 

  • 可以在远程节点上为出站连接(DNS、NIS、LDAP、AD 等)选择路由 如果是最具体的路由
  • 如果可以 在相同特定的本地路由和远程路由之间进行选择、则首选本地路由

追加信息

路线选择示例
场景1— 由于数据LIF位于同一子网中、ONTAP通过非对称路由响应服务

Cluster::*> network route active-entry show -vserver vserver -node node-01  

Vserver: vserver 
Node: nas-cm93-01 
Subnet Group: 0.0.0.0/0 
Destination             Gateway              Interface   Metric  Flags 
----------------------  -------------------  ---------   ------  ----- 
10.216.29/24            link#3               e0c             60  U 
172.16.1/24             link#4               e0d             60  U 
default                 10.216.29.1          e0c             65  UGS 
default                 172.16.1.1           e0d             67  UGS 

  • 从客户端172.16.1.50到文件管理器的LIF (地址为10.216.29.25)建立TCP连接。
  • 要发送返回的数据包、ONTAP需要选择最具体的路由。
  • 在这种情况下、最具体的路由是e0d上的直连路由。
  • 在这种情况下、流量将 不对称地路由、通过  10.216.29/24网络上的e0c接口进入、并通过172.16.1/24网络上的e0d进入。 
场景2 - ONTAP通过配置的冲突路由响应服务

cluster::*> network route active-entry show -vserver vserver -node node-01        
  
Vserver: vserver 
Node: nas-cm93-01 
Subnet Group: 0.0.0.0/0 
Destination             Gateway              Interface   Metric  Flags 
----------------------  -------------------  ---------   ------  ----- 
10.216.29/24            link#3               e0c             60  U 
172.16.1/24             10.216.29.1          e0c             65  UGS 
172.16.1/24             link#3               e0d             60  U 
default                 10.216.29.1          e0c             65  UGS 
default                 172.16.1.1           e0d             67  UGS 

  • 将创建从客户端 172.16.1.50 到LIF IP 10.216.29.25的相同连接
  • 但是、存储管理员现在为指向10.216.29.1网关的172.16.1/24添加了一条冲突路由
  • 现在,当ONTAP找到到达目的地(172.16.1.50)的最具体路由时,它会找到两个条目 
    • 第一条路由指向源地址 10.216.29.25所在子网中的网关
    • 第二个是直接连接的路由e0d

Destination             Gateway              Interface   Metric  Flags 
----------------------  -------------------  ---------   ------  ----- 
172.16.1/24             10.216.29.1          e0c             65  UGS 
172.16.1/24             link#3               e0d             60  U 

  • 根据上述规则、ONTAP将选择网关与源地址位于同一网络的路由、并将流量从e0c发送到网关 10.216.29.1
  • 这样可以避免 非对称 路由 
场景3—ONTAP通过配置的路由发送服务请求
  • ONTAP 需要连接到网络172.16.1.0/24中的DNS服务器
  • 路由表是相同的,ONTAP的路由决定也是相同的

Destination             Gateway              Interface   Metric  Flags 
----------------------  -------------------  ---------   ------  ----- 
172.16.1/24             10.216.29.1          e0c             65  UGS 
172.16.1/24             link#3               e0d             60  U 

  • 在这种情况下、ONTAP将选择e0d之外的直接连接路由、因为它的度量值较低
  • 与方案2不同的原因是、ONTAP没有指定的源地址、因为它正在启动连接、而不是响应特定LIF上发出的请求

注: 

  • ONTAP不能充当路由器、如果定义为另一台主机的L3网关、则不会转发流量
  • ONTAP不会桥接其接口、在一个接口上收到的L2流量不会转发出任何其他接口

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.