OSPF config question

Hi

Quick question on OSPF configuration.

Cisco 2600 series Router1: f0/0: 192.168.1.1/24 s0/0: 10.10.1.1/30

Commands Router1(config)#:router ospf 1 Router(config-router)#:

I know I can type either 'network 192.168.1.0 0.0.0.0 area 0' or 'network 192.168.1.1 0.0.0.0 area 0' (or even 'network 192.168.1.0

0.0.0.255 area 0') and it will still work. But, is one better to use than another for exam purpose (am taking CCNA soon).

Thanks in advance

Reply to
dilan.weerasinghe
Loading thread data ...

Network 192.168.1.0 0.0.0.0 area 0 saying you know 192.168.1.0\\32

Network 192.168.1.1 0.0.0.0 area 0 saying you know 192.168.1.1\\32

Network 192.168.1.0 0.0.0.255 area 0 would say u know the 192.168.1.0\\24

so i say the last one

Reply to
Chris O'Shea

The network statement in OSPF defines the interfaces by IP which will participate in OSPF. This can be specified by the induvidual IP address (line 2), or by any other network/subnet which includes the interface address, (network 0.0.0.0 0.0.0.0 is all interfaces).

Therefore lines 2 or 3 can be used and are correct; line 1 is incorrect.

BL

Reply to
Buzz Lightbeer

Thanks guys.

Glad I got that little confusion cleared up...took my CCNA today and it had an OSPF simulation, so lucky I checked.

Anyway, passed with around 930, so am pretty chuffed. :)

Dilan

Reply to
dilan.weerasinghe

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.