Dell OS10 OSPF Configuration: Interfaces and Areas - 夜莺博客

Dell OS10 OSPF Configuration: Interfaces and Areas

Dell PowerSwitch OS10 is an interface-based OSPF implementation: instead of a single network statement, you enable OSPF directly on each Layer 3 interface and bind it to a process ID and area. This design maps cleanly to modern leaf-spine fabrics, where spine and leaf switches run OSPF between loopbacks and point-to-point links. In this step-by-step guide you will learn the exact OS10 commands to build an OSPFv2 configuration, how to attach interfaces to areas, what to do when OSPF runs inside a non-default VRF, and which show commands prove the adjacency is healthy.

OS10 OSPF Basics: Process, Area, Interface

Every OSPFv2 instance in OS10 is identified by a process ID (1-65535). Interfaces are attached to the process with ip ospf <process-id> area <area-id>, where the area can be given in dotted-decimal (0.0.0.0) or numeric form. There is no OSPF network command - an interface is only advertised if OSPF is explicitly enabled on it.

Step-by-Step OSPF Configuration on OS10

Start in configuration mode, disable the default L2 switchport behavior, assign an IP, and attach the interface to the OSPF process and area:

OS10(config)# interface ethernet 1/1/1
OS10(conf-if-eth1/1/1)# no shutdown
OS10(conf-if-eth1/1/1)# no switchport
OS10(conf-if-eth1/1/1)# ip address 10.0.0.1/30
OS10(conf-if-eth1/1/1)# ip ospf 1 area 0
OS10(conf-if-eth1/1/1)# exit

Then create the OSPF process and give it a stable router ID, and add any loopback used as the router ID source:

OS10(config)# router ospf 1
OS10(conf-router-ospf-1)# router-id 1.1.1.1
OS10(conf-router-ospf-1)# exit
OS10(config)# interface loopback 0
OS10(conf-if-lo-0)# ip address 1.1.1.1/32
OS10(conf-if-lo-0)# ip ospf 1 area 0

VLAN interfaces work the same way - enable OSPF on the SVI with ip ospf in the interface VLAN configuration mode:

OS10(conf-if-vl-10)# ip ospf 10 area 5

Running OSPF in a Non-Default VRF

OS10 supports OSPFv2 inside a VRF instance. Create the VRF, start the OSPF process bound to that VRF, and associate the interface with the VRF before enabling OSPF on it:

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

If you move an interface between VRFs, remove its existing Layer 3 and OSPF configuration first - otherwise those settings silently do not take effect in the new VRF.

Verifying the OSPF Neighbor and Routes

OS10# show ip ospf
OS10# show ip ospf neighbor
OS10# show ip ospf interface
OS10# show ip route ospf

The neighbor table should show a FULL state on point-to-point links and the OSPF routes should appear in the routing table before you check end-to-end reachability with ping.

Related articles on this site: OSPF area types: stub and NSSA explained, Dell OS10 basic switch management configuration, and Dell OS10 port channel and LACP configuration.

原文链接:https://www.dell.com/support/manuals/en-us/smartfabric-os10/smartfabric-os-user-guide-10-5-0/enable-ospfv2-in-a-non-default-vrf-instance