What happen when I assign 2 IP on one NIC?
e.g. I have one physical NIC (eth0) and I assign on this interface 2 IPs from different network. e.g.
auto eth0
iface eth0 inet static
address 10.10.0.5
netmask 255.255.255.0
gateway 10.10.0.1
auto eth0:0
iface eth1 inet static
address 192.168.0.5
netmask 255.255.255.0
gateway 192.168.0.100
1)Which path will be if I'll send packet from 10.10.05 to 192.168.0.5 ?
2)10.10.0.1 and 192.168.0.100 are they should one physical device?
I would also appreciate a link to article/book which explains this case.
Thank you