Hello folks,
i tinkered a lot with my RT-Ac68u router. First I tried with Merlins firmware to make vlans, but i failed.
I got Vlans running with dd-wrt ( Tutorial
http://www.dd-wrt.com/wiki/index.php/VLAN_Detached_Networks_%28Separate_Networks_With_Internet%29).
But I am really missing the built in features and performance of Merlins firmware and still want to realise vlans with Merlins firmware
I used this commands in the shell:
nvram set vlan6ports="4t 5"
nvram set vlan7ports="4t 5"
nvram set vlan8ports="4t 5"
nvram set vlan9ports="4t 5"
nvram set vlan10ports="4t 5"
nvram set vlan11ports="4t 5"
nvram set vlan12ports="4t 5"
nvram set vlan13ports="4t 5"
nvram set vlan14ports="4t 5"
nvram set vlan15ports="4t 5"
nvram set vlan6hwname=et0
nvram set vlan7hwname=et0
nvram set vlan8hwname=et0
nvram set vlan9hwname=et0
nvram set vlan10hwname=et0
nvram set vlan11hwname=et0
nvram set vlan12hwname=et0
nvram set vlan13hwname=et0
nvram set vlan14hwname=et0
nvram set vlan15hwname=et0
nvram commit
reboot
I used this in a script:'
#!/bin/ash
ifconfig vlan6 192.168.6.1 netmask 255.255.255.0
ifconfig vlan7 192.168.7.1 netmask 255.255.255.0
ifconfig vlan8 192.168.8.1 netmask 255.255.255.0
ifconfig vlan9 192.168.9.1 netmask 255.255.255.0
ifconfig vlan10 192.168.10.1 netmask 255.255.255.0
ifconfig vlan11 192.168.11.1 netmask 255.255.255.0
ifconfig vlan12 192.168.12.1 netmask 255.255.255.0
ifconfig vlan13 192.168.13.1 netmask 255.255.255.0
ifconfig vlan14 192.168.14.1 netmask 255.255.255.0
ifconfig vlan15 192.168.15.1 netmask 255.255.255.0
ifconfig vlan6 up
ifconfig vlan7 up
ifconfig vlan8 up
ifconfig vlan9 up
ifconfig vlan10 up
ifconfig vlan11 up
ifconfig vlan12 up
ifconfig vlan13 up
ifconfig vlan14 up
ifconfig vlan15 up
iptables -I FORWARD -i vlan+ -o vlan+ -j DROP
iptables -I FORWARD -i vlan+ -o vlan2 -j ACCEPT
iptables -I FORWARD -i vlan2 -o vlan+ -j ACCEPT
'
What am I missing here to get vlans working?
I also recognized nvram show | grep vlan.*ports is working but nvram show | grep port.*vlans not.
Is this command not possible on Merlin Firmware?
Also when I use robocfg show it shows this vlans:
56: vlan56: 0t 1 2 3 4t 5 7 8t
57: vlan57: 0 1 2t 3t 4 5 7 8t
58: vlan58: 3 5 7 8u
59: vlan59: 0 1t 4 5t 8u
60: vlan60: 1t 2 3 4t 5 8t
61: vlan61: 0 1t 3t 5 8u
62: vlan62: 5
For what communication are these ones?
Kind regards
Tyrael