Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products

Dell EMC SmartFabric OS10 User Guide Release 10.5.0

PDF

配置静态路由

您可以配置开放最短路径优先 (OSPF) 的手动或静态路由。

  • 在 CONFIGURATION 模式下配置静态路由。
    ip route ip-prefix/mask {next-hop | interface interface [route-preference]}
    • ip-prefix— 以点分隔的十进制格式表示 IPv4 地址。
    • mask— 以斜杠前缀长度格式 (/X) 作为掩码。
    • next-hop— 以点分隔的十进制格式表示下一跳 IP 地址。
    • interface— 具有节点/插槽/端口信息的接口类型
    • route-preference—(可选)路由首选项范围,从 1 到 255。

配置静态路由

OS10(config)# ip route 200.200.200.0/24 10.1.1.2

查看配置静态路由

OS10# show ip route static
Codes: C - connected
       S - static
       B - BGP, IN - internal BGP, EX - external BGP
       O - OSPF,IA - OSPF inter area, N1 - OSPF NSSA external type 1,
       N2 - OSPF NSSA external type 2, E1 - OSPF external type 1,
       E2 - OSPF external type 2, > - non-active route
Gateway of last resort is not set
Destination        Gateway                   Dist/Metric Last Change
------------------------------------------------------------------
S  200.200.200.0/24 via 10.1.1.2 ethernet1/1/1  0/0      00:00:03

如果下一跳位于直接连接的子网上,OS10 将安装静态路由。不在直接连接的子网中的下一跳将在接口配置的子网上递归解析为下一跳,也会自动配置。例如,如果 interface ethernet 1/1/5 在子网 100.0.0.0/8 上具有 IP 地址,并且 10.1.1.0/24 递归解析为 100.1.1.1,则系统将安装静态路由:

  • 当接口出现故障时,OS10 将收回该路由。
  • 当接口亮起时,OS10 会重新安装路由。
  • 当递归解析为 broken 时,OS10 将收回路由。
  • 当满足递归解析时,OS10 会重新安装路由。

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\