Hi!
I need to change the LAN configuration dynamically, without restarting the system. This is not a problem, but it is very important, that the connected clients detects this change (typically DHCP clients, I change the LAN IP range) and request a new IP address from the new pool. I tought, that I stop the LAN ports for 5-10 secs (I set it to down), but I cannot make this:
root@OpenWrt:/root# swconfig dev switch0 port 2 get link
port:2 link:up speed:100baseT full-duplex auto
root@OpenWrt:/root# swconfig dev switch0 port 2 set link down
failed
What I am doing wrong? I need this functionality on a TP-Link TL-WDR3600 model. Turning off and on the whole switch is a good solution too, because I run this in a shell script.
Thanks,
vargalex