Setting up 2 IP address on “One” NIC
So say that you are running out of resources and can’t buy a new Ethernet card for the system, or there’s not enough slots for another one. No problem, whatever the reason, we can assign two or more IP addresses to our linux box using only one NIC.
I’ll do it in Fedora.
- Go to /etc/sysconfig/network-scripts/ directory
- Copy ifcfg-eth0 to the same directory and name the copy as ifcfg-eth0:0.
- Edit ifcfg-eth0:0 and enter your new IP address settings
And you’re done. So simple na. You can add up to 255 different IP addresses to one linux machine using this technique







