networking - Linux with multiples VLAN is partialy reachable -


my network made of several vlans. have router doing job routing packets 1 vlan another. problem occurs on linux server 1 single interface, expected allow severals ip several vlan.

in order more specific: linux server has eth0.1, eth0.2, eth0.3 virtual interfaces connected frunk interface switch. each virtual interface has own ip each vlans.

wenn try reach linux-eth0.2 ip computer vlan 2 s works wenn try reach linux-eth0.1 ip computer vlan 1 s works , server m able reach each single vlans (without going through router).

but problem occurs wenn computer vlan 2 try reach server ip vlan 1 (eth0.1)

this problem solved creating static route on client side, exist way server side ensure comunication works.

i not expect have linux server acting router, answering request comming of s interface thanks

you need tell networks on each vlan configured on server has do1q subinterfaces , networks configured on router. understand want server via default route(passing through router if jump vlans) ,or server directly if work in same vlan . in order need have interfaces on server same subnet pc's . put:

router ///////////////////////////////////////////////// server

interface vlan 1 - 192.168.0.1/24 eth0.1 - 192.168.0.2/24

interface vlan 2 - 192.168.1.1/24 eth0.2 - 192.168.1.2/24

interface vlan 3 - 192.168.2.1/24 eth0.3 - 192.168.2.2/24

hope helps.


Comments