Locate an OSPF fault on an S series switch

9

You can run the debugging ospf event command on S series switches supporting OSPF to locate most faults. If an OSPF fault cannot be located using this command, run the debugging ospf packet command to enable OSPF packet debugging and check whether OSPF packets are sent and received normally according to debugging information. Note: The debugging commands are used for fault location. Exercise caution when using the commands.

Other related questions:
How do I locate an OSPF fault
The debugging ospf event command can identify most of OSPF faults. If an OSPF fault cannot be located by this command, run the debugging ospf packet command to enable OSPF packet debugging and check whether OSPF packets are sent and received normally according to debugging information.

Commands for checking OSPF network type faults on S series switches
You can run the following commands on an S series switch supporting OSPF to check information about OSPF network type faults: display ospf interface The command output displays information about an OSPF interface. ospf network-type This command is used to set the network type of an OSPF interface.

Commands for checking OSPF network connection faults on S series switches
You can run the following commands on an S series switch supporting OSPF to check information about OSPF network connection faults: display ospf peer The command output displays information about an OSPF neighbor. display ospf error The command output displays OSPF errors. display ospf interface The command output displays information about an OSPF interface. display ospf brief The command output displays brief OSPF information. display ospf cumulative The command output displays statistics on an OSPF process. display ospf lsdb The command output displays information about an LSDB of OSPF. display ospf routing The command output displays OSPF routing table entries. display ospf error packet The command output displays information about OSPF error packets. debugging ospf packet This command is used to enable the debugging information about sent and received OSPF packets. debugging ospf event This command is used to enable the debugging information about OSPF events.

Commands for checking OSPF routing table faults on S series switches
You can run the following commands on an S series switch supporting OSPF to check information about OSPF routing table faults: display ospf peer The command output displays information about an OSPF neighbor. display ospf routing The command output displays OSPF routing table entries. display ospf lsdb The command output displays information about an LSDB of OSPF.

OSPF cost of S series switches
The ospf cost command can be executed on an S series switch that supports OSPF to configure the cost required for running the OSPF protocol on an interface. Application scenario: The interface cost can be automatically calculated by OSPF based on the interface bandwidth or manually configured by using the ospf cost command. If the costs and destination IP addresses of multiple routes discovered by one routing protocol are the same, load balancing can be implemented among the routes. Modify interface costs to implement load balancing as required. Configuration impact: If no interface cost is configured by using the ospf cost command, OSPF automatically calculates the interface cost based on the interface bandwidth. The calculation formula is as follows: Cost of the interface = Bandwidth reference value/Interface bandwidth. The integer of the calculated result is the cost of the interface. If the calculated result is smaller than 1, the cost value is 1. Changing the bandwidth reference value can change the cost of an interface. By default, the bandwidth reference value is 100 Mbit/s. Therefore, the default cost value of an Ethernet (100 Mbit/s) interface is 1 (100,000,000/the interface bandwidth). Example: Set the cost required by VLANIF 100 for running OSPF to 65. [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ospf cost 65 Set the cost required by GE0/0/1 for running OSPF to 65. [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ospf cost 65 Note: The cost calculated by OSPF is the cost of the route to the outbound interface of the destination network.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top