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
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell EMC SmartFabric OS10 User Guide Release 10.5.0

PDF

在非默认 VRF 实例中启用 OSPFv2

要在非默认 VRF 实例中启用 OSPFv2,请执行以下操作:

  1. 创建要在其中启用 OSPFv2 的非默认 VRF 实例:
    ip vrf vrf-name
  2. 启用 OSPF 并在 VRF CONFIGURATION 模式下配置 OSPF 实例。
    router ospf instance-number vrf vrf-name
  3. 输入接口信息以在 INTERFACE 模式下配置 OSPF 接口。
    interface ethernet node/slot/port[:subport]
  4. 在 INTERFACE 模式下启用接口。
    no shutdown
  5. 禁用默认的交换机端口配置,并将其从接口或 INTERFACE 模式中的 LAG 端口移除。
    no switchport
  6. 将接口与您之前创建的非默认 VRF 实例关联。
    ip vrf forwarding vrf-name
  7. 将一个 IP 地址分配给接口。
    ip address ip-address/mask
  8. 在接口上启用 OSPFv2。
    ip ospf process-id area area-id
    • process-id— 输入特定 OSPF 进程的 OSPFv2 进程 ID,从 1 到 65535。
    • area-id— 输入 OSPFv2 区域 ID 作为 IP 地址 (A.B.C.D) 或数字(从 1 到 65535)。

启用 OSPFv2 配置

OS10(config)# ip vrf vrf-blue
OS10(config-vrf-blue)# router ospf 100 vrf-blue
OS10(conf-router-ospf-100)# exit
OS10(config)#  interface ethernet 1/1/2
OS10(conf-if-eth1/1/2)# no shutdown
OS10(conf-if-eth1/1/2)# no switchport
OS10(conf-if-eth1/1/2)# ip vrf forwarding vrf-blue
OS10(conf-if-eth1/1/1)# ip address 11.1.1.1/24
OS10(conf-if-eth1/1/1)# ip ospf 100 area 0.0.0.0
注:

如果您想要将与一个 VRF 实例相关联的接口移至另一个默认或非默认 VRF 实例,则必须先删除该接口上已经存在的 OSPF 或 Layer3 配置。如果将接口从一个 VRF 实例移至另一个实例,而不删除这些现有的 Layer3 或 OSPF 配置,则这些配置不会在新的 VRF 实例中生效。

请考虑在默认 VRF 实例上配置了 OSPF 实例 100 的情况,并在名为 VRF-Red 的非默认 VRF 实例上配置 OSPF 实例 200。默认 VRF 实例上的接口 eth1/1/1 连接到 OSPF 进程 100 区域 1。在这种情况下,如果您想要将 eth1/1/1 从默认 VRF 实例移至 VRF-Red,则必须先移除接口 eth1/1/1 当前连接到的 OSPF 区域配置。


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: <>()\