Script problem with ifconfig, to do IP aliasing.

Script problem with ifconfig, to do IP aliasing.

Post by Michael Parient » Fri, 19 Mar 1999 04:00:00


I try to have several address IP on my machine (RedHat 5.2)
So I read the "Mini How-to on Setting Up IP Aliasing
On A Linux Machine"

Every thing is OK when I manually enter each commands.

But when I put exactly the same command lines in a file
to make a script, the execution of the script stops
(nothing happens, everything is blocked, I have to
do CRTL+C), at the line :
                          /sbin/ifconfig eth0 up

Bellow, there is the all script

Thanks in advance for help

Micha?l Parienti


#setting up IP alias interfaces
echo "Setting, IP Aliases ..."
/sbin/ifconfig lo
/sbin/ifconfig eth0 up
/sbin/ifconfig eth0
/sbin/ifconfig eth0:0
#setting up the routes
echo "Setting IP routes ..."
/sbin/route add -net
/sbin/route add -net dev eth0
/sbin/route add -host eth0
/sbin/route add -host eth0:0


1. script alias problem - Re: apache alias and script alias problem

I actually did not have the <Directory> setup properly.

I am still having a problem with the script alias.

For example.

I set an alias -

Alias / /home/user1/html/

and a Script Alias -
ScriptAlias /cgi-bin/ /home/user/cgi-bin/

However the script alias is not working because the log shows that
when entering:

/home/user/html/cgi-bin/ is actually being referenced.

When I remove the first Alias statement the cgi-bin script directory
is properly aliased.

Any suggestions.



Please remove TOREMOVE chars to e-mail me

2. default value for IP_MULTICAST_TTL?

3. TCP/IP aliases & ifconfig under Solaris

4. killing a process from a script

5. ?:Kernel V2.2.-IP Alias-eth0:0 Is Invisible To 'ifconfig"?

6. HELP! Linux 1.3.35 and above, and tulip.c

7. Need Multi-IP ifconfig alias patch

8. Need Help in Contacting Linus Torvalds

9. Smart ifconfig? (aliasing 2 IP's)

10. IP Aliasing with Linux 2.0.0 ifconfig error

11. Strange ifconfig/ip-alias behavior

12. How to identify if an IP is aliased or not from ifconfig command ?

13. ??:Kernel V2.2.1 - IP Alias - eth0:0 Is Invisible To 'ifconfig"???