12-07-2018 12:46 AM
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
!
Solved! Go to Solution.
12-07-2018 12:59 AM - edited 12-07-2018 01:00 AM
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
12-07-2018 12:54 AM - edited 12-07-2018 01:44 AM
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.
12-07-2018 12:55 AM
so paul my configuration is correct like that and no no need to add network command correct?
12-07-2018 12:59 AM - edited 12-07-2018 01:00 AM
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
12-07-2018 01:40 AM
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
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: