Community discussions

MikroTik App
 
abiv
just joined
Topic Author
Posts: 24
Joined: Sat Nov 23, 2019 4:51 am

New Hap AC2, no internet

Sat Nov 23, 2019 4:56 am

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
 
abiv
just joined
Topic Author
Posts: 24
Joined: Sat Nov 23, 2019 4:51 am

Re: New Hap AC2, no internet

Sat Nov 23, 2019 7:25 pm

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
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13033
Joined: Thu Mar 03, 2016 10:23 pm

Re: New Hap AC2, no internet

Sat Nov 23, 2019 8:28 pm

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.
 
saint739
just joined
Posts: 3
Joined: Wed Jul 31, 2019 8:16 am

Re: New Hap AC2, no internet

Sun Nov 24, 2019 3:29 pm

Just downgrade on long term 6.44.6
 
razortas
newbie
Posts: 40
Joined: Tue Nov 20, 2012 1:07 am

Re: New Hap AC2, no internet

Mon Nov 25, 2019 5:43 am

You have your local ip 192.168.1.1 on ether2 yet you are doing DHCP on Bridge

Who is online

Users browsing this forum: erlinden, hpeters, krissg and 68 guests