RH7: network can't restart : ifup not found ???

RH7: network can't restart : ifup not found ???

Post by Marcello M. Pava » Sat, 27 Jan 2001 07:17:17



Greetings

Just finished doing a pristine install of RH7.0.
[dual Celeron 366a on (gasp) Bp6 MB, 256MB RAM, SCSI, IDE disks,
SCSI CDROM, 2 SCSI DLT tape drives, 3com 3c900 ethernet]

anyhow, after editing the file  /etc/sysctl.conf to add some
safety features (e.g. tcp_syncookies), I tried restarting the network via
                /etc/rc.d/init.d/network restart

and got the following

Quote:>/etc/rc.d/init.d/network restart

Shutting down interface eth0:                              [  OK  ]
Disabling IPv4 packet forwarding:                          [  OK  ]
Setting network parameters:                                [  OK  ]
Bringing up interface lo:  ./ifup: ./ifup: No such file or directory
                                                           [FAILED]
Bringing up interface eth0:  ./ifup: ./ifup: No such file or directory
                                                           [FAILED]

The very WEIRD thing is, ifup EXISTS with correct permissions

Quote:>ls -lG /etc/sysconfig/network-scripts/

total 37
-rw-r--r--    1 root           44 Jan 25 13:35 ifcfg-eth0
-rw-r--r--    1 root          340 Jan 25 12:22 ifcfg-eth0~
-rw-r--r--    1 root          254 Sep 20  1999 ifcfg-lo
lrwxrwxrwx    1 root           12 Jan 24 15:58 ifdown -> /sbin/ifdown
-rwxr-xr-x    1 root          735 Apr  4  2000 ifdown-post
-rwxr-xr-x    1 root          819 Aug 18 14:38 ifdown-ppp
-rwxr-xr-x    1 root          937 Sep  8  1999 ifdown-sl
lrwxrwxrwx    1 root           10 Jan 24 15:58 ifup -> /sbin/ifup
-rwxr-xr-x    1 root        13851 Jun  1  2000 ifup-aliases
-rwxr-xr-x    1 root         1066 Jan 13  2000 ifup-ipx
-rwxr-xr-x    1 root          724 Jul  7  1998 ifup-plip
-rwxr-xr-x    1 root         2410 Apr 12  2000 ifup-post
-rwxr-xr-x    1 root         3140 Aug 23 19:40 ifup-ppp
-rwxr-xr-x    1 root          535 Aug  6 22:21 ifup-routes
-rwxr-xr-x    1 root         1647 Aug 25  1999 ifup-sl
-rw-r--r--    1 root         2147 Aug  7 11:40 network-functions

Quote:>ls -lG /sbin/if*

-rwxr-xr-x    1 root         2966 Jul 25  2000 /sbin/ifcfg
-rwxr-xr-x    1 root        47644 Jul 12  2000 /sbin/ifconfig
-rwxr-xr-x    1 root         1363 Aug 15 13:01 /sbin/ifdown
-rwxr-xr-x    1 root        12336 Oct 10 13:18 /sbin/ifenslave
-rwxr-xr-x    1 root         3725 Aug  3 07:21 /sbin/ifup

Quote:>echo $PATH

/root/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/X11R6/bin

but for some crazy reason the network script does >>not<< find it.
It finds   ifdown   OK though.????

I checked that in the network script file that it chages to the correct
directory.  
** if I put in  /sbin/ifup directly into the script, it then complains
that other files  networf-functions, etc  cannot be found, though
they are clearly there.

I am at my wits end.  if you have any suggestions, they would be most
appreciated.

with best regards, Marcello Pavan

 
 
 

RH7: network can't restart : ifup not found ???

Post by ne.. » Sat, 27 Jan 2001 08:08:44



Quote:>Greetings

>Just finished doing a pristine install of RH7.0.
>[dual Celeron 366a on (gasp) Bp6 MB, 256MB RAM, SCSI, IDE disks,
>SCSI CDROM, 2 SCSI DLT tape drives, 3com 3c900 ethernet]

>anyhow, after editing the file  /etc/sysctl.conf to add some
>safety features (e.g. tcp_syncookies), I tried restarting the network via
>            /etc/rc.d/init.d/network restart

>and got the following

>>/etc/rc.d/init.d/network restart
>Shutting down interface eth0:                              [  OK  ]
>Disabling IPv4 packet forwarding:                          [  OK  ]
>Setting network parameters:                                [  OK  ]
>Bringing up interface lo:  ./ifup: ./ifup: No such file or directory
>                                                           [FAILED]
>Bringing up interface eth0:  ./ifup: ./ifup: No such file or directory

>The very WEIRD thing is, ifup EXISTS with correct permissions
[...]
>>ls -lG /sbin/if*
>-rwxr-xr-x    1 root         2966 Jul 25  2000 /sbin/ifcfg
>-rwxr-xr-x    1 root        47644 Jul 12  2000 /sbin/ifconfig
>-rwxr-xr-x    1 root         1363 Aug 15 13:01 /sbin/ifdown
>-rwxr-xr-x    1 root        12336 Oct 10 13:18 /sbin/ifenslave
>-rwxr-xr-x    1 root         3725 Aug  3 07:21 /sbin/ifup

