PPP working, /etc/ppp/ip-up not working, HELP Please

PPP working, /etc/ppp/ip-up not working, HELP Please

Post by da.. » Mon, 06 Jan 1997 04:00:00



The title explains it all. . .

Current status:  I walked through the entire ppp document again, and was
able to create a chat script to autologin using information inside the
/etc/ppp/options file, ppp-on, ppp-on-dialer, and ppp-off.

But I can't get ip-up to run.  I was careful to follow the exact
tutorial that the PPP HOWTO gave, and it wouldn't run.

In /var/log/messages I can see 'cannot execute /etc/ppp/ip-down, Exec
format error'

It indeed was not the correct format.  I have added a #!/bin/sh to the
first line, and have changed this to #!/bin/bash, and have messed with
all kinds of permissions.  Inside each corresponding file I just edited
down each file until they say:

echo IPUP is RUNNING > ipup.log

or

echo IPDOWN is RUNNING > ipdown.log

And I can run these files by hand and they work, but damned if it will
run with a ppp network layer comes up.  ip-down looked like it has tried
to run as mentioned above, but I can't recreate it.  ip-up has never
tried, according to the /var/log/messages.  I bring the ppp connection
down using ppp-off.  I also have added recommendations accordingn to
documentation and they don't run with exact syntax lifted from these
documents.

I am completely stumped.  Can anyone help?   I cannot find anything
anywhere that gives me a clue about what I might be missing.

I can manually alter the client routing on dialup, and I have an idea on
how to get the server side to alter the routing based on a mickey mouse
script I can write, but it is not the way it should work. If ip-up and
ip-down worked, it would be a piece of cake.  But I can't figure out
this last piece. . .

Help anyone??  Thanks, I would be very grateful.  Have installed and run
several other items under Linux and it all makes sense.  Have used dip
sacripts as well as chat scripts, and they all work fine.  But
/etc/ppp/ip-up and ip-down just flat aren't executing and I can't figure
out why.

Am running PPPD 2.2 under RedHat Linux 4.0.  Everything else works like
a champ.

tx, david

-------------------------------------------------

-------------------------------------------------

 
 
 

PPP working, /etc/ppp/ip-up not working, HELP Please

Post by Guenther Dietric » Wed, 08 Jan 1997 04:00:00



> But I can't get ip-up to run.  I was careful to follow the exact
> tutorial that the PPP HOWTO gave, and it wouldn't run.

.
.
.
Quote:> Help anyone??  Thanks, I would be very grateful.  Have installed and run
> several other items under Linux and it all makes sense.  Have used dip
> sacripts as well as chat scripts, and they all work fine.  But
> /etc/ppp/ip-up and ip-down just flat aren't executing and I can't figure
> out why.

I got an ip-up running:
My /etc/ppp/ip-up is owned by, readabele by and executable by root. Looks like
    # ls -l /etc/ppp/ip-up
    -rwx------   1 root     root          117 Jan  7 19:44 /etc/ppp/ip-up

Contents:

    #!/bin/sh
    # things to be done on ip up of the ppp link
    #
    # set default route
    /sbin/route add default dev ippp0

Maybe it's the execution right that makes it working?

Hope I could help you

Guenther

 
 
 

PPP working, /etc/ppp/ip-up not working, HELP Please

Post by Paul Cifarell » Wed, 15 Jan 1997 04:00:00



> When I had a dialup connection using a linux computer in an ethernet
> connecting to my ISP everything worked fine. Now I have a leased line
> to the same ISP, and I can't get it working. My ppp_link file is

> #!/bin/sh
> exec /usr/sbin/pppd /dev/cua0 38400 -detach modem lock crtscts
> defaultroute silent  lcp-echo-interval 5 lcp-echo-failure 1

> (the last two lines are really one line). The ppp_link script is
> started from the inittab.

questions:  

What does the inittab entry look like and for what runlevel?  
Is there any other script being run for that level?  
What distribution are you using?
What does /sbin/ifconfig print out?

My guess is that startup the problem - I cant see anything else
obviously wrong.

Paul C.


 
 
 

1. PPP working, /etc/ppp/ip-up not working, HELP Please

The title explains it all. . .

Current status:  I walked through the entire ppp document again, and was
able to create a chat script to autologin using information inside the
/etc/ppp/options file, ppp-on, ppp-on-dialer, and ppp-off.

But I can't get ip-up to run.  I was careful to follow the exact
tutorial that the PPP HOWTO gave, and it wouldn't run.

In /var/log/messages I can see 'cannot execute /etc/ppp/ip-down, Exec
format error'

It indeed was not the correct format.  I have added a #!/bin/sh to the
first line, and have changed this to #!/bin/bash, and have messed with
all kinds of permissions.  Inside each corresponding file I just edited
down each file until they say:

echo IPUP is RUNNING > ipup.log

or

echo IPDOWN is RUNNING > ipdown.log

And I can run these files by hand and they work, but damned if it will
run with a ppp network layer comes up.  ip-down looked like it has tried
to run as mentioned above, but I can't recreate it.  ip-up has never
tried, according to the /var/log/messages.  I bring the ppp connection
down using ppp-off.  I also have added recommendations accordingn to
documentation and they don't run with exact syntax lifted from these
documents.

I am completely stumped.  Can anyone help?   I cannot find anything
anywhere that gives me a clue about what I might be missing.

I can manually alter the client routing on dialup, and I have an idea on
how to get the server side to alter the routing based on a mickey mouse
script I can write, but it is not the way it should work. If ip-up and
ip-down worked, it would be a piece of cake.  But I can't figure out
this last piece. . .

Help anyone??  Thanks, I would be very grateful.  Have installed and run
several other items under Linux and it all makes sense.  Have used dip
sacripts as well as chat scripts, and they all work fine.  But
/etc/ppp/ip-up and ip-down just flat aren't executing and I can't figure
out why.

Am running PPPD 2.2 under RedHat Linux 4.0.  Everything else works like
a champ.

tx, david

-------------------------------------------------

-------------------------------------------------

2. How can I denying users to access

3. motherboard with 66MHz PCI

4. pppd: /etc/ppp/ip-up /etc/ppp/ip-down: Exec format error

5. Traffic shaper Problem

6. eql (load balancing) - /etc/ppp/ip-up HELP Please!

7. some silly C programming problem

8. load balancing - /etc/ppp/ip-up Help Please!

9. load balancing - /etc/ppp/ip-up Help please!

10. load balancing - /etc/ppp/ip-up Help Please!

11. PPP still not working..Please help...

12. Talk does not work, PPP, HELP please