Hi everybody,
Running OpenWRT Kamikaze 7.09 on a WRT54GL. I am *not* using wireless for this, just plain old Ethernet. I managed to split up the ports into different VLANS without any problem (thanks for the docs).
Question is: is it possible to tag an outgoing packet according to its IP address (or subnet/whatever)?
The problem is I have a PC (Windoze) with a single NIC (can't install another one); I have two IP addresses (on different subnets, say subnet1 and subnet2) for the PC but no VLAN support. This means that all packets coming/going to the PC will be untagged.
PC is connected to the WRT which, in turn, is connected to a switch downstairs with VLAN support, and then to the rest of the LAN.
So, all packets coming *from* the switch (i.e. the rest of the LAN) will be tagged accordingly (say, VLAN1 and VLAN2): the WRT should untag them and send them (all) to the PC. This doesn't look like a big deal.
Problem is the reverse: packets coming from the PC to subnet1 should be tagged by the WRT54 (again, according to their IP address) for VLAN1 and sent out to the switch. Packets from the PC to subnet2 should be tagged with VLAN2 and sent to the switch. The switch downstairs will handle the packets based on their VLAN tag and send them out to the rest of the LAN.
And one last thing: only one wire from the WRT54 to the big switch downstairs. This means that the WRT has one port talking to 2 different VLANS.
I hope I have been sufficiently clear. Is this possible at all?
Any suggestions are most welcome! Thanx!