Doug B wrote:
On Tuesday 07 September 2004 08:15 am, Daniel Secareanu wrote:
I am trying to set up some virtual interfaces to load at reboot time and I keep failing... Doing it with /etc/sysconfig/network/ifcfg-eth0:1 seems to be deprecated and is not working (I tested it and didn't work for me). /etc/sysconfig/network/ifcfg.template says something about labeling in the /etc/sysconfig/network/ifcfg-id<mac> the two virtual interface, something like IPADDRESS_0, IPADDRESS_1 and so on... Tried that as well and still not working... Can you guys just simply tell me how to easily do this so that I have virtual interfaces loading at boot time after the network interfaces are up?
Here is what I added to my ifcfg to get a virtual interface...
IPADDR_1=192.168.0.100 NETMASK_1=255.255.255.0 BROADCAST_1=192.168.255.255 LABEL_1=1
It probably doesn't matter, but just in case, I did make one other change. Something choked on the ifcfg-id<mac> name. It was too long and got truncated. I renamed the file to ifcfg-eth0 and it worked. I now have an eth0 and an eth0:1
I tried these but with no success. To test it, I am doing: rcnetwork restart ifconfig And I only see the originally DHCP assigned IP address and not the supplementary static ones I wish to see there. Simply adding them manually with ifconfig works, but as Daniel mentionned it, it's not as we would like to have it: at boot time. I am putting the config file below for info, just in case there is a mistake in it... TIA! Patrick -- /etc/sysconfig/network # cat ifcfg-eth1 BOOTPROTO='dhcp' MTU='' REMOTE_IPADDR='' STARTMODE='onboot' UNIQUE='VCu0.AujCtKsDPG3' _nm_name='bus-pci-0000:01:00.0' BOOTPROTO_1='static' BOOTPROTO_2='static' IPADDR_1=192.168.0.1/24 IPADDR_2=192.168.1.1/24 LABEL_1=1 LABEL_2=2