Trying to set up some virtual interfaces for a network card.
So... eth0 = main card.
eth0:1 = 1st virtual
eth0:2 = 2nd virtual
Need to create a route from one, to the other.
I understand I need to create a /etc/sysconfig/network-scripts/route-eth file. But unsure if that is a route-eth0 file with the differences made out inside by doing
gateway1=xxxx
gateway2=xxxx
Or do I do an individual route-eth0:1 route-eth0:2 file and put the specific details in each as...
gateway0=xxxx
Solved it. Gave up trying to specify for a specific interface beyond the device.
So /etc/sysconfig/network-scripts/route-eth0
With
/ via
as a single line in the file. Makes all ips routable despite being on different subnets :)
original: 192.168.0.0/16
virtual: 192.169.0.0/16
gateway: 192.168.0.1
route line: 192.168.0.0/16 via 192.168.0.1
Sorted.