Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member


what is the use of defining a single interface network address in the 'network' configuration command?



i guess u r asking for an explanation command of the form.

network area X

where is the ip address of the interface

and is a host mask...

This type of network commands, help in ease of configuration of OSPF, rather than calculating a wild card mask appropriate for that particular subnet.

For example, assume a interface with ip address

To configure OSPF, you can use two methods on this interface.

router ospf 10

network area 0


router ospf 10

network area 0

both the commands would work. In the first case, I had to calculate the wild card mask for the specific network ( In the second case, instead of specifying a network address on the command, i specified the whole ip address, and used a host mask instead. This way, I dont need to calculate the wild card mask.

(An easy way to calculate wild card mask is to subtract the subnet mask of the interface from ....see this example...

/30 is

Subtracting this from -


0. 0. 0. 3

That is the wild card mask needed to configure OSPF is

You could either of the methods..The specific single interface ip address command being the better.

New Member


What I actually meant ( i'm sorry for making it vague, but still-thank you for your input! ) was: what is the purpose of advertising the IP address of an interface instead of a subnet reachable via this interface? How is this information relevant for routers running OSPF and including such route entry in their routing table? Shouldn't they be more concerned about reachability of actual subnets? Why this host address??



the host could be a loopback address , these are commonly depicted as a hos address

New Member


Yes, in order to advertise the loopback address with the 'network' command you wouldn't configure the network the address belongs to, but hte actual host address. That's fine. But if with the 'network' command you specify the ip address of a serial interface, not the subnet it belongs to, I don't see the point. (e.g. you advertise instead of what is the purpose of such a host address entry in the routing tableof other routers?