1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can VLAN GUI port order be corrected?

Discussion in 'Tomato Firmware' started by psy-q, Jun 22, 2014.

  1. a baby duck

    a baby duck New Member Member

    Tenda N600 (flashed successfully using shibby's Tenda N60 image)

    Output from `nvram show | grep vlan1ports`:
    vlan1ports=1 2 3 4 8*

    Port numbers on the back of the case:
    Just to clarify, I'm not sure what is meant by "viewed from front," as the back panel is unreadable when viewing the router from the front... If I'm looking at the back panel, where the ports actually are, the order is (from left to right):
    WAN, IPTV, LAN1, LAN2, LAN3
    The LEDs on the front mirror that order as you'd expect:
    Power, [Something that looks like a refresh arrow], 2.4gHz, 5gHz, LAN3, LAN2, LAN1, TV, WAN, USB

    The "IPTV" port functions as a LAN port and is recognized by tomato as LAN1.

    The default port order looks fine to me, showing IPTV and LAN1-3 as LAN1-4 respectively, although all ports are shown at "10M Half" except for the "IPTV" port, which shows "100M Half."

    edit: Regarding the spoilered instructions pertaining to Broadcom routers, I should mention that the "!! Unknown Port Mapping Using Default!!" on the VLAN page doesn't mention anything about Broadcom, but the tomato Overview page does list this devices chipset as "Broadcom BCM5357 chip rev 2 pkg 10."

    I've tried to follow the instructions in the post as best I can, but please let me know if I should make a new thread for this device.
     
    Last edited: May 19, 2016
  2. tvlz

    tvlz LI Guru Member

    Updated for Tenda N60
    Looking at the front, tip the router forwards(the front is now on the table, back is pointing up) that would be "the back of the router case "left -> right viewed from the front"
    Your router is already supported by Tomato, if it was not you would see something like this (Broadcom 21/0x058e/45/0x1153/0x710) in the message instead of Tenda N60.
     
  3. a baby duck

    a baby duck New Member Member

    Thanks for the clarification. in that case, what you're looking for is "lan 3, lan 2, lan 1, iptv, wan."

    I see. Is this still the case when using a router-specific image like shibby's N60 build? I only ask because this is the N600, which I haven't seen on any supported list yet.
     
  4. kevs85

    kevs85 New Member Member

    @tvlz:

    Uhm.. any clue how im gonna fix the vlan issue for Catchtech cw-5358U? What help can i give you to fix it? Any help would be greatly appreciated. Thanks.
     
  5. tvlz

    tvlz LI Guru Member

    @a baby duck
    Tomato probably sees it as a Tenda N60, so all is good

    @kevs85
    I don't know it must be something about that router
    Have you resetting the nvram defaults?
    Moving lans 2 3 4 instead of lan 1?
    what about try shibby v132, it's not multi-wan but if you can change the lans ok then it might be some problem with multi-wan?
     
  6. micgot

    micgot New Member Member

    Hi,

    i'm also getting the "!! Unknown Port Mapping Using Default!!" message.

    I have a Netgear WNDR4500 V1
    Tomato Firmware 1.28.0000 MIPSR2-136 K26AC USB AIO-64K


    I can see the router in the advanced-vlan.asp script, but commented out.

    Running `nvram show | grep vlan1ports`results in:
    vlan1ports=0 1 2 3 8*

    Port numbers on the back of the case:
    Little tricky, this model is actually standing up-right, so not quite sure how to list/read.

    From bottom to top the of the router it would be:
    WAN LAN4 LAN3 LAN2 LAN1

    Found a pic in the web, showing the exact labelling on the back of the router as i see it .. may be that can help?
    (as a new user I am not allowed to add link, so I inserted the pic - hope that is OK)

    Hope this information helps to get that router added to the list. If not, please let me know what else to provide.

    Thanks!
    [​IMG]
     
  7. tvlz

    tvlz LI Guru Member

    Added Netgear WNDR4500 V1

    Thanks
     
  8. micgot

    micgot New Member Member

    @tvlz:

    Thank you!

     
  9. bookreader

    bookreader Network Newbie Member

    Belkin Play Max / N600 HD (F7D4301/F7D8301) v1

    Website shows LAN2-4 plugged in. Invert Ports Order is un-checked.

    Physical Order - top to bottom
    WAN - plugged in
    LAN 1 - plugged in
    LAN 2 - plugged in
    LAN 3
    LAN 4

    # nvram show | grep vlan1ports
    vlan1ports=0 1 2 3 8*

    # nvram show | grep version
    board_version=01
    loader_version=1.07e
    os_version=1.28.0000 MIPSR2-132 K26 USB VPN

    I am forced to stay on 132 since the newer versions do not allow me to choose VLAN 201 for the WAN (needed for centurylink fiber).

    Once this is added, will the updated advanced-vlan.asp display the option like in 132 for the 201 VLAN?


    Thanks
     

    Attached Files:

  10. tvlz

    tvlz LI Guru Member

    Those icons on the overview page have nothing to do with the advanced-vlan page.

    If they are not right you need to check the Invert Ports Order box.

    After you replace the advanced-vlan file you should be able to set vlan 201 with v138, the problem with the vlan resetting is fixed.
     
  11. bookreader

    bookreader Network Newbie Member

    No luck.

    I flashed tomato-K26USB-1.28.RT-MIPSR2-138-miniVPN and erased NVRAM. Downloaded the latest advanced-vlan.asp and followed the steps to mount.

    The screen cap shows vlan 201 for the wan and so does ipconfig, but no IP address is issued.

    When I revert back to 132 and check off VID offset (192), check off trunk vlan support, edit VID to 0 and vlan to 9, I get an IP address.

    Thanks again for your help.
     

    Attached Files:

  12. tvlz

    tvlz LI Guru Member

    Looking at your pic, you have 2 different setups.

    In the v138 wan is on vlan 2 vid 201
    In the v132 wan is on vlan 9 vid 201

    Have you tried the newer vlan file on v132 & v138 with the same setup?
     
  13. bookreader

    bookreader Network Newbie Member


    v132 - When you edit the line, the VID is zero, but changes to 201 once you click ok. (see screen cap). 9 + 192 offset = 201.

    I tried the newer vlan file last weekend on v138 only since v132 works out if the box.
     

    Attached Files:

  14. tvlz

    tvlz LI Guru Member

    Ok, got it

    Can you try the newer vlan file with v132, I want to see if if will work when the wan vlan is set to
    1) vlan 2 vid 201
    2) vlan 9 vid 201 or any other vlan

    I have a feeling that the RT builds won't work if you directly set the vid.
     
  15. franzk

    franzk New Member Member

    Hi tvlz,
    I notice problem on tomato build shibby v138, in polish but you can easily read my test results from rtn16, while trying to setup the VLAN via web and from command line on site openlinksys polish forum thread: "Tomato - bugi/problemy - wszystkie wersje" post 847.
    Then I found, your updated advanced-vlan.asp shared on box and next checked the changes on shibby repository for file advanced-vlan.asp between builds v137 and v138.

    this is tha main differences:

    -// for some models, Tomato checks for a few vital/crucial nvram settings at init time
    -// in some cases, if some/any of them are not found, a full nvram reset/clean could be triggered
    -// so, to (try to) play it safe, we check for the 1st needed/available/required
    -// VLAN for FastE (vlan0 is usually LAN) and GigE routers (vlan1 is usually LAN)
    - if((fom['vlan0ports'].value.length < 1) || (fom['vlan0hwname'].value.length < 1) ||
    - (fom['vlan1ports'].value.length < 1) || (fom['vlan1hwname'].value.length < 1))
    - fom['manual_boot_nv'].value = '1';
    - else
    - fom['manual_boot_nv'].value = nvram['manual_boot_nv'];
    -

    Is this code useless?:

    FYI:
    Base on this, my quick fix on build v138 to do successful VLAN setup:

    nvram set manual_boot_nv=1
    nvram commit


    Then setup VLAN via browser.

    F.
     
  16. bookreader

    bookreader Network Newbie Member

    I tried both steps and the WAN will not pickup an IP address.
     
  17. tvlz

    tvlz LI Guru Member

  18. tvlz

    tvlz LI Guru Member

    @bookreader
    Thanks for testing
    I'll have to get @shibby20 & @Toastman to use the older Advanced-Vlan file(the MIPSR1 one) for the RT builds since they don't support setting the VID directly.
     
  19. joew333

    joew333 LI Guru Member

    Hi. A bunch of us are pioneers for the Tenda AC15 router. This router has 1 WAN port and 3 LAN ports. Here is an extract of data (MAC addresses modified to protect the innocent):

    size: 28942 bytes (36594 left)
    vlan1ports=1 2 3 4 5*
    size: 28942 bytes (36594 left)
    vlan6ports=
    vlan4ports=
    vlan2ports=0 5
    vlan0ports=
    vlan9ports=
    vlan7ports=
    vlan5ports=
    vlan3ports=
    vlan1ports=1 2 3 4 5*
    vlan8ports=
    Switch: enabled
    Port 0: 1000FD enabled stp: none vlan: 2 jumbo: off mac: 00:11:11:11:11:46
    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:11:11:11:11:36
    Port 3: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
    Port 4: 10HD enabled stp: none vlan: 1 jumbo: off mac: 00:11:11:11:11:36
    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
    56: vlan56: 2 8u
    57: vlan57: 0 1t 7t 8t
    58: vlan58: 2 5t
    59: vlan59: 1t 2 3t 8t
    60: vlan60: 1 3 5
    61: vlan61: 1t 2t 3 4t 8t
    62: vlan62: 3 4 5


    From the back of the router, the ports are WAN, LAN1, LAN2 and LAN3. Right now, I have the WAN port plugged in and LAN port 3 has device 00:11:11:11:11:36.

    LAN port 1 in HW maps to port 2 in SW. LAN port 2 in HW maps to port 3 in SW. LAN port 3 in HW maps to LAN port 4 in SW. I am wondering if there are any later WL drivers from Broadcom that can be used or not. LAN port 1 shown in the SW does not map to any HW as the router only has 3 LAN ports.

    LEDs when facing Front of router
    LAN3 LAN2 LAN1 WAN

    Ports when facing Rear of Router
    WAN LAN1 LAN2 LAN3

    Please advise best approach to correct the LAN port mapping for the Tenda AC15.
     
  20. tvlz

    tvlz LI Guru Member

  21. joew333

    joew333 LI Guru Member

    I tried the file and did not notice a change when applied to Toastman tomato-TendaAC15-9007.9Toastman-ARM-VPN-64K.trx . I tried both the USB method and also by transferring the file from USB to the tmp directory on the router. I appreciate your help and expertise. Please confirm.
     
  22. Toastman

    Toastman Super Moderator Staff Member Member

  23. tvlz

    tvlz LI Guru Member

    Monk E. Boy likes this.
  24. simmox1

    simmox1 Reformed Router Member

  25. seppi91

    seppi91 New Member Member

    Hi Guys,
    I'm trying to setup vlan to get some isolation between smarthome devices and other devices. Unfortunately it seems that my Router Linksys EA6700 is not fully supported.

    I'm running Advanced Tomato "v3.4-138 AIO-64k"-image. And everytime I'm setting anything in Advanced>VLAN Config the whole system gets corrupt (e.g. the wifi 2.4 Ghz Network disappears completely). I hope this is all because of wrong Port order. This is the output of the requested commands:

    Code:
    nvram show | grep vlan1ports
    size: 33250 bytes (32286 left)
    vlan1ports=0 1 2 3 5*
    
    robocfg show
    Switch: enabled
    Port 0: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 00:0b:00:00:ad:d0
    Port 1: 1000FD enabled stp: none vlan: 1 jumbo: off mac: bc:5f:f4:81:b4:ac
    Port 2: 1000FD enabled stp: none vlan: 1 jumbo: off mac: c0:7c:d1:c0:04:73
    Port 3:   DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
    Port 4:   DOWN enabled stp: none vlan: 2 jumbo: off mac: 00:00:00:00:00:00
    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: 0 1 2 3 5t
       2: vlan2: 4 5t
      56: vlan56: 0t 2t 3t 4
      57: vlan57: 0 1 3t 5t
      58: vlan58: 1t 2t 5t
      59: vlan59: 4t 5 7 8u
      60: vlan60: 0t 2t 4 7 8t
      61: vlan61: 4 5
      62: vlan62: 0 1t 2t 8t
    
    Port Numbers on the Back of the Router Case (Left -> Right viewed from Front)
    [WAN] ... [4] [3] [2] [1]

    From Back:
    [​IMG]
     
  26. seppi91

    seppi91 New Member Member

    Is there any information missing? It would be really great if you could fix this :)
     
  27. pomidor1

    pomidor1 Serious Server Member

    try version 137 or wait for 139 tomato
     
  28. Tomato User

    Tomato User Network Newbie Member

    I mounted a usb and follwed the steps, no change.
    Netgear WNDR3400v3

    vlan0ports=
    vlan10ports=
    vlan11ports=
    vlan12ports=
    vlan13ports=
    vlan14ports=
    vlan15ports=
    vlan1ports=0 1 2 3 5*
    vlan2ports=4 5
    vlan3ports=
    vlan4ports=
    vlan5ports=
    vlan6ports=
    vlan7ports=
    vlan8ports=
    vlan9ports=
    vlan0hwname=
    vlan10hwname=
    vlan11hwname=
    vlan12hwname=
    vlan13hwname=
    vlan14hwname=
    vlan15hwname=
    vlan1hwname=et0
    vlan2hwname=et0
    vlan3hwname=
    vlan4hwname=
    vlan5hwname=
    vlan6hwname=
    vlan7hwname=
    vlan8hwname=
    vlan9hwname=


    vlan2ports=4 5
    0:boardflags2=0x0
    0:boardflags=0x200
    0:boardrev=0x1300
    0:boardtype=0x0521
    boardflags2=0x1000
    boardflags=0x80001710
    boardnum=01
    boardpwrctl=0xc00
    boardrev=0x1400
    boardtype=0x0550
    sb/1/boardflags2=0x1000
    sb/1/boardflags=0x80001710


    [​IMG]
    [​IMG]



    I tried 2 files:
    advanced-vlan.asp
    • Updated Dec 2, 2016
    • 35.7 KB
    This one:
    advanced-vlan.asp.AT
    • Updated Dec 2, 2016
    • 38.6 KB
    I get this on vlan page:

    [​IMG]
     
    Last edited: Feb 22, 2017
  29. PTIKKEN

    PTIKKEN New Member Member

    Could you ad support for the following router:

    Netgear R6300 V1

    vlan1ports=0 1 2 3 8*

    WAN, LAN1, LAN2, LAN3, LAN4

    Thanks!
     
  30. pomidor1

    pomidor1 Serious Server Member

  31. pomidor1

    pomidor1 Serious Server Member

    although in this version is a mistake VLAN, so 137 or 132 or wait for the versions of the 139 for about three weeks
     
    crashnburn likes this.
  32. PTIKKEN

    PTIKKEN New Member Member

    I tried 138, that's where I've got the issues with. I'll wait for 3 weeks on the 139 release.

    Thanks!!!
     
  33. pomidor1

    pomidor1 Serious Server Member

    for VLAN 137 is probably ok
    flash, erase nvram settings, enter from the keyboard values
     
  34. tvlz

    tvlz LI Guru Member

    Tomato User likes this.
  35. Tomato User

    Tomato User Network Newbie Member

    Last edited: Feb 24, 2017
  36. PTIKKEN

    PTIKKEN New Member Member

    tvlz likes this.
  37. tvlz

    tvlz LI Guru Member

  38. Tomato User

    Tomato User Network Newbie Member

    ok thank you.
    I'm using a "beta" version for the 3400v3 Tomato Firmware 1.28.0000 MIPSR2-138 K26 USB MiniIPv6.
    Looks like regular tomato.
    I just want to mention the lan order was backwards but the asp file does work and fixes a few issues also.
    I use "invert ports" and that has it looking ok.

    Is it supposed to be backwards default.?
     
  39. crashnburn

    crashnburn LI Guru Member

    I just installed Shibby AIO v138 on RT-N16 and need VLAN for Multi WAN. Is there some error/ bug in the VLAN system/ module of this release?

    I cant seem to even get this to happen:
    http://www.shocknetwork.com/wordpre...at-the-same-time-tomato-multiwan-works-great/

    [​IMG]

    I am unable to pull a Single port of RT-N16 [Tried with nearest to WAN: 4 and farthest: 1 ]
    to leave LAN(br0).

    I get it to come to WAN2, but it still shows with a Yes on LAN (br0).

    I've tried it in 2 step SAVEs and 1 step at a time SAVEs. But, it I get a YES for the Port on both LAN (br0) and WAN 2.

    Is that correct? At certain times when I was trying to make this work I also got the error message:
    "Single port cannot be Untagged on 2 VLans". But, no matter how much I unchecked it from LAN (br0) it seems to want to stay there.

    Forget about starting WAN2, is there an issue with making a port leave LAN (br0) unless it has a place it belongs to?

    PS: Also, the order invesion is also confusiong. For RT-N16 should we invert or not?
     
  40. bookreader

    bookreader Network Newbie Member


    I tried the new tomato-K26USB-1.28.RT-MIPSR2-140-VPN and the VLAN issue is not fixed. I can not set the WAN VLAN tagged to 201. I reverted back to tomato-K26USB-1.28.RT-MIPSR2-132-VPN
     
  41. Spacey

    Spacey New Member Member

    Hi all

    I Got the (Cisco) Linksys ea6700, loaded with advanced tomato V 1.40

    I get port mapping error when : loss of power or reloading a backup file.

    WLAN 2.4 GHz dissapears and wlan 5GHz is Working on eth1, Lan ports working ok at all time.

    No problems when i reset nvram and manually setup router.

    When reset, wlan 5 GHz is on eth2 and wlan 2.4 GHz on eth1

    Can this be corrected somehow, very annoing when i have power loss.

    /Spacey
     
    Last edited: Aug 15, 2017
  42. tvlz

    tvlz LI Guru Member

  43. Dragoon6

    Dragoon6 New Member Member

    Netgear R6300 V1
    root@unknown:/tmp/home/root# nvram show | grep vlan1ports
    vlan1ports=0 1 2 3 8*
    root@unknown:/tmp/home/root#
     
  44. WillyTP

    WillyTP Network Newbie Member

    @tlvz: I've an Asus RT-N66U B1 which is driving me crazy.

    Do you kindly confirm that this specific model is included in the latest advanced-vlan file?

    Here you are some information:

    Code:
    Tomato v1.28.0000 MIPSR2-3.4-140 K26AC USB AIO-64K
     ========================================================
     Welcome to the Asus RT-N66U [TomatoUSB]
     Uptime:  01:20:11 up 20 min
     Load average: 0.00, 0.00, 0.00
     Mem usage: 5.5% (used 13.68 of 249.42 MB)
     LAN1 : 192.168.1.101/24 @ DHCP:  -
     LAN2: 192.168.2.2/24 @ DHCP:  -
     WL0 : 2,4GHz @ Tomato24 @ channel: 6 @ 08:62:66:3E:E1:18
     WL1 : 5GHz @ Tomato50 @ channel: auto @ 08:62:66:3E:E1:1C
     ========================================================
    
     
    root@unknown:/tmp/home/root# nvram show | grep vlan2ports
    vlan2ports=0 8
    
    root@unknown:/tmp/home/root# nvram show | grep board
    boardflags2=0x00000000
    boardflags=0x00000110
    boardnum=00
    boardrev=0x1100
    boardtype=0xF5B2
    pci/1/1/boardflags2=0x00100000
    pci/1/1/boardflags=0x80001200
    pci/1/1/boardvendor=0x14E4
    pci/2/1/boardflags2=0x00200000
    pci/2/1/boardflags=0x90000200
    pci/2/1/boardvendor=0x14E4
    Ports position:
    Router deployed flat in front of me, from left to right LAN 4-3-2-1 WAN

    Thank you
     
  45. tvlz

    tvlz LI Guru Member

    I am pretty sure that I have all the routers that I know about in the Advanced-Vlan file correctly.
    Any that are not in there are either off-brands or nobody came forward with the correct info.
     
  46. Spacey

    Spacey New Member Member


    @tvlz

    Seems this way fix it for me. Working for now.

    Thnx

    /Spacey
     
  47. madeira83

    madeira83 New Member Member

    Hello,
    I am a novice here. I am using a wndr4500v2 which is on the list of routers to resolve the vlan port issue but i am using shibby tomato-Netgear-WNDR4500V2_RT-AC6x--140-AIO-64K.zip and i have 2 questions. 1)Should this build have the automatically fixed this issue with an updated advanced-vlan.asp file? and 2) For Method 1 by updating the advanced-vlan.asp via usb, if i remove the usb and reboot the issue returns. Is the usb drive suppose to always stay in? Method 2 notes that it wont survive a reboot. Does Method 1 also not survive a reboot if the drive is not in the router? Thanks in advanced.
     
  48. madeira83

    madeira83 New Member Member

    Bump...
     
  49. Sean B.

    Sean B. LI Guru Member

    Don't know if it's supposed to have it or not. Are you asking to try an confirm whether or not the port order is currently showing correct for your router?

    Not sure what "methods" you're referring to but I can tell you this:

    Aside from settings which are saved to the NVRAM, which doesn't usually apply to entire files ( NVRAM space is a premium ) no changes survive reboots. Therefore you can

    A: Leave the file needed on USB attached storage and don't remove it. Configure scripting to load whatever changes are required on boot.

    B: If the changes made by the file can be made active at any time, then after any reboot you can put the file into the tmp section of the routers filesystem by whatever means you like ( connect a USB drive - move file - remove drive, or a network share etc etc ). Load the file in whatever manor is required and you're good until the next reboot.

    C: Format and activate the JFFS partition via the GUI, put the required file in said partition and configure scripting to automatically load whatever changes are required on boot. The availability of this option is governed by router model.
     
  50. madeira83

    madeira83 New Member Member

    Thanks for the reply @Sean B. I know that the port order is incorrect on my router but I was just wondering if the build that i installed on it should have had the updated advanced_vlan.asp file on it.
     

Share This Page