[LiSA-Devel] Inter-VLAN routing

Andreea-Cristina Hodea andreea.cristina.hodea at gmail.com
Tue Jul 2 17:20:13 EEST 2013


Hi Ionut,

On Tue, Jul 2, 2013 at 4:36 PM, Ionut Nicu <ionut.nicu at mindbit.ro> wrote:
> 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.

Thank you for your response. When I tried to set an ip on vlan2 vif,
the VM crashed. I have used the following sequence of commands:
````
$ conf t
config$ int vlan 2
config-if$ ip address 192.168.2.1 255.255.255.0
````
And then it crashed. I will come with more details on the oops message.

Andreea


More information about the LiSA-Devel mailing list