[CentOS] virtual interfaces

Wed Sep 28 03:24:26 UTC 2005
Aleksandar Milivojevic <alex at milivojevic.org>

Ryan wrote:
> I would like to add a virtual interface to one of my LAN interfaces. 

> would adding the below:
> 
> /etc/sysconfig/network-scripts/ifcfg-eth2:0
> 
> DEVICE=eth2:0
> BOOTPROTO=static
> BROADCAST=192.168.20.255
> HWADDR=00:60:08:C3:F9:71
> IPADDR=192.168.20.1
> NETMASK=255.255.255.0
> NETWORK=192.168.20.0
> ONBOOT=yes
> TYPE=Ethernet
> 
> 
> Would this create a virtual interface eth0:0 with the IP address
> 192.168.20.1?

Should work.  You might need to remove HWADDR line.