Question:
OSPF HELP for cisco routers?
?
2010-02-03 04:32:58 UTC
I am configuring a network for my uni assignment and need help with OSPF

I have completed the rest and now stuck with OSPF. I have configured it so far but the routers will not see the OSPF neighbours. I have typed the config i have done so far below and would really appreciate help with what i have done wrong and what is missing thanks.

I need to configure OSPF between Router 1 and 2 with the interface 0/0/0 on each.
Currently they dont see each other but they will ping each other but wont ping the rest of the network.

ROUTER 1
interface 0/0/0 with an ip address 10.1.1.2 255.255.255.252
interface 0/0/1 with an ip address 209.165.200.226 255.255.255.252
using a default static of route on interface 0/0/1


config t
router ospf 1
router-id 1.2.2.2
network 10.1.1.2 0.0.0.3 area 0
end

ROUTER 2
interface 0/0/0 with an ip address 10.1.1.1 255.255.255.252
interface 0/0/1 with an ip address 172.17.1.1 255.255.255.0


config t
router ospf 1
router-id 1.1.1.1
network 10.1.1.1 0.0.0.3 area 0
end
Four answers:
Andrew S
2010-02-03 06:39:32 UTC
I refer you to the identical questions you asked yesterday which you deleted. You obviously haven't paid attention since you are still making one of the same mistakes I pointed out then.
Quadratic
2010-02-03 20:01:46 UTC
If the goal is to have the routers learn about each other's subnets via OSPF, the above answer is almost correct. Watch for those wildcard masks. The listed "network 209.165.200.224 0.0.0.0 area 0" command for example should be replaced with "network 209.165.200.224 0.0.0.3 area 0" since it's a /30 subnet, not the single host. Remember that wildcard masks in this case can be treated as reversed subnet masks.



It's interesting how the question is worded though. You say you cannot "see the OSPF neighbours" which implies a problem with the OSPF adjacency/neighborship itself, but the neighborship between those two routers should be stable with the configuration you listed.



One good command to spot this kind of problem is the "show ip ospf interface [interface]" command. It would have come back at you with: "%OSPF: OSPF not enabled on Fa0/0/0" in this case, which should have pointed you towards a missing or misconfigured network statement under the OSPF routing process.
2010-02-04 06:17:55 UTC
As pointed out, you need to fix your masking. Also, what type of interface is 0/0/0 ... is it serial or is it Ethernet? Are there other routing protocols running on it? Check for things like: NBMA and network-type mismatches (especially if one side is Ethernet and the other Serial or the like). OSPF has some of the best debugging available, since this is a lab, feel free to use it.

show ip ospf neighbor (what is the state, or is there one)

show ip ospf interface (what is the network time, hello-interval and dead-interval)

debug ip ospf adjacency

Hope this helps.
Jagadeeswararao
2010-02-03 06:53:40 UTC
I think you have to add

Router(config)#router ospf 1

Router(config-router)#network 209.165.200.224 0.0.0.0 area 0

and

Router(config-router)#network 172.17.1.0 0.0.0.0 area 0

in both the routers



check it once I have tried this problem using Cisco packet tracer I got this



thanks for giving me this problem I refer ospf once because I am preparing for ccna Examination.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...