cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Cisco announces new innovations in SD-WAN, ISRs, SD-WAN Services, and Catalyst 9000 Series switches


101
Views
5
Helpful
4
Replies

OSPF configuration

i am adding ospf configuration but don't know if i should use network command in router configuration or i have to enable ospf on the interface 

(config)# router ospf 100

(config-router)# router-id 10.153.106.62

(config-router)# redistribute static subnets

(config-router)# redistribute connected subnets

(config-router)# passive-interface default

(config-router)# log-adjacency-changes

(config-router)# no discard-route

############# should i add network 10.153.106.0  0.0.0.255 area 0 or the interface configuration is enough  ############ 

(config)# interface Vlan 1

(config-if)# description *** OSPF Peering with router2***

 (config-if)# ip router ospf 100 area 0

(config-if)# no shutdown

(config-if)# no ip ospf passive-interface 

!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
VIP Advisor

Re: OSPF configuration

Hello David

Looks okay to me and yes no need for network command -
Just remember to use : no passive interface xxx for any interface you would like to form an adjacency



kind regards
Paul

Please don't forget to rate any posts that have been helpful.
4 REPLIES
VIP Advisor

Re: OSPF configuration

Hello

Its much better to apply ospf on the physical interface, it less prone to typos, it only activates ospf on that interface and in newer IOS , opsfv3  and nx-os its the only way.



kind regards
Paul

Please don't forget to rate any posts that have been helpful.

Re: OSPF configuration

@paul driver

so paul my configuration is correct like that and no no need to add network command correct?

Highlighted
VIP Advisor

Re: OSPF configuration

Hello David

Looks okay to me and yes no need for network command -
Just remember to use : no passive interface xxx for any interface you would like to form an adjacency



kind regards
Paul

Please don't forget to rate any posts that have been helpful.
Participant

Re: OSPF configuration

you can configure ospf in 2 ways here:

router ospf 100

 network 10.153.106.0 0.0.0.255 area 0

or

int vlan 1

 ip router ospf 100 area 0

btw, if both these configs were on the same router, the interface config would be used

regards, mk

CreatePlease to create content
Ask the Expert- DMVPN on Cisco routers