HP (Hewlett-Packard) 5348XL Switch User Manual


 
IP Routing Features
Configuring OSPF
Syntax: area <ospf-area-id | backbone> range <ip-addr/mask-length>
[no-advertise]
The <ospf-area-id> parameter specifies the area number, which can be in IP
address format.
The <ip-addr> parameter following range specifies the IP address portion of
the range. The software compares the address with the significant bits in the
mask. All network addresses that match this comparison are summarized in
a single route advertised by the Series 5300XL Switch.
The <mask-length> parameter specifies the portions of the IP address that a
route must contain to be summarized in the summary route. In the example
above, all networks that begin with 209.157 are summarized into a single route.
Assigning VLAN to an Area
Once you define OSPF areas, you can assign VLANs to the areas. All Series
5300XL Switch VLANs must be assigned to one of the defined areas on an
OSPF router. When a VLAN is assigned to an area, the primary IP address is
automatically included in the assignment. To include secondary addresses,
you must enable OSPF on them separately, or use the all option in the
assignment.
Example: To assign VLAN 8 of Switch A to area 192.5.0.0 and then save the
changes, enter the following commands:
HPSwitch(ospf)# vlan 8
RouterA(vlan-8)# ip ospf area 192.5.0.0
RouterA(vlan-8)# write memory
16-42