Hello, I'm having some frustration with setting the default vlan port assignments in nvram.
I have an AC87U running the latest stable build of Merlin (378.50)
The unit is set in AP mode, 1 guest wifi, jffs (and jffs scripts) enabled, ssh enabled etc.
The goal is to have port 0 (which is the "WAN" port) set to not be assigned to vlan1, without relying on a script to do so. I don't care if the port is even set to any vlan by default, just so long as it is not on vlan1. The scripts in jffs can do the rest but I want something more reliable than the jffs scripts for this part of the configuration.
Unfortunately when I try to set that up and reboot my settings are lost. commands used:
nvram set vlan1ports="1 2 3 4 7*"
nvram set vlan2ports="0 7"
nvram commit
reboot
I have tried with and without setting port0 to be part of vlan2.
the only difference between what I set and default is what vlan port 0 is assigned to. Checking nvram after the commit shows that the setting was changed. After a reboot, the vlans come back as default however.
I did try to search on these forms but did not run across anything useful. I'm aware that just using scripts is going to work 99% of the time, but I need to get to 99.9% of the time as this will be going in a small office and I don't want to have to "babysit" the device
I have an AC87U running the latest stable build of Merlin (378.50)
The unit is set in AP mode, 1 guest wifi, jffs (and jffs scripts) enabled, ssh enabled etc.
The goal is to have port 0 (which is the "WAN" port) set to not be assigned to vlan1, without relying on a script to do so. I don't care if the port is even set to any vlan by default, just so long as it is not on vlan1. The scripts in jffs can do the rest but I want something more reliable than the jffs scripts for this part of the configuration.
Unfortunately when I try to set that up and reboot my settings are lost. commands used:
nvram set vlan1ports="1 2 3 4 7*"
nvram set vlan2ports="0 7"
nvram commit
reboot
I have tried with and without setting port0 to be part of vlan2.
the only difference between what I set and default is what vlan port 0 is assigned to. Checking nvram after the commit shows that the setting was changed. After a reboot, the vlans come back as default however.
I did try to search on these forms but did not run across anything useful. I'm aware that just using scripts is going to work 99% of the time, but I need to get to 99.9% of the time as this will be going in a small office and I don't want to have to "babysit" the device