Old router as ethernet AP taking long to assign IP's

Hello all.

I have an old d-link router that i have setup as an access point. I have assigned it a static IP of 192.168.88.3 and have set its DNS to that of the mikrotik (192.168.88.1). I have also switched the DHCP server off on the d-link router. I have then connected it to the mikrotik via ethernet.

Problem:

When connecting to the AP it takes about 3-4 min to connect and to gain internet access. Im not sure why this would be happening. It seems that the MikroTik being the DHCP server takes forever to auth and assign an IP?

If anyone has had this problem and knows how to fix it would be greatly appreciated.

TIA.

My first suspicion will be wireless interference, cable problem, or L2 problems from the d-link router to the mikrotik one.

What do you mean with DHCP Auth? Are you using radius?

Posting a configuration export will help.

Update:

I got home and plugged another laptop into the AP router and it assigned an IP straight away and it was able to access the net. I unplugged and plugged the network cable in and out and it was fast in assigning an IP.

I then disabled the Wifi on the MikroTik router and just had the AP running. I was then able to join and unjoin the AP just like i could via ethernet which is great.

What ive noticed:

Ive noticed that when joining the MK wireless first and then joining the AP wireless straight after it takes forever to assign an IP on the AP wireless. This is obviously the problem and im not sure what it might be.

Its almost like its slow to release the first connection and then to reconnect via the AP.

My SSID’s are different but this has no impact.

TIa

Hard to know without a configuration export, dlink config screenshots and describing your setup (see the link in my sig)

sep/14/2016 20:12:27 by RouterOS 6.36.3

software id = P9CW-JBX7

