Hello!
My default LAN is 192.168.1.0/24 with DHCP (br0, router WNR3500Lv2 [Tomato by Shibby] - 192.168.1.1)
My additional VLAN is 192.168.2.0/24 with DHCP (br1, there is a computer with IP 192.168.2.2)
I need to VPN access from the outside to the VLAN 192.168.2.0 and can browse computers in this VLAN like normally a cable plugged into the switch. If I use TAP, connects me to the network 192.168.1.1, because it is the default for the router and then it's ok, I can ping the entire network 1.1 (good IP from DHCP and mask 255.255.255.0), but if I use TUN the client receives ip 192.168.2.6 with mask 255.255.255.252 and strange 192.168.2.5 DHCP server. Unfortunately, the client can not ping 192.168.2.2 computer, but the router at address 192.168.1.1 and 2.1 anyway.
I read about half the Internet and stand in the place - probably something I do not understand, so please help, explain me what i doing wrong.
Routing table:
Destination Gateway / Next Hop Subnet Mask Metric Interface
192.168.2.2 * 255.255.255.255 0 tun21
80.54.78.1 * 255.255.255.255 0 vlan2 (WAN)
80.54.78.0 * 255.255.255.0 0 vlan2 (WAN)
192.168.2.0 192.168.2.2 255.255.255.0 0 tun21
192.168.2.0 * 255.255.255.0 0 br1 (LAN1)
192.168.1.0 * 255.255.255.0 0 br0 (LAN)
127.0.0.0 * 255.0.0.0 0 lo
default 80.54.78.1 0.0.0.0 0 vlan2 (WAN)
PS: Sorry for my english