What's new

VLAN setup

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

madox

New Around Here
Hi all,
maybe someone help me, question is - how i can get in N-66U Vlans (802.1q teg)? for my small network will be good to get 802.1q, need use management vlan (to manage this equipment), wifi vlan (for client), also for port vlan (manage integrate switch).
this device have a good performance, but software do no provide all functional.
thnaks) and sorry for my english)
 
Here is the port config for your router:

#Robocfg port mapping
#Model { WAN L1 L2 L3 L4 CPU }
#RTN66U: { 0, 1, 2, 3, 4, 8 }

You can use these commands for help:
brctl show
robocfg show

So port 0 will be the WAN port and 1 2 3 4 will the 4 LAN ports and 8 is CPU. First you all you will have to enable JFFS and custom scripts under administration I believe and then enable telnet/ssh. Telnet to the router create a script 'services-start' in /jffs/scripts/ folder using Vi

should be like :
1) RT-AC87U-B498:/tmp/home/root# vi services-start
2) press i for inserting and text
3) paste the script using ctrl+v or shift+ins
4) To delete a line first press ESC to get out of insert mode of VI and then press 'dd' this deletes complete line
5) To save the file press ESC key and then ':wq'
6) if you do mistake and want to cancel you can quit from Vi using !q something like that(I don't remember that of top of my head)
7) After you made the script you need to make sure its executable. You have to type this command : chmod a+rx /jffs/scripts/*

It normally serves if your router is in AP mode but in router mode you can just create Guest network and it would work.

If you are using it as a router you can follow this thread and create a seperate vlan for LAN ports and create guest network for guest wifi.

http://www.snbforums.com/threads/fo...guest-network-for-asus-merlin-rt-ac68u.18969/

Remember your ports will be like these:
#Model { WAN L1 L2 L3 L4 CPU }
#RTN66U: { 0, 1, 2, 3, 4, 8 }
 
sorry to jump a thread but didn't want to create yet another one on the same thing lol. I'm doing the same thing but nothing seems to work even though nvram and robocfg are showing everything created. DHCP doesn't work either and there are no errors in system log about dnsmasq being stopped now. Could some look at my settings and see if I'm missing something or set something incorrectly please?

root@RT-2C56DC852B80:/tmp/home/root# robocfg show
Switch: enabled
Port 0: 1000FD enabled stp: none vlan: 2 jumbo: off mac: 00:90:a2:fd:8e:ab
Port 1: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 2: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 3: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 4: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 08:62:66:4b:19:8e
Port 8: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
VLANs: BCM5301x enabled mac_check mac_hash
1: vlan1: 1 2 3 4 5t
2: vlan2: 0 5t
4: vlan4: 4t 5t
5: vlan5: 4t 5t
1045: vlan1045: 0t 2t 4t 5t
1046: vlan1046: 2t 3t 4 8t
1047: vlan1047: 0t 2t 4
1099: vlan1099: 0t 1 4 5t 7
1100: vlan1100: 0 1 2 3t 4
1101: vlan1101: 1 2t 5 7 8t
1102: vlan1102: 2t 5t 7 8u
1103: vlan1103: 1t 4 7t


root@RT-2C56DC852B80:/tmp/home/root# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.2c56dc852b80 yes eth1
eth2
vlan1
br1 8000.2c56dc852b80 yes vlan5
wl0.1
br2 8000.2c56dc852b80 yes vlan4
robocfg show

This my current services-start script:

#!/bin/sh
vconfig add vlan40
vconfig add vlan50
vconfig add wl0.1 50
ifconfig vlan40 up
ifconfig vlan50 up
brctl addbr br1
brctl addbr br2
brctl delif br0 wl0.1
brctl addif br1 wl0.1 vlan50
brctl addif br2 vlan40
brctl stp br1 on
brctl stp br2 on
ifconfig br1 192.168.10.254 netmask 255.255.255.0
ifconfig br2 192.168.100.126 netmask 255.255.255.128
ifconfig br1 up
ifconfig br2 up
nvram set vlan40hwname=et0
nvram set vlan50hwname=et0
nvram set vlan1ports="1 2 3 4t 5*"
nvram set vlan2ports="0 5u"
nvram set vlan40ports="4t 5*"
nvram set vlan50ports="4t 5*"
nvram set port1vlans="1"
nvram set port2vlans="1"
nvram set port3vlans="1"
nvram set port4vlans="1 40 50"
nvram set port5vlans="1 2 40 50 16"
nvram set lan_ifnames="vlan1 eth1 eth2"
nvram set lan_ifname="br0"
nvram set lan1_ifnames="vlan50 wl0.1"
nvram set lan1_ifname="br1"
nvram set lan2_ifnames="vlan40"
nvram set lan2_ifname="br2"


nvram commit
killall eapd
eapd

This current dnsmasq.conf.add:

interface=br0
interface=br1
interface=br2
interface=pppl*
min-port=4096
no-dhcp-interface=br0
interface=br1
dhcp-range=br1,192.168.10.100,192.168.10.125,255.255.255.0,86400s
dhcp-option=br1,3,192.168.10.254
dhcp-authoritative
interface=br2
dhcp-range=br2,192.168.100.80,192.168.100.90,255.255.255.128,86400s
dhcp-option=br2,3,192.168.100.126
 
Last edited:
Careful with VLAN ID's below 10, some of those, esp. below 5, as used for different things.
 
ok thanks. I am changing them to vlan40/50 now. Other than that do my scripts look correct do you think?
 
ok thanks. I am changing them to vlan40/50 now. Other than that do my scripts look correct do you think?

Looks ok - be sure to test it - and I would add some comments inside the script just so one remembers why it exists ;)
 
what mean robocfg? why i have same VLAN ID for port 0 and 4?
Code:
admin@RT-AC68U-6D38:/tmp/home/root# robocfg show
Switch: enabled
Port 0:  100FD enabled stp: none vlan: 2 jumbo: off mac: 00:0e:8f:72:11:f8
Port 1:   DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 2:   DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 3:   DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 4:  100FD enabled stp: none vlan: 2 jumbo: off mac: 00:0e:8f:72:11:f8
Port 8:   DOWN enabled stp: none vlan: 2 jumbo: off mac: 00:00:00:00:00:00
VLANs: BCM5301x enabled mac_check mac_hash
   1: vlan1: 1 2 3 5t
   2: vlan2: 0 4 5
  56: vlan56: 0t 1 2t 3 4t
  57: vlan57: 0t 2 3 5t 7t 8t
  58: vlan58: 1 2 3 4 5 7t 8t
  59: vlan59: 2 5 7t
  60: vlan60: 0 1t 2 4 7
  61: vlan61: 0 1 4 5t 7t
  62: vlan62: 0 1 2 3t 5t 8t
 
from what I understand robocfg shows you your port assignments and can be used to set up vlans? it looks like you have either dual wan set up or port 4 is assigned to your wan vlan. I am by no means knowledgeable on this and just started learning all this. Hopefully someone can give a more intelligent answer for you?
 
I updated my services-start script corrected above and will probably need to follow a guide on guest wifi that's posted here as wl0.1 users can connect but aren't getting an address. I also notice this running robocfg that vlan40 and vlan50 aren't created and tagged to port 4 but show under brctl and ifconfig. Close but no cigar. Anyone have any ideas on what I'm missing?

Robocfg show
Switch: enabled
Port 0: 1000FD enabled stp: none vlan: 2 jumbo: off mac: 00:90:a2:fd:8e:ab
Port 1: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 2: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 08:62:66:4b:19:8e
Port 3: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 4: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 8: DOWN enabled stp: none vlan: 2 jumbo: off mac: 00:00:00:00:00:00
VLANs: BCM5301x enabled mac_check mac_hash
1: vlan1: 1 2 3 4 5t
2: vlan2: 0 5
1045: vlan1045: 0t 2t 4t 5t
1046: vlan1046: 1 2 3t 4 8t
1047: vlan1047: 0 2 4
1099: vlan1099: 0 1 5t 7
1100: vlan1100: 0 1 2 3t 4
1101: vlan1101: 1 2t 5 7 8t
1102: vlan1102: 2t 5t 7 8u
1103: vlan1103: 1t 4 7t 8u
 
code:
admin@RT-AC68P-2B80:/tmp/home/root# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.2c56dc852b80 yes vlan1
eth1
eth2
br1 8000.2c56dc852b81 yes wl0.1
vlan50
br2 8000.000000000000 yes
 
admin@RT-AC68P-2B80:/tmp/home/root# ifconfig
br0 Link encap:Ethernet HWaddr
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:152016 errors:0 dropped:0 overruns:0 frame:0
TX packets:110229 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:35302434 (33.6 MiB) TX bytes:23026632 (21.9 MiB)

br1 Link encap:Ethernet HWaddr
inet addr:192.168.10.254 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1476 errors:0 dropped:0 overruns:0 frame:0
TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:205248 (200.4 KiB) TX bytes:15497 (15.1 KiB)

br2 Link encap:Ethernet HWaddr
inet addr:192.168.100.126 Bcast:192.168.100.127 Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:6092 (5.9 KiB)

eth0 Link encap:Ethernet HWaddr
inet addr:192.168.0.211 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:227447 errors:0 dropped:0 overruns:0 frame:0
TX packets:169063 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:87121514 (83.0 MiB) TX bytes:63781660 (60.8 MiB)
Interrupt:179 Base address:0x4000

eth1 Link encap:Ethernet HWaddr
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:4008
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
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:4348 errors:0 dropped:0 overruns:0 frame:196
TX packets:7994 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:567462 (554.1 KiB) TX bytes:4904056 (4.6 MiB)
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:429 errors:0 dropped:0 overruns:0 frame:0
TX packets:429 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:70567 (68.9 KiB) TX bytes:70567 (68.9 KiB)

vlan1 Link encap:Ethernet HWaddr
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:190007 errors:0 dropped:0 overruns:0 frame:0
TX packets:109057 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:37939566 (36.1 MiB) TX bytes:22388887 (21.3 MiB)

vlan50 Link encap:Ethernet HWaddr
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:848 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:47880 (46.7 KiB)

wl0.1 Link encap:Ethernet HWaddr
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:1517 errors:0 dropped:0 overruns:0 frame:4008
TX packets:3131 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:225854 (220.5 KiB) TX bytes:334444 (326.6 KiB)
 
arrrg this is so frustrating. I know its easy but I cant wrap my head around it. dhcp doesn't work for br1/br2. wl0.1 2.4ghz is guest and I can connect but no dhcp. vlan40 doesn't show in ifconfig or brctl yet does with nvram show| vlan.ports or hwname. I am going to reflash tomato and see if I can somehow see what commands are being passed from the gui as all this does work when set up in tomato. I do not want to move away from merlin at all so got to figure a way to get this to work in merlin.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top