I created virtual ip on interface with the following command in centos.
ifconfig eth0:0 10.100.0.5/24 broadcast 10.100.0.255
real ip of the interface is 10.100.0.3. When I ping another host my source ip is 10.100.0.3 which is not something I want. I want virtual IP to appear as source.
I tried to add default gateway interface eth0:0 but in route -n still shows me eth0 as default gateway interface.
Any help is appreciated.