Create routing between virtual interface in linux
My linux box is RedHat with one NIC.
I did create 18 virtual interfaces from eth0:1 to ethO:18 in my machine.
I want to create routing between these interfaces, for instant i want to route packet from eth0:1 to eth0:5 via pass this packet through eth0:2 and eth0:3 before. (eth0:1->eth0:2->eth0:3->eth0:5) and vice versa.
But the problem is linux think that all of these 18 interfaces are in the same device. So, once i try to create the routing and send packet out,the packet will go directly from eth0:1 to eth0:5.
I try to create routing with iptables as well as using VLAN but it seem they didn't support virtual interface.
Do you guys have any idea how to make it comes true ?