cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
174
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
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 rate and mark posts accordingly if you have found any of the information provided useful.
It will hopefully assist others with similar issues in the future
4 REPLIES 4
Highlighted
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 rate and mark posts accordingly if you have found any of the information provided useful.
It will hopefully assist others with similar issues in the future

Re: OSPF configuration

@paul driver

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

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 rate and mark posts accordingly if you have found any of the information provided useful.
It will hopefully assist others with similar issues in the future
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
Content for Community-Ad

Ask the Expert French- routing protocols