View Single Post
  #3  
Old 19th June 2006, 01:10
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 261
Thanked 150 Times in 130 Posts
Default

Here you go: http://www.howtoforge.com/perfect_setup_centos_4.3_p3

Quote:
Now we want to create the virtual interface eth0:0 with the IP address 192.168.0.101. All we have to do is to create the file /etc/sysconfig/network-scripts/ifcfg-eth0:0 which looks like this (we can leave out the HWADDR line as it is the same physical network card):

vi /etc/sysconfig/network-scripts/ifcfg-eth0:0

DEVICE=eth0:0
BOOTPROTO=static
BROADCAST=192.168.0.255
IPADDR=192.168.0.101
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
TYPE=Ethernet
Name the next file ifcfg-eth0:1 and put the info for the 2nd IP in it..
Same for ifcfg-eth0:2 and ifcfg-eth0:3 ....

Last edited by edge; 19th June 2006 at 01:23.
Reply With Quote