|
Hi,
Tell us about the distro that you are using,
In Redhat, you can create a virtual interface by creating a file named ifcfg-[iface name]:[number] in folder /etc/sysconfig/network-scripts/. for example to create a virtual interface for eth0, create a file called ifcfg-eth0:0 under the above folder.
All necessary parameters can be modified inside this file, for example:
DEVICE=eth0:0
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.10.21
NETMASK=255.255.255.0
TYPE=Ethernet
Remember to restart the network using service network restart.
Regards
|