Multicast and Routing Guide K/KA/KB.15.15
You can enter a value for the OSPF area in the
format of an IP address or a number in the
range 0 to 4,294,967,295.
Example:
To assign user-defined loopback interface 3 on the switch to area 192.5.0.0 and
include the loopback IP address 172.16.112.2 in the OSPF broadcast area, enter
the following commands:
HP Switch(config)# interface loopback 3
HP Switch(lo-3)# ip ospf 172.16.112.2 area 192.5.0.0
Syntax:
interface loopback 0-7# ip ospf lo-ip-address cost number
Executed in a specific loopback context to modify the cost used to advertise the
loopback address (and subnet) to the area border router (ABR.) Requires that the
specified loopback interface is already configured with an IP address on the switch.
loopback interface 0-7 Defines the loopback context for executing the
cost assignment.
ip ospf lo-ip-address Specifies the loopback interface by its IP
address.
cost number Specifies a number that represents the
administrative metric associated with the
loopback interface. Valid values are from 1 to
65535.
Default: 1.
Example
To configure a cost of 10 for advertising the IP address 172.16.112.2 configured
for loopback interface 3 in an OSPF area 192.5.0.0, enter the following commands:
HP Switch(config)# interface loopback 3
HP Switch(lo-3)# ip ospf 172.16.112.2 area 192.5.0.0
HP Switch(lo-3)# ip ospf 172.16.112.2 cost 10
OSPF redistribution of loopback addresses
When you assign a loopback address to an OSPF area, the route redistribution of the loopback
address is limited to the specified area.
When route redistribution is enabled:
• The switch advertises a loopback IP address that is not assigned to an OSPF area as an OSPF
external route to its OSPF neighbors, and handles it as a connected route.
• The switch advertises a loopback address that is assigned to an OSPF area as an OSPF internal
route.
To enable redistribution of loopback IP addresses in OSPF, enter the redistribution
connected command as described in “Enabling route redistribution” (page 149).
Assigning the routing switch to OSPF areas 147










