On Wed, 7 Nov 2001, Ken Ambrose wrote:
> [Note: if anyone can clue me in on how to execute arbitrary code from the
> /etc/sysconfig/network-scripts/ifup-ppp file, I'd be greatly appreciative;
> for some reason, it just seems to elude me.]

/etc/sysconfig/network-scripts/ifcfg-$NAME
        Defines a managed interface.  Managed interfaces are expected to
        conform to the naming convention of "dev0", "dev1", and so on (e.g.,
        "eth0", "ppp0").

/sbin/ifup
/sbin/ifdown
        Used to control managed interfaces.

/etc/sysconfig/network-scripts/ifup-post
/etc/sysconfig/network-scripts/ifdown-post
        These are Red Hat-provided scripts which execute after a managed
        interface is brought up or goes down.

/sbin/ifup-local
/sbin/ifdown-local
        If they exist, these are called by their corresponding ifup-post
        or ifdown-post scripts, so you can do your own thing.

/etc/sysconfig/network-scripts/ifup-$DEVTYPE
/etc/sysconfig/network-scripts/ifdown-$DEVTYPE
        If your interface is called "foo0", and "ifup-foo" exists, it will be
        used instead of the regular ifup/ifdown scripts.  Likewise for
        "ifdown-foo".  This lets you create new "device types" easily.
        I suspect, if you really wanted to integrate PPP-over-SSH into
        Red Hat's initscripts, you would want to create a pair of these.

/etc/ppp/ip-up
/etc/ppp/ip-down
        Executed by pppd when the IP layer comes up/goes down.
        Red Hat provides these for interface management.

/etc/ppp/ip-up.local
/etc/ppp/ip-down.local
        Red Hat's /etc/ppp/ip-{up,down} scripts call these after they
        finish, so you can do your own thing.

  (This modular approach to network interface configuration is one of the
things I really like about Red Hat.)

-- 
Ben Scott <[EMAIL PROTECTED]>
| The opinions expressed in this message are those of the author and do not |
| necessarily represent the views or policy of any other person, entity or  |
| organization.  All information is provided without warranty of any kind.  |


*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to