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

About shibby Ethernet port numbering and VLANs

Discussion in 'Tomato Firmware' started by rs232, May 14, 2014.

  1. rs232

    rs232 Network Guru Member

    I have two questions here:

    1) On Netgear 3500L port status doesn't work properly. The device thinks (overview page) that the WAN port is port 1 where port 1 is port 2.
    I did try to set the reverse order but no luck it's just not correct, also the WAN port is always on even if no devices are connected as far as I can see. it seems like a little bug perhaps specific of this device. On this device I'm running the version 117 of Shibby MIPS2 2.6 VPN.
    Shibby keep in touch if you need additional details


    2) Setting up VLANs on such a device is a nightmare as I'm not sure what the VLAN code thinks is e.g. port 1. Does it use the same info as per above? Or is the VLAN code based on independent code? Basically I need to map a port to a specific VLAN and can't figure out which one it is.


    Thanks!
    rs232
     
  2. rs232

    rs232 Network Guru Member

    I think I've found myself the answer to point 2.
    Port status as in the overview page does not reflect the port number the VLAN code refers to.

    About point 1, Shibby: do you see any value in collecting how individual model report the port number/order and provide a precise representation changing the firmware code? I think a per HW model analysis is the only possible solution.

    My point is: in some models Tomato VLAN code calls port 1 what instead is marked on the chassis as e.g. port 4 this creates lot of confusion and frustration if you're tackling VLANs configuration.

    One design issue in the current overview page is that port 1 as marked on the router (literally number printed next to the port if any) is not always the one next to the WAN port where this seems to be a constant in the overview page design.

    This can be resolved having a schematic image reflecting the VLAN port numbering instead of the standard "WAN - 1 - 2 - 3 - 4" as it is now.
    e.g. on the Buffalo WHR-HP-G54 you would get:

    power - WAN - 4 - 3 - 2 - 1

    It shouldn't be too difficult to ask the forum to post their findings and post them here. All we need is
    Brand/model - port order as understood by the VLAN code.

    If you're interested I get started with this:

    Netgear WRL3500:
    BUG?: WAN Ethernet icon appears to be always on
    Inverse order: ON
    power - WAN - 4 - 3 - 2 - 1 - USB

    ASUS RT-N16:
    Inverse order: ON
    power - USB - USB - WAN - 4 - 3 - 2 - 1

    Buffalo WHR-HP-G54:
    Inverse order: OFF
    power - WAN - 4 - 3 - 2 - 1


    Anybody else wants to contribute to this database?

    Thanks!
    rs232
     
    Last edited: May 15, 2014
  3. occamsrazor

    occamsrazor Network Guru Member

    I would prefer to have user-definable fields that label each port.
    So instead of on the Overview page it saying "LAN1, LAN2, LAN3, LAN4, etc"
    It could say "Desktop, Switch, Movie Server, NAS, etc"
    It would of course require the user to work out which port was which, but would work with all models and would be a lot more useful....
     
  4. rs232

    rs232 Network Guru Member

    I agree, it would be nice to have, but that's not my point on this thread. If you call a port Desktop what number are you going to used under the VLAN config? You're back from scratch plugging and unplugging cables like crazy trying to workout what is what. Do you get me?
     
  5. occamsrazor

    occamsrazor Network Guru Member

    Ah I see now what you were getting at - the actual port number used in the system, not just how it is displayed, sorry.... fair point.
     
  6. tvlz

    tvlz Addicted to LI Member

    1) info comes from robocfg & gets parsed in a script somehow

    If mapped correctly, on VLAN page port1:D

    If they are wrong, nobody reported back with the correct port # as listed on the chassis(start with leftmost port viewed from front of router) vs "nvram show |grep vlan1ports"

    I also was thinking about changing the VLAN page to use the 't_model_name' nvram to set the port order
    Code:
    switch(nvram['t_model_name']) {
    case 'vlanid-test0':
    case 'Linksys E2500 v1.0':
    COL_P0N = '0';
    COL_P1N = '1';
    COL_P2N = '2';
    COL_P3N = '3';
    COL_P4N = '4';
    break;
    case 'vlanid-test1':
    COL_P0N = '1';
    COL_P1N = '2';
    COL_P2N = '3';
    COL_P3N = '4';
    COL_P4N = '0';
    break;
    case 'vlanid-test2':
    COL_P0N = '3';
    COL_P1N = '2';
    COL_P2N = '1';
    COL_P3N = '0';
    COL_P4N = '4';
    break;
    case 'vlanid-test3':
    COL_P0N = '4';
    COL_P1N = '3';
    COL_P2N = '2';
    COL_P3N = '1';
    COL_P4N = '0';
    break;
    default:
    COL_P0N = '1';
    COL_P1N = '2';
    COL_P2N = '3';
    COL_P3N = '4';
    COL_P4N = '0';
    break;
    }
    instead of the way it is done now (a combination of 'boardrev','boardnum' etc..)

    In the default case have a popup to say "Router Unknown/Not Setup - Using Default - Please Report" not sure how to do the popup though.

    I know it would take some time to get all the routers in order but it would make it a lot easier to read & follow.
    Worth doing?
     

Share This Page