You are here

MikroTik hAP change VLAN

9 posts / 0 new
Last post
iz5fsa
iz5fsa's picture
MikroTik hAP change VLAN
Is there a way to set another eth port as D2D?
Change it from VLAN1 to VLAN2, I suppose...
--
73 de Leo IZ5FSA
 
AE6XE
AE6XE's picture
at least a couple of ways to
at least a couple of ways to add more interfaces.  Could bridge and continue to use vlan 2.  Adding more vlans wouldn't be compatible and require custom changes to the other side.     It might meet the need to add a dumb switch to add more ports?  If this was the hap ac lite dtdlink port 5, then could add this dumb switch and have many dtdlink ports for other devices. 

Joe AE6XE
iz5fsa
iz5fsa's picture
No chance to have 2 port D2D
No chance to have 2 port D2D on hAP?
AE6XE
AE6XE's picture
Take a look at the following
Take a look at the following files where edits could be manually made to convert a lan to dtdlink port:

/etc/board.json  <- probably do not need to make any edits here
/etc/aredn_include/swconfig

be sure to 'save settings' to apply and update /etc/config/* files.

Joe AE6XE
iz5fsa
iz5fsa's picture
hAP VLAN Switch

Trying to find a solution without another dumb switch inside my node setup... to avoid melting it and smoke in the shack...

That's hAP default setup:
eth0   WAN  vlan0   vlan1   vlan2
eth1   LAN   vlan0   vlan1   --
eth2   LAN   vlan0   vlan1   --
eth3   LAN   vlan0   vlan1   --
eth4   D2D   --        --        vlan2
wlan1 D2D   --        --        vlan2
wlan2 D2D   vlan0   vlan1   --

NOTES
wlan1 is 2.4GHz configured as AREDN NODE
wlan2 is 5.7GHz configured as AP (or powered off)
eth4 is the POE switch port

I want to make eth3 same def as eth4 so i can insert another link to the net

I need to change /etc/aredn_include/swconfig to (in bold changed statements):

config switch
    option name 'switch0'
    option reset '1'
    option enable_vlan '1'
config switch_vlan
        option device 'switch0'
        option vlan '0'
        option ports '4 3 0t'
config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '2t 1t 0t'
config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '2t 1t 0t'

then I need to reboot to change /etc/config/network, isn't it?
This mod don't look to work well so I've backup to original.
I think I don't understand port assignment in config file.
Any trick?

Thanks de Leo IZ5FSA

 

AE6XE
AE6XE's picture
Leo,  yes, this looks right
Leo,  yes, this looks right to me.    Internally to the cpu, the mapping to external ports is reversed:

  external     internal
    none        cpu on '0' (eth1)
      5               1   (eth1)
      4               2   (eth1)
      3               3   (eth1)
      2               4   (eth1)
    WAN          N/A (on eth0 another chip)

"save" in basic setup, then you see these definitions in /etc/config/network, correct?   This config file is the correct definition and openwrt reboots?   It should work.  I can test later if still no luck.

Joe AE6XE
KB9OIV
Dumb switch works. Just make
Dumb switch works. Just make sure to turn off the POE out on Port 5 first. I have melted a switch that just was not designed for 24v DC bias, I guess.
K6CCC
K6CCC's picture
Better yet, build a custom
Better yet, build a custom cable that only has the data wires (1, 2, 3, & 6).  According to a post in another thread, the hAP will still give POE out at initial powerup until the AREDN code gets running and turns it off.
AE6XE
AE6XE's picture
I had looked into the
I had looked into the specifications previously, and I recall that the  hap ac lite POE passthrough port requires a particular load/resistance range to supply power.  This guards against smoking the chip -- open/short circuits, etc.   I've not been paying attention and plugging port 5 into various switches and I've not smoked anything yet :) .  There must have been some combination of power still supplied and load on the switch to melt it. 

Although, it is concerning the hap ac lite will power on with POE on, before AREDN is running to turn it off.    This must be in the mikrotik bootloader, the 1st control firmware running to turn POE on.   If so Mikrotik must have had confidence the device itself wouldn't smoke.   

Joe AE6XE

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer