Configuring virtual network interfaces in Linux - LinuxConfig.org


#1

Did you know that you can assign more that one IP address to a single physical network interface? This technique is quite useful, for example when working with Apache and virtual hosts, as it allows you to access same Apache server by using two different IP addresses.


This is a companion discussion topic for the original entry at https://linuxconfig.org/configuring-virtual-network-interfaces-in-linux

#2

Pablo Olivare

Hi, than for the article.
I have a question. I have two pc into de same lan.
10.10.10.10 and 10.10.10.11, the ping work fine togethers.
The I create a virtual eth0:0 11.11.11.10 and 11.11.11.11.
From PC One the ping to 11.11.11.10 work fine, this confirm success create the virtual interface.
But the ping from PC one to Two (11.11.11.11) doesnt work.
I loss some command? Thank you!!


#3

koxmoz kox -> Pablo Olivare

Hi, the problem is that you cant have multiple host with the same ip,
real host1: 10.10.10.10
real host2: 10.10.10.11
virtual host1: 10.10.10.12
virtual host1: 10.10.10.13

I hope this can help you!