|
|
| |
a) PPPoATM configuration: | a) PPPoATM configuration: |
| |
config_ppp0=( 'ppp' ) # Runs /lib/rcscripts/net.modules.d/pppd |
config_ppp0=( 'ppp' ) # Runs /lib/rcscripts/net.modules.d/pppd.sh |
link_ppp0='/dev/null' # Not required by PPPoA links, but must be specified | link_ppp0='/dev/null' # Not required by PPPoA links, but must be specified |
# The 2 numbers represent the VPI & VCI of your ISP, and they are separated | # The 2 numbers represent the VPI & VCI of your ISP, and they are separated |
# by a dot. Choose here, or ask your ISP: | # by a dot. Choose here, or ask your ISP: |
|
|
# before starting the PPP daemon: | # before starting the PPP daemon: |
function preup() { | function preup() { |
if [[ "$1" = "ppp0" ]] ; then | if [[ "$1" = "ppp0" ]] ; then |
modprobe -q pppoatm |
local m |
modprobe -q speedtch |
for m in {pppoatm,speedtch} ; do |
|
[[ -z "$(modprobe -l ${m})" ]] || modprobe -q "${m}" |
|
done |
fi | fi |
} | } |
| |
| |
b) PPPoE configuration: | b) PPPoE configuration: |
| |
config_ppp0=( 'ppp' ) # Runs /lib/rcscripts/net.modules.d/pppd |
config_ppp0=( 'ppp' ) # Runs /lib/rcscripts/net.modules.d/pppd.sh |
# The name of the Ethernet interface over which PPPoE links | # The name of the Ethernet interface over which PPPoE links |
link_ppp0='nas0' # Must correspond to the -c option of the br2684ctl utility | link_ppp0='nas0' # Must correspond to the -c option of the br2684ctl utility |
plugins_ppp0=( pppoe ) | plugins_ppp0=( pppoe ) |
|
|
} | } |
| |
| |
|
|
|
Configuration continued |
|
======================= |
|
|
Create a symlink for the new network interface, for it to be enabled by | Create a symlink for the new network interface, for it to be enabled by |
baselayout: | baselayout: |
cd /etc/init.d && ln -sfn net.lo net.ppp0 | cd /etc/init.d && ln -sfn net.lo net.ppp0 |
|
|
If the ADSL connection seems to have worked, but no websites can be | If the ADSL connection seems to have worked, but no websites can be |
contacted, then check that /etc/resolv.conf is populated, and possibly | contacted, then check that /etc/resolv.conf is populated, and possibly |
add the "usepeerdns" option to pppd_ppp0, along with running: | add the "usepeerdns" option to pppd_ppp0, along with running: |
ln -s /etc/resolv.conf /etc/ppp/resolv.conf |
ln -sfn /etc/ppp/resolv.conf /etc/resolv.conf |
| |
If the problem is still not resolved, then describe the problem in the | If the problem is still not resolved, then describe the problem in the |
"discussion and bugs" tab at: | "discussion and bugs" tab at: |