08-25-2017 11:23 AM - edited 03-08-2019 11:50 AM
Hello experts.
As i know when OSPF go " neighbor " with others they must have the same subnetmask.
But let's consider my diagram.
R1---R2
R1 int ip add 192.168.1.1/24
R2 int ip add 192.168.2.1/24
they have the same subnetmask is /24. Why can't they go neighbor?
08-25-2017 11:35 AM
08-25-2017 11:58 AM
I know, but let's Area ID and others the same. Just consider about the IP add and subnet above.
They must have the same subnet, but why they can't go neighbor. If there're any field that define the Ip add then what is it and what packet type are they in ?
08-25-2017 11:55 AM - edited 08-25-2017 11:57 AM
Hi
OSPF also need to agree on timer, MTU and area number/type.
The subnets are different, and when the initial hello is sendt, the rest of the packets are unicasted(DBD,LSR,LSU,LSAck), exept for triggered LSU packets
In my test setup one router is 192.168.22.1/30 and the other is 192.168.22.129/25:
Aug 25 18:49:39.591: OSPF-1 HELLO Po2: Send hello to 224.0.0.5 area 0 from 192.168.22.129
Aug 25 18:49:42.233: OSPF-1 ADJ Po2: Rcv pkt from 192.168.22.2, area 0.0.0.0 : src not on
08-25-2017 12:00 PM
let's consider the rest is the same. Just consider ip add and subnetmask. I read in RFC that they must have the same subnetmask ! So there you go /24 subnetmask. Why can't they go neighbor ?
If there's any field that define Ip add then what is it? And that packet type are they in ?
08-25-2017 12:04 PM
08-26-2017 02:29 AM
Thanks for replying !
So first R1 : it'll send the Hello packet to 224.0.0.5 and R2 which is running OSPF will catch it right !
Then R2 send unicast back to R1 but R1 never receive because they're in different subnet right ?
Or Then R2 can't send unicast back to R1 because they're in different subnet ?
08-25-2017 03:11 PM
Hello
@tuanjggaa wrote:Hello experts.
As i know when OSPF go " neighbor " with others they must have the same subnetmask.But let's consider my diagram.
R1---R2
R1 int ip add 192.168.1.1/24R2 int ip add 192.168.2.1/24
they have the same subnetmask is /24. Why can't they go neighbor?
They may have the same subnet mask but are not in the same network range so they wont make an adjecency.
res
Paul
08-26-2017 02:29 AM
08-25-2017 04:59 PM - edited 08-27-2017 05:41 AM
Hi
In OSPF must match some terms, like MTU, Timers and the network under the interface Point to Point. In your case you have 2 different networks on each interface: 192.168.1.1 and 192.168.2.1 unless your network is a /22 (but you will waste many ip addresses) it can work otherwise it will never make a neighborship.
Just for testing you can change the subnet mask under each interface to 255.255.252.0 and it will come up.
The best recommended subnet masks for a Point to Point are:
/31 255.255.255.254 (verify if your device supports it)
/30 255.255.255.252
:-)
08-26-2017 02:29 AM
08-27-2017 05:42 AM
You are welcome, have a great day.
:-)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide