Bug 57924 - ifup support for PPPoE broken
Summary: ifup support for PPPoE broken
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-01-02 01:54 UTC by Craig Lawson
Modified: 2014-03-17 02:24 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-02-07 03:40:51 UTC
Embargoed:


Attachments (Terms of Use)

Description Craig Lawson 2002-01-02 01:54:22 UTC
Description of Problem:
  Unable to start eth0 automatically at boot for use with PPPoE

Version-Release number of selected component (if applicable):
  initscripts-5.84.1-1

How Reproducible:
  100%

Steps to Reproduce:
1. Configure /etc/sysconfig/network-scripts/ifcfg-eth0 with:
      DEVICE=eth0
      ONBOOT=yes
      BOOTPROTO=none
      USERCTL=no
2. Restart the network: /etc/init.d/network restart

Actual Results:
The network script claims to have successfully brought up eth0, but
ifconfig shows that eth0 is down.

Expected Results:
I expected eth0 to be up.

Additional Information:
  A work-around is to manually run "ifconfig eth0 up". Works fine. I can
successfully start PPPoE after that.

  This all worked fine before I updated my system with up2date. I tracked
down the trouble to the "ifup". A previous version this script (sorry, I
don't know the package version, but it's probably the one on the RH 7.1 CD)
contains:

    if [ -z "${IPADDR}" ]; then
         # enable device without IP, useful for e.g. PPPoE
-        ifconfig ${DEVICE} up ${MTU:+mtu $MTU}
	 exec /etc/sysconfig/network-scripts/ifup-post ${CONFIG} ${2}
    fi

where the line preceeded with "-" is missing in initscripts-5.84.1-1.


  As a side note, I tried to use ifenslave to fix this. It didn't work with
 ppp0, otherwise I would use the MASTER=ppp0 and SLAVE=yes values in
ifcfg-eth0. "ifenslave ppp0 eth0" gives the following error message:

  The specified master interface 'ppp0' is not ethernet-like.
    This program is designed to work with ethernet-like network interfaces.
   Use the '-f' option to force the operation.

and "ifenslave -f ppp0 eth0" gives:

  master has no hw address assigned; getting one from slave!
  BOND_SETHWADDR on eth0 failed: Bad address

/sbin/ifenslave is from iputils-20001110-1. There does not seem to be a
dependency between the initscripts and iputils packages.

Comment 1 Bill Nottingham 2002-02-07 03:40:46 UTC
Whoops, you're right. This was broken there, and fixed in 7.2. I'll fix this on
the 7.1 branch, but it probably won't go out unless we need to do a 7.1 errata.


Note You need to log in before you can comment on or make changes to this bug.