The following examples show how one command can cover all router interfaces and also how each individual interface can be specified.
Given a router with six interfaces, three with addresses in the 10.0.0.0 class and three with addresses in the 172.16.0.0 class, the following would configure all interfaces to participate in OSPF Area 0:
network 0.0.0.0 255.255.255.255 area 0
The following would have only the interfaces addressed from 10.0.0.0 participating in OSPF Area 0:
network 10.0.0.0 0.255.255.255 area 0
The next example shows only two specific interfaces participating in OSPF Area 0:
network 10.12.0.1 0.0.0.0 area 0 network 172.16.15.1 0.0.0.0 area 0
As with an access list, the top-down logic should be thought through carefully. The most specific criteria must be defined before the general.
Was this article helpful?