Community discussions

MikroTik App
 
humbfig
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Sat Jul 14, 2018 6:03 am

Using a hap AC as a switch

Tue Oct 22, 2019 11:53 pm

Hi,
I have a home gateway router (hex S) connected to a hap AC to provide wireless network. So far, I've been using the hap AC as a dhcp server with a different subnet from the hex S. The problem is, I need the wifi clients to be in the same network as all the other devices due to dlna, wireless printer, etc...
So, I came up with the idea of using the hap AC as a switch:
1) I removed the dhcp server
2) I removed the ip-pool addresses previously used by the dhcp server
3) I enrolled all ports on the bridge (including the wireless ports and the sfp port, which is the one connected to the hex S)
4) I created a dhcp relay directing all requests to the hex S

Well, it doesn't work. I can't get an ip address from the wireless ports, neither from the ethernet ports of the hap AC.
What am I missing?
Thanks.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 12994
Joined: Thu Mar 03, 2016 10:23 pm

Re: Using a hap AC as a switch

Wed Oct 23, 2019 12:10 am

You don't need DHCP relay. And remove all firewall at least temporarily.
 
humbfig
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Sat Jul 14, 2018 6:03 am

Re: Using a hap AC as a switch

Wed Oct 23, 2019 1:21 am

You don't need DHCP relay. And remove all firewall at least temporarily.
I removed all filters and the nat masquerade. Tried it with and without the dhcp relay. Still can't get an ip.
I notice the sfp port in the bridge tab was disabled.....
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: Using a hap AC as a switch

Wed Oct 23, 2019 1:37 am

Did you put ether1 inside the bridge too? I guess that is the port that connects you with the main router...

DHCP works in layer 2, if you bridged all your ports and connected any of them with your main router it should work without problems...

Edit: now i saw you use the sfp port... if it shows disabled then there is no connection between your router and the hap...
 
humbfig
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Sat Jul 14, 2018 6:03 am

Re: Using a hap AC as a switch

Wed Oct 23, 2019 2:14 am

Did you put ether1 inside the bridge too? I guess that is the port that connects you with the main router...

DHCP works in layer 2, if you bridged all your ports and connected any of them with your main router it should work without problems...

Edit: now i saw you use the sfp port... if it shows disabled then there is no connection between your router and the hap...
It's disabled in the bridge, like it wants to keep being a WAN. The connection to the main router keeps working. That's how I can program the hap AC, since My computer is connected to the hex S through a switch in another room.

Edit: I thought maybe the sfp port "doesn't like" to be bridged. I disconnected it and routed a cable from the hex S to the eth1 port. Guess who showed up disabled in the bridge...
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: Using a hap AC as a switch

Wed Oct 23, 2019 8:38 am

Maybe there is a loop and RSTP disables your ports...
 
humbfig
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Sat Jul 14, 2018 6:03 am

Re: Using a hap AC as a switch

Wed Oct 23, 2019 4:00 pm

Maybe there is a loop and RSTP disables your ports...

Can't see how could there be a loop. Anyway, no ports are disabled. It's just that the port used as wan in the "quickset menu" pops out of the bridge. That kind of makes sense. But I try not to program anything in the quickset menu, hoping it will not disturb the programming on the webconfig or terminal. Last time I checked, it jumped from AP mode to WISP mode. The thing is, there is no mode in the quickset compatible with using this router as a switch. I'm getting the feeling it's just not possible.....
 
User avatar
xvo
Forum Guru
Forum Guru
Posts: 1237
Joined: Sat Mar 03, 2018 1:12 am
Location: Moscow, Russia

Re: Using a hap AC as a switch

Wed Oct 23, 2019 4:26 pm

Don’t ever use quickset after you made some changes from initial configuration.
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: Using a hap AC as a switch

Wed Oct 23, 2019 5:58 pm

Don’t ever use quickset after you made some changes from initial configuration.
Actually, never use quick set :D
+1
 
User avatar
xvo
Forum Guru
Forum Guru
Posts: 1237
Joined: Sat Mar 03, 2018 1:12 am
Location: Moscow, Russia

Re: Using a hap AC as a switch

Wed Oct 23, 2019 6:13 pm

Actually, never use quick set :D
It's tempting to always advice that, but the truth is, ROS is quite a complicated thing for those who see it for the first time, especially for "home" users.
So it is either quickset or "i'll better go and buy something else" for them.
Don't think it is wise to encourage people to go that road. :)
 
humbfig
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Sat Jul 14, 2018 6:03 am

Re: Using a hap AC as a switch

Wed Oct 23, 2019 6:30 pm

Don’t ever use quickset after you made some changes from initial configuration.

What if you don't use it but you check on it, just to know what your programming is "doing"?
You find some red fields stating that you must write something. You find some working modes that you don't even know or care about....
In my case you could also find that you lost your 5GHz wifi....
And since that there is no mode in quickset that allows not to nominate a port as WAN, and something will always be written on the "WAN field" and you find that whatever port is written in that field, it pops out of your bridge, you wander if it is really possible to program this thing to be used as a switch....
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: Using a hap AC as a switch

Wed Oct 23, 2019 6:44 pm

What if you don't use it but you check on it, just to know what your programming is "doing"?
Since i never used or use quickset i dont know if it works that way but i guess it doesnt...
 
User avatar
xvo
Forum Guru
Forum Guru
Posts: 1237
Joined: Sat Mar 03, 2018 1:12 am
Location: Moscow, Russia

Re: Using a hap AC as a switch

Wed Oct 23, 2019 7:31 pm

What if you don't use it but you check on it, just to know what your programming is "doing"?
You find some red fields stating that you must write something. You find some working modes that you don't even know or care about....
In my case you could also find that you lost your 5GHz wifi....
And since that there is no mode in quickset that allows not to nominate a port as WAN, and something will always be written on the "WAN field" and you find that whatever port is written in that field, it pops out of your bridge, you wander if it is really possible to program this thing to be used as a switch....
As long as you press cancel after that, you are safe.
But it's better to learn how to look for those things without entering quickset :)

And by the way there are modes that do not have a WAN config: WISP AP, and then Configuration - Mode: Bridge.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 21952
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Using a hap AC as a switch

Wed Oct 23, 2019 8:00 pm

On my capacs, I use WISP AP mode I think thats what its called.
This is like a default quickset setup that gets one to the point of making minor changes to the config and the one is up and running.
No firewall rules to setup etc.
Simply assign wifi settings and ensure port interfaces are identified.
My cap acs are connected through vlans, so I identify those vlan interfaces appropriately.
(one bridge for all connected devices)
 
humbfig
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Sat Jul 14, 2018 6:03 am

Re: Using a hap AC as a switch

Thu Oct 24, 2019 4:03 am

As long as you press cancel after that, you are safe.
But it's better to learn how to look for those things without entering quickset :)

And by the way there are modes that do not have a WAN config: WISP AP, and then Configuration - Mode: Bridge.

Well, I tried to start from the WISP AP mode bridge. It was such a mess I was ready to give up. Then I decided to pretend there's no such thing as "quickset", and finally I got it done. What I was missing from the start, I think, was the disabling of the WAN in the interface list.

Thanks for the help!
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 21952
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Using a hap AC as a switch  [SOLVED]

Thu Oct 24, 2019 4:44 pm

Glad to hear you are having success!!

Who is online

Users browsing this forum: ridict and 14 guests