The USG configures the OSPF link cost method

15

The USG2000 & 5000 & 6000 configures the OSPF link cost as follows:
1. Run: system-view The system view is displayed.

2. Run: interface interface-type interface-number The interface view is displayed.

3. Run the ospf cost cost command to set the cost of the OSPF interface.

The OSPF protocol cost of the interface is valid for the OSPF route learned from the interface. That is, the cost of the route generated in the device routing table is equal to the cost of the route advertised by the interface. The cost of the interface is set by the ospf cost command.

Other related questions:
Configuring the OSPF priority on the firewall
The method for modifying the OSPF priority on the USG2000&5000&6000 is as follows: -Modifying the OSPF priority: [USG]ospf [USG-ospf-1]preference 30

Calculating the cost of an OSPF interface on the firewall
Calculating the cost of an OSPF interface on the USG2000&5000&6000 series as follows: The cost configured on the interface is preferred. If no cost is configured on the interface, the formula for calculating the cost of the interface is as follows: Cost = Reference bandwidth/Interface bandwidth. The default reference bandwidth of OSPF is 100 Mbit/s. For example, the cost of a 10 Mbit/s Ethernet interface = 100 Mbits per second/10 Mbits per second = 10. If the calculation result is smaller than 1, the cost is set to 1. For example, the cost of a GE interface is 100 Mbits per second/1000 Mbits per second = 0.1, which is less than 1. Therefore, the cost of this interface is 1. The default cost on the loopback interface, which is a virtual interface, is 0.

USG configures the ospf type
The USG2000 & 5000 & 6000 configuration type method is as follows 1. Run: system-view The system view is displayed. 2. Run: interface interface-type interface-number The interface view is displayed. 3. Run the ospf network-type {broadcast | nbma | p2mp | p2p} command to configure the network type of the OSPF interface. When the user configures a new network type for the interface, the network type of the original interface will be replaced.

Why is the OSPF default cost incorrect
For example, after the OSPF process is enabled on the device, the information about the interface is displayed. The output information shows that the default OSPF cost of an Ethernet interface is 7. Generally, the default OSPF cost is 1. The default cost of an OSPF interface is calculated based on the bandwidth and bandwidth-reference. Bandwidth-reference is configured under the OSPF process. Normally, the default bandwidth-reference value is used. If the default bandwidth is 100 Mbit/s, the OSPF cost is calculated as 1.

What are the precautions for configuring the cost of a virtual link
Ensure that the cost is not greater than the maximum value, that is 65535, defined in the related RFC. Otherwise, no virtual link can be established.

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