Looking at the failed line, U'll see that the script is setup to
be called from the /sbin directory ( the ./ifup bit). Therefore
you need to called /etc/rc.d/init.d/network script from the
/sbin directory or else hardcode all the directories in the
script.

--
Registered Linux User # 125653 (http://counter.li.org)
The sun never sets on those who ride into it.
                -- RKO
  6:04pm  up 14 days, 21:03, 11 users,  load average: 0.00, 0.00, 0.00

 
 
 

RH7: network can't restart : ifup not found ???

Post by Eric » Sat, 27 Jan 2001 20:20:13


Quote:> >anyhow, after editing the file  /etc/sysctl.conf to add some
> >safety features (e.g. tcp_syncookies), I tried restarting the network via
> >               /etc/rc.d/init.d/network restart

> >and got the following

> >>/etc/rc.d/init.d/network restart
> >Shutting down interface eth0:                              [  OK  ]
> >Disabling IPv4 packet forwarding:                          [  OK  ]
> >Setting network parameters:                                [  OK  ]
> >Bringing up interface lo:  ./ifup: ./ifup: No such file or directory
> >                                                           [FAILED]
> >Bringing up interface eth0:  ./ifup: ./ifup: No such file or directory

> >The very WEIRD thing is, ifup EXISTS with correct permissions
> [...]
> >>ls -lG /sbin/if*
> >-rwxr-xr-x    1 root         2966 Jul 25  2000 /sbin/ifcfg
> >-rwxr-xr-x    1 root        47644 Jul 12  2000 /sbin/ifconfig
> >-rwxr-xr-x    1 root         1363 Aug 15 13:01 /sbin/ifdown
> >-rwxr-xr-x    1 root        12336 Oct 10 13:18 /sbin/ifenslave
> >-rwxr-xr-x    1 root         3725 Aug  3 07:21 /sbin/ifup
> Looking at the failed line, U'll see that the script is setup to
> be called from the /sbin directory ( the ./ifup bit). Therefore
> you need to called /etc/rc.d/init.d/network script from the
> /sbin directory or else hardcode all the directories in the
> script.

Ehhhhh....
I've never done this from /sbin, (RH6.X) and it never failed.

To the OP:

run `file /sbin/ifup`
You'll see it's a script.
Make sure the shell called exists where it is expected.

And echo the path just before the scripts are called in the
network-script
to see if they are called from where you think they are.
(ie. add some `pwd` commands to /etc/rc.d/init.d/network)

Eric

 
 
 

1. reboot fixes eth0 but not ifup/network restart

I have an Intel Etherexpress Pro 10/100 card that is connected
directly to my RoadRunner cable modem, so it's getting an ip through
dhcp.  When I boot up my machine, eth0 comes up okay with no problems
whatsoever, and I can get on the network and so forth.  But, if my
cable modem crashes and I lose my ip address, or if I just manually go
in and do:

ifdown eth0
ifup eth0

-or-

/etc/rc.d/init.d/network restart

I get the following error:

Determining IP information for eth0...Operation failed.
 done.

Now, if I do ifconfig on the network card before doing the ifdown/ifup
combo, I get the following:

eth0      Link encap:Ethernet  HWaddr 00:A0:C9:1E:7A:1D
          inet addr:x.x.x.x  Bcast:255.255.255.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5886 errors:0 dropped:0 overruns:0 frame:0
          TX packets:168 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:11 Base address:0x2000

If I do it after the ifup/ifdown combo, I get this:

eth0      Link encap:Ethernet  HWaddr 00:A0:C9:1E:7A:1D
          inet addr:x.x.x.x  Bcast:255.255.255.255  Mask:255.255.254.0
          UP BROADCAST NOTRAILERS RUNNING  MTU:1500  Metric:1
          RX packets:89320 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2932 errors:0 dropped:0 overruns:0 carrier:0
          collisions:12 txqueuelen:100
          Interrupt:11 Base address:0x2000

For the ip address, I put x.x.x.x so I wouldn't be posting my ip on
usenet, but in reality they both give valid ip addresses.  The big
difference I see is that before ifdown, I am getting "UP BROADCAST
RUNNING MULTICAST" but afterwards I'm getting "UP BROADCAST NOTRAILERS
RUNNING."  

So, if I try to ping something after doing ifdown/ifup eth0 (or
network restart), I get the error "Destination Port Unreachable."  I'm
really clueless as to why this is happening.  It's a big pain in the
butt because everytime my cable modem goes down for some reason, I
have to reboot my linux box completely.

Any ideas on how I can fix this?

Thanks!
-Dustin

2. Listen Directives

3. how to get XShm?

4. It's not bad canned meat...

5. Simple, stupid, stty Question

6. Printer Setup

7. '~$ sudo ifup eth0' does not provide Internet access.

8. Using PS to find a process and then restarting if not found (HELP)

9. help: not detecting network card, can't find 3c509b at boot time (not P&P )

10. Linux's '/sbin/service network restart' equivalent in FreeBSD ?

11. iptables host/network 'isp.mail.server' not found