Configuring single-area OSPF: the network command, wildcard mask, neighbours and router ID
Sign in to read this lesson
In this lab three routers (BAKI, GENCE, SUMQAYIT) connect with OSPF in Area 0. The router ospf 1 command starts the OSPF process; the process number is local. The command network 10.0.13.0 0.0.0.255 area 0 does two things: it advertises the networks in that range in OSPF and enables OSPF on the matching interface so it sends hellos. 0.0.0.255 is a wildcard mask, the inverse of a subnet mask. We check the adjacency with show ip ospf neighbor (state FULL) and the router ID with show ip protocols. After creating a loopback or setting router-id, the change takes effect after clear ip ospf process.
What you will learn
router ospf 1: starts the OSPF process. 1 is the process ID and only has local significance; it can differ between routers.network 10.0.13.0 0.0.0.255 area 0does two things: 1) it puts the matching network in the LSDB and advertises it, 2) it enables OSPF on the matching interface (hellos are sent).- 0.0.0.255 is not a subnet mask but a wildcard mask: the inverse of the subnet mask (255.255.255.0 ↔ 0.0.0.255).
show ip ospf neighbor: the neighbours and their state. FULL = the exchange is complete. The column also shows the DR/BDR/DROTHER role.show ip protocolsshows the router ID. A loopback orrouter-idchange takes effect afterclear ip ospf process. On an interface facing a switch with computers,passive-interfacestops the hellos while the network is still advertised.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.