Page 1 of 1

New Hap AC2, no internet

Posted: Sat Nov 23, 2019 4:56 am
by abiv
Hi, my previous routers all I had to do was change MAC address and they would work.

I just got the Hap AC2, changed ip, changed the MAC address, and no internet, dhcp client can't get an address. What am I doing wrong?
[admin@MikroTik] > export compact hide-sensitive 
# jan/02/1970 00:25:56 by RouterOS 6.45.7
# software id = 8LK7-GMFU
#
# model = RBD52G-5HacD2HnD
# serial number = [removed]
/interface bridge
add admin-mac=CC:2D:E0:FB:1C:64 auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether1 ] mac-address=[removed]
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=MikroTik-FB1C68 wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-XXXX disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=MikroTik-FB1C69 wireless-protocol=802.11
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk mode=dynamic-keys supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=dhcp ranges=192.168.1.10-192.168.1.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge name=defconf
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan2
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
/ip address
add address=192.168.1.1/24 comment=defconf interface=ether2 network=192.168.1.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.1.0/24 comment=defconf gateway=192.168.1.1 netmask=24
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.1.1 name=router.lan
/ip firewall filter
add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=drop chain=input comment="defconf: drop all not coming from LAN" in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
add action=drop chain=forward comment="defconf:  drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface=ether1 out-interface-list=WAN
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN

Re: New Hap AC2, no internet

Posted: Sat Nov 23, 2019 7:25 pm
by abiv
Looks like this is related to Mikrotik's dhcp-client ignoring vlan 0, have to setup a bridge to change the vlan to get it to work, but I think this is using extra CPU?

Solution at viewtopic.php?t=104169

Re: New Hap AC2, no internet

Posted: Sat Nov 23, 2019 8:28 pm
by mkx
It shouldn't increase CPU usage by much (probably it wouldn't be noticeable) ... as this is your WAN, every bit will have to pass CPU anyway for firewalling etc. HW offload already doesn't apply.

Re: New Hap AC2, no internet

Posted: Sun Nov 24, 2019 3:29 pm
by saint739
Just downgrade on long term 6.44.6

Re: New Hap AC2, no internet

Posted: Mon Nov 25, 2019 5:43 am
by razortas
You have your local ip 192.168.1.1 on ether2 yet you are doing DHCP on Bridge