background image
Basic Multi-area Configuration
173
RouterB
interface Ethernet0
ip address 1.1.3.1 255.255.255.0
!
interface Ethernet1
ip address 1.1.2.2 255.255.255.0
!
router ospf 70
network 1.1.2.0 0.0.0.255 area 0
network 1.1.3.0 0.0.0.255 area 1
RouterC
interface Ethernet0
ip address 1.1.4.1 255.255.255.0
!
interface Ethernet1
ip address 1.1.3.2 255.255.255.0
!
router ospf 70
network 1.1.3.0 0.0.0.255 area 1
network 1.1.4.0 0.0.0.255 area 1
Let's examine the syntax to configure OSPF on RouterA. First, we need to
enable the OSPF process on the router:
RouterA (config)#router ospf 70
where 70 is the Process ID.
Next, we need to identify each of the networks connected to the router
that we want to participate in the OSPF process. In this example, we have
two networks connected to RouterA (1.1.1.0/24 and 1.1.2.0/24):
RouterA(config-router)#network 1.1.1.0 0.0.0.255 area 0
where 1.1.1.0 0.0.0.255 is the network and wildcard mask of a network
connected to RouterA and where 0 is the area that network 1.1.1.0/24 is a
member of.
RouterA(config-router)#network 1.1.2.0 0.0.0.255 area 0
Copyright ©2001 SYBEX , Inc., Alameda, CA
www.sybex.com