[lkml]   [1996]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectIP_Alias and SysVInit
Okay I am trying to setup an alias for my eth0 interface.  I am using
SysVInit on a Rembrandt Installation (Same thing on Slackware install so
it is not this version).

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
eth0:0::unknown interface

The following line DOES work:
/sbin/ifconfig eth0:0

I am running ifconfig version 1.20 (Rembrandt) or ifconfig version 1.22

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.


 \ /
  Last update: 2005-03-22 13:38    [W:0.019 / U:1.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site