cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3468
Views
11
Helpful
6
Replies

Add network statement to exsiting OSPF config

NGJ
Level 1
Level 1

Hi, quick query to confirm I'm adding OSPF statements correctly.

 

On our core L3 switch we have an existing ospf config (ive left out all details apart from one example) i.e.

 

router ospf 1

  router-id x.x.x.x

  network 10.10.10.0 0.0.0.255  area 0

 

If I want to add another network statement

  network 10.10.20.0 0.0.0.255 area 0

 

Do I just go into the 'router ospf 1' sub command and add the additional statement - or will this overwrite what already exists there?

 

Thanks

 

Thanks

1 Accepted Solution

Accepted Solutions

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

You just go under ospf router and add the new command.  It will not override the other one as this is a new statement.

config t

router ospf 1

network 10.10.20.0 0.0.0.255 area 0

 

HTH

View solution in original post

6 Replies 6

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

You just go under ospf router and add the new command.  It will not override the other one as this is a new statement.

config t

router ospf 1

network 10.10.20.0 0.0.0.255 area 0

 

HTH

Thanks for the confirmation.  Its as I hoped/expected but needed confirmation before I tried.

mkazam001
Level 3
Level 3

alternatively:

interface fa0/1

 ip ospf 1 area 0

regards

mk

Thanks for the alternative option

Thanks for the alternative option

Hello

 


@NGJ wrote:

Hi, quick query to confirm I'm adding OSPF statements correctly.

 

On our core L3 switch we have an existing ospf config (ive left out all details apart from one example) i.e.

 

router ospf 1

  router-id x.x.x.x

  network 10.10.10.0 0.0.0.255  area 0

 

If I want to add another network statement

  network 10.10.20.0 0.0.0.255 area 0

 

Do I just go into the 'router ospf 1' sub command and add the additional statement - or will this overwrite what already exists there?

 


you can do that or another option is you can apply it via the actual interface you want advertising

 

int x/x

ip ospf 1 area 0


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card