Create And Configure Multiple Virtual Network Interfaces In Ubuntu Linux with ease.
Configuring Virtual Networks:
Let's start, go to Applications, Accessories, Terminal and type:
$ sudo gedit /etc/network/interfaces
Duplicating the eth0 interface create virtual network cards and IP addresses. And adding a unique number starting from 1 to 9.
auto eth0:x allows that the network interface starts when Ubuntu starts
iface eth0:x declares the network card.
Save when done creating virtual networks
Run the below commands to restart Ubuntu networking services
$ sudo /etc/init.d/networking restart
Now take a look at your ifconfig command