I have pc with eth0(1 port) and router with eth0(3 ports, each of them can be assigned to specific vlan). I want to create eth.1 and eth.2 on pc, vlan1(vid 1) and vlan2(vid 2) on router(e.g. 2 of ports will be tagged) and make sure that traffic from eth.1(pc) comes to vlan1(router) and via verse, same for eth.2-vlan2 pair. Router will be connected to pc with 3rd untagged port. Will this setup work as i expecting?Router and pc Linux based, bouth have ebtables and iptables working.
vlan help - computer with one port and router with 3 ports - connect vlans on pc to vlans on router
linux;iptables;vlan