Routing between different subnets and VLANs

Discussion in 'Linux Networking' started by Ed Posch, May 3, 2006.

  1. Ed Posch

    Ed Posch Guest


    I have a testing system with a few machines that are hold together by a
    HP ProCurve 2626. The main goal I want to achive is, that I have a
    linux gateway machine (or maybe more if necessary) that handles the
    traffic between the different vlans that I have configured on the
    switch. VLAN 1 and 2 and VLAN 1 and 3 should be able to communicate,
    but 2 and 3 shouldn't. But actually, that's not the point, because I
    can't even get them to all talk to each other. Each VLAN represents a
    different subnet (x.y.10.0/24, x.y.20.0/24, x.y.30.0/24).

    What I already tried is to set up a bridge, and the clients in the
    subnet where the bridge is in could communicate, so I thought I had to
    maybe set some routes on my gateway so that they could also talk to
    clients in a different subnet, but nothing worked. Since the kernel is
    2.6.13, I thought, it should all be activated for bridging and routing
    (I also activated ip_forward). I didn't want to experiment on the
    kernel, but I have the feeling, that it has something to do with some
    missing kernel modules. (802.1q is loaded)

    I already tried out everything I could find, but still wasn't able to
    get it working.
    Anyone any ideas?
    I'm really desperate..

    Ed Posch, May 3, 2006
    1. Advertisements

  2. Ed Posch

    Ed Posch Guest

    I found my problem. The port on the switch where one of the clients was
    connected to had some kind of hardware defect. I just changed the port,
    and everything was working perfectly.

    Now I have some problems with configuring the ebtables correctly. I
    already read some of the literature about ebtables, but still don't get
    all of it. I have a bridge with 3 interfaces where every interface is
    connected to one vlan and I want to tell the bridge by using ebtables,
    which packages (with which vlan id), should be able to be forwarded to
    which interface (which other vlan). I don't get this in connection with

    Does anyone maybe know some links where this is explained and maybe
    shown in an example similar to my requirements.

    I hope, someone could help, because I don't have much time left for
    Thanks in advance

    Ed Posch, May 10, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.