User774
New Around Here
Hello,
I have a Asus RT-AC56U, with AsusWRT-Merlin firmware version 378.53.
This router has the eth1/wl0 (2.4 GHz) and eth1/wl1 (5 GHz).
Is possible to [create/edit/manage/start/stop/remove] a Wifi interface via command line/shell without reboot?
The default configuration uses LAN 1-4, eth0 and eth1 as VLAN1. If I enable a Guest Network via Web, lets say wl0.1, it will be added on the VLAN1.
Using "robocfg", I removed the LAN2 (switch port 1) from VLAN1 and added to VLAN4, then used "vconfig" to create the VLAN4 interface and finally "brctl" to create the br4 (this bridge will be used to later).
It is working well, the br4 have a IP address, my computer (connected to LAN2) can ping the router and vice-versa.
Now I am trying to remove the wl0.1 from VLAN1 and add to VLAN4, using a bridge interface. Example:
But when I do that, the wl0.1 just stops (the SSID is broadcasting, but if a client try to connect, it will not connect - time out)
I tried run "wl down"/"wl up", but without success.
The wired part is working (via LAN2), I can ping the router and the router can ping my computer using VLAN4 (access via ssh as well).
Do I need to restart any service? (without reboot)
Some additional information (if needed):
robocfg show
brctl show
ifconfig
iptables -S
I have a Asus RT-AC56U, with AsusWRT-Merlin firmware version 378.53.
This router has the eth1/wl0 (2.4 GHz) and eth1/wl1 (5 GHz).
Is possible to [create/edit/manage/start/stop/remove] a Wifi interface via command line/shell without reboot?
The default configuration uses LAN 1-4, eth0 and eth1 as VLAN1. If I enable a Guest Network via Web, lets say wl0.1, it will be added on the VLAN1.
Using "robocfg", I removed the LAN2 (switch port 1) from VLAN1 and added to VLAN4, then used "vconfig" to create the VLAN4 interface and finally "brctl" to create the br4 (this bridge will be used to later).
It is working well, the br4 have a IP address, my computer (connected to LAN2) can ping the router and vice-versa.
Now I am trying to remove the wl0.1 from VLAN1 and add to VLAN4, using a bridge interface. Example:
Code:
brctl delif br0 wl0.1
brctl addif br4 wl0.1
But when I do that, the wl0.1 just stops (the SSID is broadcasting, but if a client try to connect, it will not connect - time out)
I tried run "wl down"/"wl up", but without success.
The wired part is working (via LAN2), I can ping the router and the router can ping my computer using VLAN4 (access via ssh as well).
Do I need to restart any service? (without reboot)
Some additional information (if needed):
robocfg show
Code:
Switch: enabled
Port 0: DOWN enabled stp: none vlan: 1 jumbo: on mac: 00:00:00:00:00:00
Port 1: 1000FD enabled stp: none vlan: 4 jumbo: on mac: xx:xx:xx:xx:xx:xx
Port 2: DOWN enabled stp: none vlan: 1 jumbo: on mac: 00:00:00:00:00:00
Port 3: DOWN enabled stp: none vlan: 1 jumbo: on mac: 00:00:00:00:00:00
Port 4: DOWN enabled stp: none vlan: 2 jumbo: on mac: 00:00:00:00:00:00
Port 8: DOWN enabled stp: none vlan: 2 jumbo: on mac: 00:00:00:00:00:00
VLANs: BCM5301x enabled mac_check mac_hash
1: vlan1: 0 2 3 5t
2: vlan2: 4 5
4: vlan4: 1 5t
56: vlan56: 0t 3 4t 7t 8t
57: vlan57: 0 1t 2t
58: vlan58: 0 1t 2t 7t
59: vlan59: 2t 3t 7t 8u
60: vlan60: 0t 2
61: vlan61: 1t 2 4t
62: vlan62: 1 8t
brctl show
Code:
bridge name bridge id STP enabled interfaces
br0 8000.10c37bc66498 yes vlan1
eth1
eth2
br4 8000.10c37bc66498 yes vlan4
wl0.1
ifconfig
Code:
br0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:98
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:995 errors:0 dropped:0 overruns:0 frame:0
TX packets:483 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:131199 (128.1 KiB) TX bytes:45590 (44.5 KiB)
br4 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:98
inet addr:10.4.0.1 Bcast:10.4.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2541 errors:0 dropped:0 overruns:0 frame:0
TX packets:2190 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:276898 (270.4 KiB) TX bytes:250629 (244.7 KiB)
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:98
inet addr:1.1.1.1 Bcast:1.1.1.63 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2795 errors:0 dropped:0 overruns:0 frame:0
TX packets:3857 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:395456 (386.1 KiB) TX bytes:382582 (373.6 KiB)
Interrupt:179 Base address:0x4000
eth1 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:98
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:40556
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:163
eth2 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:9C
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:745 errors:0 dropped:0 overruns:0 frame:67
TX packets:961 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:84304 (82.3 KiB) TX bytes:121544 (118.6 KiB)
Interrupt:169
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MULTICAST MTU:16436 Metric:1
RX packets:312 errors:0 dropped:0 overruns:0 frame:0
TX packets:312 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:29431 (28.7 KiB) TX bytes:29431 (28.7 KiB)
vlan1 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:98
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:249 errors:0 dropped:0 overruns:0 frame:0
TX packets:950 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:57834 (56.4 KiB) TX bytes:87725 (85.6 KiB)
vlan4 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:98
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2546 errors:0 dropped:0 overruns:0 frame:0
TX packets:2586 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:287312 (280.5 KiB) TX bytes:279839 (273.2 KiB)
wl0.1 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:99
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:40556
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
iptables -S
Code:
-P INPUT ACCEPT
-P FORWARD DROP
-P OUTPUT ACCEPT
-N FUPNP
-N PControls
-N logaccept
-N logdrop
-A INPUT -i br4 -m state --state NEW -j ACCEPT
-A INPUT -i eth0 -p icmp -m icmp --icmp-type 8 -j DROP
-A INPUT -m state --state INVALID -j DROP
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -m state --state NEW -j ACCEPT
-A INPUT -i br0 -m state --state NEW -j ACCEPT
-A INPUT -j DROP
-A FORWARD -i br4 -j ACCEPT
-A FORWARD -i br4 -o br4 -j ACCEPT
-A FORWARD -i br4 -o eth0 -j ACCEPT
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD ! -i br0 -o eth0 -j DROP
-A FORWARD -m state --state INVALID -j DROP
-A FORWARD -i br0 -o br0 -j ACCEPT
-A FORWARD -i eth0 -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m limit --limit 1/sec -j ACCEPT
-A FORWARD -i eth0 -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK RST -m limit --limit 1/sec -j ACCEPT
-A FORWARD -i eth0 -p icmp -m icmp --icmp-type 8 -m limit --limit 1/sec -j ACCEPT
-A FORWARD -m conntrack --ctstate DNAT -j ACCEPT
-A FORWARD -i br0 -j ACCEPT
-A PControls -j ACCEPT
-A logaccept -m state --state NEW -j LOG --log-prefix "ACCEPT " --log-tcp-sequence --log-tcp-options --log-ip-options
-A logaccept -j ACCEPT
-A logdrop -m state --state NEW -j LOG --log-prefix "DROP " --log-tcp-sequence --log-tcp-options --log-ip-options
-A logdrop -j DROP