HP-UX Routing Services Administrator's Guide HP-UX 11i v2, HP-UX 11i v3 (B2355-91153, November 2011)
You can define various characteristics for an area and interfaces. The following sections describe
the configuration statements that you can use in defining an area.
The networks Statement
The networks statement defines the address ranges that forms an OSPF area. This definition
applies only to area border routers, where multiple areas are specified, and is required only if
you need to compress a number of subnets using a network mask.
A network address followed by a hexadecimal bit mask specifies an IP address range in the
network statement. For example, the following address range begins with the network address
193.2.1.16 and includes the first 15 addresses in that network (193.2.1.17 through 193.2.1.31):
193.2.1.16 mask 0xfffffff0
You can specify many separate networks in an address range. Area border routers advertise a
single route for each address range.
Figure 8 shows an example of a router that is connected to area 0.0.0.1 through the interface
193.2.1.33. The attached network consists of addresses 193.2.1.33 through 193.2.1.47. The
other network in the area consists of addresses 193.2.1.17 through 193.2.1.31.
Figure 8 Network Configuration Example
The following is an example of the network definition in the Router A’s /etc/gated.conf file:
ospf yes
area 0.0.0.1
networks {
193.2.1.16 mask 0xfffffff0 ;
193.2.1.32 mask 0xfffffff0 ;
} ;
interface 193.2.1.33 {
...
} ;
} ;
...
The interface Statement
The interface statement in the OSPF protocol definition specifies the interface to use while
communicating with the specified networks. You can specify the interface with an address (for
example, 193.2.1.36), a domain or interface name (for example, lan0 or lan1), a wild card
name (for example, lan*), or all (the order of precedence is address, name, wild card name,
all). You can specify multiple interface statements using different clauses. If you specify a clause
more than once, the instance with the most specific interface reference is used.
Configuring the OSPF Protocol 31