OSPF config question

Have a question or want to start a discussion? Post it! No Registration Necessary.  Now with pictures!

Threaded View
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


Re: OSPF config question


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




Quoted text here. Click to load it

Re: OSPF config question
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

Quoted text here. Click to load it



Re: OSPF config question

Buzz Lightbeer wrote:
Quoted text here. Click to load it

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


Site Timeline