[LiSA-Devel] Inter-VLAN routing

Ionut Nicu ionut.nicu at mindbit.ro
Tue Jul 2 16:36:15 EEST 2013


Hi Andreea,

On Tue, 2013-07-02 at 14:26 +0300, Andreea-Cristina Hodea wrote:
> Hi,
> 
> I am running a simple topology with a LiSA machine and two whatever
> Linux machines linked to the LiSA machine. If both test machines are
> in the same VLAN, ping between test machines works, but if they are in
> different VLANs, ping does not work anymore. Am I missing some
> configuration or it is not supposed to work anyway?
> 

It's supposed to be working... Have you enabled ip forwarding
(/proc/sys/net/ipv4/ip_forward) on the LiSA machine?

How did you configure the IPv4 addresses / routes on the LiSA machine
and the test machines?

A typical example that should work would be:

* VLANs 2,3 created on the LiSA machine
* IP forwarding enabled on the LiSA machine
* vlan2 vif configured with 192.168.2.1/24
* vlan3 vif configured with 192.168.3.1/24
* eth0 on test machine 1 with 192.168.2.2/24 (eth0 goes into a port in
vlan 2 on the LiSA machine)
* on test machine 1 there's a static route to 192.168.3.0/24 through
eth0 (or alternatively have the default route through 192.168.2.1)
* eth0 on test machine 2 with 192.168.3.2/24 (eth0 goes into a port in
vlan 3 on the LiSA machine)
* on test machine 2 there's a static route to 192.168.2.0/24 through
eth0 (or alternatively have the default route through 192.168.3.1)

In this case you should be able to ping from test machine 1 to
192.168.3.2 and from test machine 2 to 192.168.2.2.

Please let me know if this works for you.

Ionut.



More information about the LiSA-Devel mailing list