/interface bridge
add admin-mac=E4:8D:8C:4B:A1:E8 auto-mac=no name=bridge-local
/interface ethernet
set [ find default-name=ether2 ] comment="D-Link Router in the study"
name="Access Point"
set [ find default-name=ether1 ] comment=
"Port that connects to Netgear" name=Internet
set [ find default-name=ether4 ] comment=
"All media content stored here" master-port="Access Point" name=
Media-Pc
set [ find default-name=ether3 ] comment="Apple Tv / Viera Tv"
master-port="Access Point" name="Tv Area"
set [ find default-name=ether5 ] master-port="Access Point" name=
ether5-slave-local
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=
20/40mhz-Ce disabled=no distance=indoors frequency=auto mode=
ap-bridge ssid=3_stanley_road wireless-protocol=802.11
/interface pptp-client
add connect-to= keepalive-timeout=disabled name=
"IPXCore VPN" password= user=
/ip neighbor discovery
set "Access Point" comment="D-Link Router in the study"
set Internet comment="Port that connects to Netgear" discover=no
set Media-Pc comment="All media content stored here"
set "Tv Area" comment="Apple Tv / Viera Tv"
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk mode=
dynamic-keys wpa-pre-shared-key=0824145666 wpa2-pre-shared-key=
0824145666
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip ipsec proposal
set [ find default=yes ] enc-algorithms=aes-128-cbc
/ip pool
add name=dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=dhcp authoritative=yes disabled=no interface=
bridge-local name=default
/system logging action
set 1 disk-file-name=log
/interface bridge port
add bridge=bridge-local interface="Access Point"
add bridge=bridge-local interface=wlan1
/ip address
add address=192.168.88.1/24 comment="default configuration" interface=
"Access Point" network=192.168.88.0
/ip arp
add address=192.168.88.250 interface=bridge-local mac-address=
80:E6:50:14:F1:F8
/ip cloud
set ddns-enabled=yes
/ip dhcp-client
add comment="default configuration" dhcp-options=hostname,clientid
disabled=no interface=Internet
/ip dhcp-server lease
add address=192.168.88.251 always-broadcast=yes client-id=
1:f8:d:60:db:8:1b comment="Canon Printer" mac-address=
F8:0D:60:DB:08:1B server=default
/ip dhcp-server network
add address=192.168.88.0/24 comment="default configuration" gateway=
192.168.88.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 name=router
/ip firewall address-list
add address=8.8.8.4 list=GOOGLE_DNS
add address=8.8.8.8 list=GOOGLE_DNS
add address=108.175.32.0/20 list=GOOGLE_DNS
add address=198.38.96.0/19 list=GOOGLE_DNS
add address=198.45.48.0/20 list=GOOGLE_DNS
add address=185.2.220.0/22 list=GOOGLE_DNS
add address=23.246.0.0/18 list=GOOGLE_DNS
add address=37.77.184.0/21 list=GOOGLE_DNS
add address=45.57.0.0/17 list=GOOGLE_DNS
add address=192.168.88.248 list=NETWORK_DEVICES
add address=192.168.88.249 list=NETWORK_DEVICES
add address=192.168.88.253 list=NETWORK_DEVICES
add address=192.168.88.254 list=NETWORK_DEVICES
add address=192.168.88.51 list=NETWORK_DEVICES
/ip firewall filter
add action=drop chain=forward comment="netflix drop rules" disabled=yes
dst-address-list=GOOGLE_DNS
add action=accept chain=input comment="default configuration" protocol=
icmp
add action=accept chain=input comment="default configuration"
connection-state=established,related
add action=accept chain=input comment=winbox dst-port=8291 protocol=tcp
add action=drop chain=input comment=
"default configuration --- place rules above here " in-interface=
Internet
add action=fasttrack-connection chain=forward comment=
"default configuration" connection-state=established,related
add action=accept chain=forward comment="default configuration"
connection-state=established,related
add action=drop chain=forward comment="default configuration"
connection-state=invalid
add action=drop chain=forward comment="default configuration"
connection-nat-state=!dstnat connection-state=new in-interface=
Internet
/ip firewall mangle
add action=mark-routing chain=prerouting disabled=yes new-routing-mark=
IPXCore passthrough=yes src-address-list=NETWORK_DEVICES
/ip firewall nat
add action=dst-nat chain=dstnat comment="netflix dns redirect"
disabled=yes dst-address-list=GOOGLE_DNS to-addresses=192.168.88.1
add action=masquerade chain=srcnat comment="default configuration"
out-interface=Internet
add action=masquerade chain=srcnat disabled=yes out-interface=
"IPXCore VPN"
/ip route
add disabled=yes distance=1 gateway="IPXCore VPN" routing-mark=IPXCore
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www port=4080
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/system clock
set time-zone-name=Africa/Johannesburg
/system leds
set 5 interface=wlan1 leds=""
/system logging
add action=remote topics=dhcp
/system routerboard settings
set cpu-frequency=650MHz protected-routerboot=disabled
/tool mac-server
set [ find default=yes ] disabled=yes
add interface="Access Point"
add interface="Tv Area"
add interface=Media-Pc
add interface=ether5-slave-local
add interface=wlan1
add interface=bridge-local
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface="Access Point"
add interface="Tv Area"
add interface=Media-Pc
add interface=ether5-slave-local
add interface=wlan1
add interface=bridge-local



One more pic
Screen Shot 2016-09-14 at 20.48.48.png

For this setup to work, the Dlink should transparently bridge its wlan interface to its ether ports (in the same way you bridged the mikrotik ether master port + wlan interface), and it seems this is not the case, or at least isn’t that transparent. That’s why wired connections on the dlink don’t have problems getting DHCP from the mikrotik, while wireless do.

Try investigating that d-link specific issue.

Are the dlink AP and mikrotik AP providing wireless on different seperate areas, far from each other? What’s the routerboard model?

You have another option if you’re feeling brave and want to keep the old dlink by all means: flash it to openwrt or gargoyle, then config wireless, and create a true L2 bridge with wireless interface + ethernet interface; that’s all needed.

I personally wouldn’t bother if the dlink is sporting an atheros wireless N chip, as the wireless will lock now and then while using third party firmware no matter what (opensource driver, closed source HAL driver portion issue); instead of that would get another RB, dlink with stock firmware wireless doesn’t hold a candle near Routerboards anyway, and you could manage all wireless from one of tthe routerboards by using CAPsMAN.