ip-iup.local not using ipparam string

Hi,

I want to parse an ipparam string to my ip-up.local on DSL start but it does not seem to be working,
Im not sure if I am specifying it incorrectly or what.

# cat /etc/sysconfig/network/ifcfg-dsl0
BOOTPROTO='none'
DEVICE='eth1'
NAME='DSL Connection'
#PPPD_OPTIONS='ipparam DSL01'
PPPD_EXTRA="ipparam DSL01"
PPPMODE='pppoe'
PROVIDER='provider0'
STARTMODE='manual'
UDI=''
USERCONTROL='no'
VPIVCI=''

Any advise would really be appreciated.

bump… :frowning:

Please guys, I would really appreciate a reply to this, even a it cant be done with openSuSE or anything

tnx

On 02/06/2012 03:46 PM, sayajin wrote:
>
> Please guys, I would really appreciate a reply to this, even a it cant
> be done with openSuSE or anything

sorry, i have no idea what you are trying to do or how you are trying to
do it…but, there are a lot of folks here that ignore help requests
without the most basic possible info like: what operating system and
version are you using!

there might even be some who won’t read past the first time the name of
this distro is misspelled…

but, i’m not either one of those…still i don’t know how to help you,
but maybe there is a real guru out there that can if they knew the
answers to some of these questions:

  1. did exactly what you have set up now work on this OS and version in
    the past, but it stopped working? [what changed? update, config edit,
    admin changed, what?]

  2. did this same setup work on a different version or distro but now
    won’t work using whatever you are using now? (on what version of which
    distro did it work?)

  3. does something similar work on another operating system, but not here?

have you browsed here without finding a solution:

a. http://tinyurl.com/77s59kw
b. http://tinyurl.com/7q2tsfy

maybe a review of this would be helpful: http://is.gd/2BfI3


DD http://tinyurl.com/DD-Caveat http://tinyurl.com/DD-Hardware
http://tinyurl.com/DD-Software
Read what Distro Watch writes: http://tinyurl.com/SUSEonDW

On 2012-02-06 15:46, sayajin wrote:
>
> Please guys, I would really appreciate a reply to this, even a it cant
> be done with openSuSE or anything

I read it, but I can’t offer any comment. I answer just to show that I read
and you don’t feel ignored.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 2012-01-28 07:26, sayajin wrote:
>
> Hi,
>
> I want to parse an ipparam string to my ip-up.local on DSL start but it
> does not seem to be working,
> Im not sure if I am specifying it incorrectly or what.

As far as I know, you refer to the script “/etc/ppp/ip-up.local”, but I
don’t see how it refers to ifcfg-dsl0, which is a configuration file. The
ipparam is the #6 parameter to the script. Last time I worked with this, I
wrote this line on the script:


> logger -t $BASENAME -p mail.debug " -> Llamando a "$0" "$INTERFACE" "$DEVICE" "$SPEED" L: "$LOCALIP" R: "$REMOTEIP" Prm: "$IPPARAM

This line allowed me to know what the script got.

HTH.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Hi Sorry for the Delay in reply, been moving house etc.

I am currently using openSuSE 12.1, I had this working in CentOS 5.7 previously.

What I was doing is in the /etc/sysconfig/network-scripts/ifcfg-ppp0 (in centos) i had a string in that file PPPD_EXTRA=“IPPARAM DSL01”,
which would then pass the “DSL01” as $6 to the /etc/ppp/ip-up.local & /etc/ppp/ip-down.local files, and execute certain commands & settings depending
on which connection came up or down (ppp0, ppp1, etc).

Now when I try this in openSuSE 12.1 it is not passing the “DSLXX” ($6) for some reason.
So this means that the rules in the ip-up.local & ip-down.local are not being executed when the corresponding connection goes up or down.

Please let me know if you require any additional information.

Thanks in advance.

On 2012-02-13 20:56, sayajin wrote:
>
> Hi Sorry for the Delay in reply, been moving house etc.
>
> I am currently using openSuSE 12.1, I had this working in CentOS 5.7
> previously.
>
> What I was doing is in the /etc/sysconfig/network-scripts/ifcfg-ppp0
> (in centos) i had a string in that file PPPD_EXTRA=“IPPARAM DSL01”,
> which would then pass the “DSL01” as $6 to the /etc/ppp/ip-up.local &
> /etc/ppp/ip-down.local files, and execute certain commands & settings
> depending
> on which connection came up or down (ppp0, ppp1, etc).

That directory does not exist in openSUSE. We have instead
“/etc/sysconfig/network/scripts/”, but there are no “ifcfg” files in there.
The closest are:


/etc/sysconfig/network/scripts/ifdown-ppp
/etc/sysconfig/network/scripts/ifup-ppp
/etc/sysconfig/network/scripts/ifstatus-ppp

and no script uses the token PPPD_EXTRA.

> Now when I try this in openSuSE 12.1 it is not passing the “DSLXX” ($6)
> for some reason.
> So this means that the rules in the ip-up.local & ip-down.local are not
> being executed when the corresponding connection goes up or down.

No, it means you have the wrong expectations. Distros do things
differently, you can not assume that what worked con centos would work here.

The file you are looking for is probably
“/etc/sysconfig/network/ifcfg-ppp0”, but I have no idea if it will accept
PPPD_EXTRA.

As I told you, you can modify the local script and learn what the sixth
parameter is.

> Please let me know if you require any additional information.

There above is all I know. But please remember that this is not tech
support, but users helping users. You have to do the investigation :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)