OSPF -> /32 -> WDS

Ok, I’m not entirely sure what’s going on here…

I’ve got 2 mikrotiks communicating across an Atheros 5.8ghz link using WDS…

I can ping both devices but OSPF refuses to talk.

Can anyone help, attached is my configuration

MikrotikA

/ ip address 
add address=172.16.12.1/32 network=172.16.12.2 broadcast=255.255.255.255 \
    interface=wds1 comment="" disabled=no 
add address=192.168.0.251/24 network=192.168.0.0 broadcast=192.168.0.255 \
    interface=ether1 comment="" disabled=no

/ ip route 
add dst-address=0.0.0.0/0 preferred-source=0.0.0.0 gateway=192.168.0.1 \
    distance=1 comment="" disabled=no 

/ routing ospf 
set router-id=0.0.0.0 distribute-default=if-installed-as-type-1 \
    redistribute-connected=as-type-1 redistribute-static=no \
    redistribute-rip=no redistribute-bgp=no metric-default=1 \
    metric-connected=20 metric-static=20 metric-rip=20 metric-bgp=20 
/ routing ospf area 
set backbone area-id=0.0.0.0 authentication=none disabled=no 
/ routing ospf interface 
add interface=wds1 cost=1 priority=1 authentication-key="" \
    retransmit-interval=5s transmit-delay=1s hello-interval=10s \
    dead-interval=40s 
/ routing ospf network 
add network=172.16.12.2/32 area=backbone disabled=no

MikrotikB

/ ip address 
add address=172.16.12.2/32 network=172.16.12.1 broadcast=255.255.255.255 \
    interface=wds1 comment="" disabled=no 

/ routing ospf 
set router-id=0.0.0.0 distribute-default=never \
    redistribute-connected=as-type-1 redistribute-static=no \
    redistribute-rip=no redistribute-bgp=no metric-default=1 \
    metric-connected=20 metric-static=20 metric-rip=20 metric-bgp=20 
/ routing ospf area 
set backbone area-id=0.0.0.0 authentication=none disabled=no 
/ routing ospf interface 
add interface=wds1 cost=1 priority=1 authentication-key="" \
    retransmit-interval=5s transmit-delay=1s hello-interval=10s \
    dead-interval=40s 
/ routing ospf network 
add network=172.16.12.1/32 area=backbone disabled=no
  1. Both your MT’s have the same OSPF Router ID.
    Try this command on one of your MT’s:-

routing ospf set router-id=0.0.0.1


2) And possibly (I’ll have to double check this):-
From memory /32 doesnt work properly as an OSPF network.

/ routing ospf network add network=172.16.12.2/32
should read
/ routing ospf network add network=172.16.12.0/24

Only try 2) if 1) doesnt fix the problem…

ospf router id should be the highest ip-addess given to a local osp-interface.

see: http://relcom.net/CURS/OSPF/1.html

the wireless ip subnet is misconfigured (as mentioned by freman). /32 subnets are talking only to themself.

If you don’t specify a the routerid it will automaticly discover/allocate one.

I’ve since tried the following configuration…

Machine 1:
/ip address add address=172.16.13.1/32 network=172.16.13.2 interface=wds1
/routing ospf network add 172.16.13.2/32 area=backbone disabled=no
/routing ospf interface add interface=wds1
/routing ospf set distribute-default=as-type-1

Machine 2:
/ip address add address=172.16.13.2/32 network=172.16.13.1 interface=wds1
/routing ospf network add 172.16.13.1/32 area=backbone disabled=no
/routing ospf interface add interface=wds1
/routing ospf set redistribute-connected=as-type-1

The OSPF still isn’t working…

I can ping between the routers fine…

I know it looks the same but it sets the broadcast to the same address as the network this way.

The manual says I can configure ospf for a point to point link, so far I’ve been unable to achive this.

More ideas?

i meant the ip-address of the interface itself, not the ospf-interface. a /32 ip-address usually does not make sense.

hmm, i didn’t follow the manual in this case (and OSPF is working for me…:wink:


I’ve since tried the following configuration…

Machine 1:
/ip address add address=172.16.13.1/32 network=172.16.13.2

Machine 2:
/ip address add address=172.16.13.2/32 network=172.16.13.1 interface=wds1

i dont’t think thats correct./routing ospf network add 172.16.13.1/32

why not using some standard transfer-net between the routers, e.g.
rt1: 172.16.13.1/30
rt2: 172.16.13.2/30
(network 172.16.13.0/30)

perhaps i misunderstood this: are you trying to configure an unnumberd point-to-point link?

i haven’t tried OSPF on unnumbered point-to-point links yet. (if someone has a working configuration for this, i would be interested to know:)

regards.
matthias