Re: OSPF network statement

From: ALee@cccis.com
Date: Wed Dec 19 2007 - 13:31:42 ART


Vinoth,

Thanks for your input. That's exactly what I remember about OSPF network
statement. But when I search OSPF scenario on Cisco website, most of
scenarios use the second network statement below. Then I start wondering,
what if there're a couple of subnets in the same class C network which you
don't want them to participate in OSPF. I totally agree, personally I
prefer the first network statement to make it more restrictive. Thanks
again.

Arthur Lee
Senior Network Engineer

"Vinoth Kannan Ganapathy" <ccieprep4vinoth@gmail.com>
12/19/2007 09:45 AM

To
ALee@cccis.com
cc

Subject
Re: OSPF network statement

Hi Arthur,

Network statement in OSPF is just to tell that which interface should
participate in OSPF routing process.
In the first case you are telling specifically that the interface having
that IP address should run OSPF routing process in area 0.
In the second case you are telling that which are all interfaces having
their IP address starting with 172.20.20 should run OSPF routing process
in area 0.

Thx and regds
Vinoth G

On Dec 19, 2007 9:56 AM, <ALee@cccis.com> wrote:
Can anyone tell me the difference of the OSPF network statement below?
Such as the difference showing in OSPF database, routing table, etc. Which
network statement is preferred? Thanks.

interface Vlan20
 ip address 172.20.20.1 255.255.255.0

router ospf 10
network 172.20.20.1 0.0.0.0 area 0.0.0.0

V.S.

router ospf 10
network 172.20.20.0 0.0.0.255 area 0.0.0.0

Arthur Lee



This archive was generated by hypermail 2.1.4 : Tue Jan 01 2008 - 12:04:31 ARST