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

Help with vlans on Tomato v1.28 v [wrt54gl v1.1]

Discussion in 'Tomato Firmware' started by Suzzzy, Nov 11, 2011.

  1. Suzzzy

    Suzzzy Networkin' Nut Member

    I am new to this firmware (tomato) - I like its name!

    I would like to use my laptop (Federa14) to do share internet connection to about 9 friends
    A laptop has one Nic (wired) and I don't want to use the Wireless Interface.
    I have tried USB NIcs and stability is a major issue.

    At this point I would like to use vlans and to that end I have installed tomato into my WRT54GL V1.1.
    It has a nice vlan GUI but I am fresh and don't know where to start.

    [FONT=courier new]            (My Laptop  - fedora 14)[/FONT]
    [FONT=courier new]          +--------------------------------+[/FONT]
    [FONT=courier new]          |                                |[/FONT]
    [FONT=courier new]          | vlan2  (wan:         |[/FONT]
    [FONT=courier new]          |                                |[/FONT]
    [FONT=courier new]          | vlan3  (Lan:    |[/FONT]
    [FONT=courier new]          |                                |[/FONT]
    [FONT=courier new]          +--------------NIC---------------+[/FONT]
    [FONT=courier new]                          |[/FONT]
    [FONT=courier new]                          |[/FONT]
    [FONT=courier new]                          |[/FONT]
    [FONT=courier new]                          |[/FONT]
    [FONT=courier new]        (WRT54GL V1.1 with tomato firmware)[/FONT]
    [FONT=courier new]    +-------+--------+----+----+--------+----------+[/FONT]
    [FONT=courier new]    |(Port1)| (Port2)| (Port3) |(port4) |          |[/FONT]
    [FONT=courier new]    |       |        |         |        |   WAN    |[/FONT]
    [FONT=courier new]    | Vlan3 | Vlan2  | "Trunk" |        |          |[/FONT]
    [FONT=courier new]    |       |        |         |        |          |[/FONT]
    [FONT=courier new]    +---+---+----+---+---------+--------+----------+[/FONT]
    [FONT=courier new]        |         \[/FONT]
    [FONT=courier new]        |          \       [/FONT]
    [FONT=courier new]        |           \[/FONT]
    [FONT=courier new]      (LAN)         (WAN)[/FONT]
    [FONT=courier new]        |              \[/FONT]
    [FONT=courier new]+------+----+           \[/FONT]
    [FONT=courier new]|(Switch    |            \[/FONT]
    [FONT=courier new]|with my    |             \[/FONT]
    [FONT=courier new]| 9 friends)|              \[/FONT]
    [FONT=courier new]+-----------+          +-----+---+[/FONT]
    [FONT=courier new]                       |  my ISP |[/FONT]
    [FONT=courier new]                       | (RJ45)  |[/FONT]
    [FONT=courier new]                       +---------+[/FONT]
    [FONT=courier new]

    Please help me configure the WRTG54L .

    This is my vlan config screen:[/CODE][/FONT]

    Attached Files:

  2. Suzzzy

    Suzzzy Networkin' Nut Member

    Any one who can help? My option now is to buy a vlan-aware switch!!!
  3. Horia Giurgiu

    Horia Giurgiu Networkin' Nut Member

    From you Router diagram, you want something like this:
    The internet comes in through port2, Goes in port3 to your laptop, then back in port3 to port1 and from there in a switch and from there to your friends. Is this the right picture?
  4. Suzzzy

    Suzzzy Networkin' Nut Member

    @Horia - thats right. In my laptop I have htb traffic shapping among other stuff to control and show usage per client pc - So internet must go to my laptop first (through the trunk) before getting to my friends (for DHCP, routing/nat, bandwidth fair sharing etc.)
  5. Horia Giurgiu

    Horia Giurgiu Networkin' Nut Member

    Here what you have to do:
    1. Use VLAN0 and port1 only for your home shared network (not VLAN3): VLAN0 is the default VLAN and you do not need then to tag the packets from port1 (no need for smart switch). Only port2 needs tags - on both VLANs (also on VLAN0); port1 do not need tags.

    You need to set in your laptop the VLAN tags for the corresponding VLANs.

    Use VLAN3 for the rest of the ports if you want another private network.

    Attached Files:

  6. teaman

    teaman LI Guru Member

    If I may suggest something just a little different... here's something I've done at my previous place (see also vlan.png, attached to this post):
    VLAN ID -> PORTS (T means tagged)
    VID 1   -> 1     4T      (*, default)
    VID 2   ->       4T WAN
    VID 3   ->   2 3 4T
    This is very similar to Horia Giurgiu's suggestion, except that we'd include whatever VLAN you'd use for WAN as part of the 'trunk'. With these settings, you could connect your laptop (i.e. gateway/server) either to port 1 (untagged ethernet frames on VLAN 1) or to port 4 for greater flexibility (tagged ethernet frames on/for any/all VLANs you might wish to connect/access/see from that machine). The latter allows you to even 'dial' PPPoE from your laptop, if you wish (I've done that kind of thing, using an ethernet trunk as a 'transport' when I was experimenting with VMs and didn't wish to switch cables around, etc...).

    Best of luck!
  7. Suzzzy

    Suzzzy Networkin' Nut Member

    @Horia 'n Teaman:
    Guyz! How do you manage to compress all of these in your brains and still remain sane!!

    I had given up and was trying dd-wrt which appeared to have more documentation. But not easy too. So I will re-install Tomato and will update you on my outcome.
  8. Suzzzy

    Suzzzy Networkin' Nut Member


    I am trying your method first .

    1. On which port do I connect the cable to my ISP?

    2. In the Bridge drop-downlist, all other 'LAN' are disabled. How do I activate them?
  9. teaman

    teaman LI Guru Member

    For both suggested config settings/cases/scenarios (both Horia's and mine), I believe you should connect the cable to your ISP onto the WAN port on your router.

    In order to have other LAN bridges 'active' in the Bridge drop-down list in advanced-vlan.asp (available to be selected/assigned to a particular VLAN), you must first define/set/configure each of them on basic-network.asp (see basic_network.png, attached to this post, as an example).



Share This Page