Community discussions

MikroTik App
 
User avatar
gozfly
just joined
Topic Author
Posts: 4
Joined: Sun Oct 08, 2017 5:07 am
Location: USA
Contact:

OSPFv3 in ROSv7 Between ROSv6

Sun Jul 09, 2023 9:22 am

OSPF version 2 runs great between the two routers regardless of router version
The problem started when configuring ospfv3 on two routers, one ros6 and the other rosv7. Doesn't find its neighbors on IPv6.

R1:
[GOZFLY@GFL.HEADEND01.RTR01] > /ipv6 address print
Flags: D - DYNAMIC; G, L - LINK-LOCAL
Columns: ADDRESS, INTERFACE, ADVERTISE
#    ADDRESS                                 INTERFACE                   ADVERTISE
;;; Transit-to-Agg01
0  G 2803:f0c0:3003::2/64                    vlan3003-transit-to-Agg01   yes      
;;; Loopback0
1  G 2803:f0c0:0:100::3/128                  Lo0                         no

[GOZFLY@GFL.HEADEND01.RTR01] > /routing ospf export
# 2023-07-09 00:02:52 by RouterOS 7.10.1
# software id = JD8R-T50M
#
# model = CCR1009-8G-1S-1S+
# serial number = 70C80419AECB
/routing ospf instance
add disabled=no name=OSPF-v2-IPv4 originate-default=never redistribute="" router-id=100.127.16.3 routing-table=main
add disabled=no name=OSPF-v3-IPv6 originate-default=never redistribute="" router-id=100.127.16.3 routing-table=main version=3
/routing ospf area
add disabled=no instance=OSPF-v2-IPv4 name=backbone
add disabled=no instance=OSPF-v3-IPv6 name=backbone-v3-IPv6
/routing ospf interface-template
add area=backbone comment=Lo0 cost=10 disabled=no interfaces=Lo0 networks=100.127.16.3/32 passive priority=1
add area=backbone comment=V3003-TO-AGG01 cost=10 disabled=no interfaces=vlan3003-transit-to-Agg01 networks=100.126.16.32/29 priority=1 type=ptp use-bfd=yes
add area=backbone comment=V3103-TO-AGG02 cost=20 disabled=no interfaces=vlan3103-transit-to-Agg02 networks=100.126.16.40/29 priority=1 type=ptp use-bfd=yes
add area=backbone-v3-IPv6 comment=Lo0 cost=10 disabled=no instance-id=1 interfaces=Lo0 passive priority=1
add area=backbone-v3-IPv6 comment=V3003-TO-AGG01 cost=10 disabled=no instance-id=1 interfaces=vlan3003-transit-to-Agg01 priority=1 type=ptp use-bfd=no

[GOZFLY@GFL.HEADEND01.RTR01] > /routing ospf neighbor print
Flags: V - virtual; D - dynamic 
 0  D instance=OSPF-v2-IPv4 area=backbone address=100.126.16.41 router-id=100.127.0.4 state="Full" state-changes=6 adjacency=9h59m10s timeout=33s 
 1  D instance=OSPF-v2-IPv4 area=backbone address=100.126.16.33 router-id=100.127.0.3 state="Full" state-changes=4 adjacency=9h59m2s timeout=35s
R2:
[GOZFLY@GFL.DC01.AGG01] > /routing ospf-v3 export
# jul/09/2023 00:15:53 by RouterOS 6.48.7
# software id = 7M73-YHHR
#
# model = CCR1036-8G-2S+
# serial number = HE208HBP18G
/routing ospf-v3 instance
set [ find default=yes ] router-id=100.127.0.3
/routing ospf-v3 interface
add area=backbone interface=lo0 network-type=broadcast
add area=backbone interface=vlan3003-transit-to-headend01 network-type=\
    point-to-point

[GOZFLY@GFL.DC01.AGG01] >  /ipv6 address print
Flags: X - disabled, I - invalid, D - dynamic, G - global, L - link-local 
 #    ADDRESS                                     FROM-POOL INTERFACE                                                                      ADVERTISE
 0  G ;;; Loopback0
      2803:f0c0::3/128                                      lo0                                                                            no         
 1  G ;;; Transit-to-Headend01
      2803:f0c0:3003::1/64                                  vlan3003-transit-to-headend01                                                  yes      
      
[GOZFLY@GFL.DC01.AGG01] > /routing ospf-v3 neighbor print

Any idea what I'm missing?
 
User avatar
gozfly
just joined
Topic Author
Posts: 4
Joined: Sun Oct 08, 2017 5:07 am
Location: USA
Contact:

Re: OSPFv3 in ROSv7 Between ROSv6  [SOLVED]

Mon Jul 10, 2023 1:48 am

Problem solved.

After a few hours observing the behavior of the packets in the OSPF protocol with the packet sniffer, I noticed that the InstanceID header had a different value due to this detail, the two routers did not know each other in IPv6.

The problem only occurred because this "InstanceID" header only exists in OSPFv3.

The solution to our problem was modify the interface to use the instance (1) in the AGG01(ROSv6) Router.

This way both sides have the same InstanceID value and are discovered.
[GOZFLY@GFL.HEADEND01.RTR01] > /routing ospf neighbor print
Flags: V - virtual; D - dynamic 
 0  D instance=OSPF-v2-IPv4 area=backbone-v2-IPv4 address=100.126.16.33 
      router-id=100.127.0.3 state="Full" state-changes=5 adjacency=28m37s 
      timeout=31s 

 1  D instance=OSPF-v2-IPv4 area=backbone-v2-IPv4 address=100.126.16.41 
      router-id=100.127.0.4 state="Full" state-changes=5 adjacency=28m34s 
      timeout=38s 

 2  D instance=OSPF-v3-IPv6 area=backbone-v3-IPv6 
      address=fe80::4aa9:8aff:fe45:20f3%vlan3003-transit-to-Agg01 
      router-id=100.127.0.3 state="Full" state-changes=5 adjacency=23m12s 
      timeout=33s
Cheers :wink:
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: No registered users and 4 guests