I recently switched from an old DD-WRT to newest openWRT on my WR1043ND router. I like it, initial setup via LuCI was easy. But now I have a problem that I cant solve.
I want to be able to switch my SSID guest-WLAN (wlan0-1) and my SSID family-WLAN (wlan0) on and off independently from my smarthome environment (openHAB). Both use the hardware radio0. I plan to do the remote control by sending commands via ssh. I can log in via ssh. If I send
ip link set dev wlan0 down
ip link set dev wlan0-1 down
the correct interface is switched off. Good so far. Also a
ip link show | grep wlan0
shows the correct status, e.g. in UP:
41: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000 42: wlan0-1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
I switch it to on with "up" at the end of the command. But the wlan0-1 does not turn on (UP) if I send:
ip link set dev wlan0 up ip link set dev wlan0-1 up
Why is it working for wlan0, but not for wlan0-1? Both have identical setup in LuCI. Any advice how to solve the problem?
Which command is called when I hit the Disable/Enable button in the LuCI? If I disabled/enable the SSIDs in LuCI it works as I wish. I noticed that wlan0 and wlan0-1 disappear for "ip link show", when disabled in LuCI. Is there another command called?