To get pppoe working in Linux/Slackware. You do not configure your NIC network settings. Leave it blank.
/etc/rc.d/rc.inet1.conf
Should read:
Code:
# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""
# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""
# Default gateway IP address:
GATEWAY=""
# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"
You need to configure your adsl account information using
Answer the question given, pretty straight forward.
To connect issue the command:
To disconnect:
And adsl-status is equivalent to ifconfig ppp0
To have your adsl connection switch on when booting Slackware.
Put the following command into /etc/rc.d/rc.local
Code:
/usr/sbin/adsl-start
I did it slightly different.
I added
Code:
if [ -x /etc/rc.d/rc.adsl ]; then
/etc/rc.d/rc.adsl start
fi
At the beginning of /etc/rc.d/rc.inet2
Why? Cause rc.inet2 is starting my network services/servers. It only make sense if I have my connection up first before doing that.
And /etc/rc.d/rc.adsl contains:
Code:
#!/bin/bash
#
case "$1" in
'start')
/usr/sbin/adsl-start
/usr/sbin/adsl-status ;;
'stop')
/usr/sbin/adsl-stop
/usr/sbin/adsl-status ;;
'restart')
/usr/sbin/adsl-stop
/usr/sbin/adsl-start
/usr/sbin/adsl-status ;;
*)
echo "usage $0 start|stop|restart" ;;
esac