I want to create a Linux virtual network interface (normally labeled eth0:0) using a real network interface name like eth1.
To put it another way, can I have eth0 and eth1 have different IP addresses but use the same physical network interface?
Is it possible? How?
I have a legacy application which expects two physical network interfaces (eth0 and eth1) which I want to install on a platform which has only one physical network interface.
Best Answer
What you describe are not virtual interfaces, those are just a way (the legacy way, these days you use ip addr from iproute) to assign more than one ip-address to a single interface. Technically,
eth0:0
is justeth0
.