User's Manual
441
efficiently utilize the address space of the network.
In the following example, it only uses 30bit sub-network masks and reserves address space of 2 bit as the host
address for the serial ports. For point-to-point serial link, which only requires two host addresses, it is enough.
interface ethernet 1/0
ip address 131.107.1.1 255.255.255.0
! 8 bits of host address space reserved for ethernets
interface serial 1/1
ip address 131.107.254.1 255.255.255.252
! 2 bits of address space reserved for serial lines
! Router is configured for OSPF and assigned AS 107
router ospf 107
! Specifies network directly connected to the router
network 131.107.0.0 0.0.255.255 area 0.0.0.0
60.4.4 Examples of the configuration of OSPF route and route distribution
OSPF requires exchanging information among many internal routers, ABRs and ASBRs. Under minimum
configuration, the routers based on OSPF can work under default parameters and have no requirement of
authentication.
Here are three examples of configuration:
The first example practices the basic OSPF command.
The second example configures the configuration of internal router, ABR and ASBR in a single OSPF
autonomous system.
The third example illustrates a more complex example of configuration with various OSPF tools.