I use OSPF to route IP addresses on a LAN. I have some IP addresses that are for local clustering use and some that are to be broadcast to the whole system. I am looking to update my equipment from ROS 6.49 to 7.5 but I can’t get the 7.5 systems not to broadcast all IP addresses on an interface.
Minimal Example.
Node1:
/ip add pr
Columns: ADDRESS, NETWORK, INTERFACE
ADDRESS NETWORK INTERFACE
0 172.30.98.5/24 172.30.98.0 Dummy
1 169.254.98.5/24 169.254.98.0 Dummy
/routing ospf instance
add disabled=no name=ospf-instance-1 router-id=172.30.98.5
/routing ospf area
add disabled=no instance=ospf-instance-1 name=backbone
/routing ospf interface-template
add area=backbone dead-interval=1m disabled=no hello-interval=1s interfaces=Dummy type=ptmp-broadcast
I want the 172.30.98.5 to be broadcast over ospf so it can be reached from other parts of my system, but the 169.254.98.5 not to be, so the 169.254.98.5 address is only reachable to equipment connected on a flat bridge (it allows us to make some tunnels that only work if our meshed system is undamaged, while the 172.30.98.5 address can be reached if any route to the node exists even via other areas of the network).
I have tried setting route filtering rules:
/routing filter rule
add chain=ospf-in disabled=no rule=“if ( dst in 169.254.0.0/16 ) { reject }”
add chain=ospf-in disabled=no rule=accept
add chain=ospf-out disabled=no rule=“if ( dst in 169.254.0.0/16 ) { reject }”
These are not working to prevent the ospf routes showing up everywhere. On ROS6.49 I would simply use the routing ospf network menu
/routing ospf network
add area=backbone network=172.30.0.0/16
Failing to put in a line for “add area=backbone network=169.254.0.0/16” stopped these being broadcast over ospf. Now I can’t seem to manage that.
I apologize if this has been covered before - I did try to search for this but couldn’t find anyone
Any help would be appreciated.