I have the rc3.d/S10network file runing the ifup in the
/etc/sysconfig/network-scripts directory.
Inside this directory I have the ifcfg-eth0 file and I also have create
a ifcfg-eth0:0 file with the correct settings.
This all seems to "run" correctly. from the init script except that the
alias is being "Delayed".
I traced the problem to the following line:
/sbin/ifconfig ${DEVICE} 2>&1 | grep -s "unknown interface" > /dev/null
if I run this line, step by step, I find out that the "/sbin/ifconfig
eth0:0 2>&1" or "/sbin/ifconfig eth0:0" comes back with the following
error:
eth0:0::unknown interface
The following line DOES work:
/sbin/ifconfig eth0:0 192.168.1.1
I am running ifconfig version 1.20 (Rembrandt) or ifconfig version 1.22
(Slackware)
Questions
1. Is this the correct place to put IP aliases for boot time loading?
2. Why does ifconfig not see that alias interface like this? Is there a
patch for this?
3. Is the problem in the init scripts or in ifconfig?
4. What does "2>&1" do? I cannot find it anywhere.
TIA