|
|
| |
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: |
|
|
plugins_ppp0=( 'pppoa 0.38' ) | plugins_ppp0=( 'pppoa 0.38' ) |
# 'man pppd' shows other options. Compression is disabled because it is | # 'man pppd' shows other options. Compression is disabled because it is |
# rarely taken advantage of, and may interfere with the connection. | # rarely taken advantage of, and may interfere with the connection. |
# Add option 'usepeerdns' to populate /etc/ppp/resolv.conf |
# Add option 'usepeerdns' to populate /etc/resolv.conf |
pppd_ppp0=( updetach debug defaultroute noaccomp nobsdcomp noccp | pppd_ppp0=( updetach debug defaultroute noaccomp nobsdcomp noccp |
nodeflate nopcomp novj novjccomp ) | nodeflate nopcomp novj novjccomp ) |
username_ppp0='username@isp.com' # E.g. 'fredbloggs@hg5.btclick.com' | username_ppp0='username@isp.com' # E.g. 'fredbloggs@hg5.btclick.com' |
|
|
# 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 |
|
modprobe -q speedtch | modprobe -q speedtch |
|
return 0 |
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 ) |
# 'man pppd' shows other options. Compression is disabled because it is | # 'man pppd' shows other options. Compression is disabled because it is |
# rarely taken advantage of, and may interfere with the connection. | # rarely taken advantage of, and may interfere with the connection. |
# Add option 'usepeerdns' to populate /etc/ppp/resolv.conf |
# Add option 'usepeerdns' to populate /etc/resolv.conf |
pppd_ppp0=( updetach debug defaultroute noaccomp nobsdcomp noccp | pppd_ppp0=( updetach debug defaultroute noaccomp nobsdcomp noccp |
nodeflate nopcomp novj novjccomp ) | nodeflate nopcomp novj novjccomp ) |
username_ppp0='username@isp.com' # E.g. 'fredbloggs@hg5.btclick.com' | username_ppp0='username@isp.com' # E.g. 'fredbloggs@hg5.btclick.com' |
|
|
} | } |
| |
| |
|
|
|
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 |
|
|
Note that in the list below, "[*]" means that the option is compiled | Note that in the list below, "[*]" means that the option is compiled |
into the kernel, whereas "[M]" means that the option can either be | into the kernel, whereas "[M]" means that the option can either be |
compiled into the kernel, or as a module. Compiling them into the | compiled into the kernel, or as a module. Compiling them into the |
kernel is preferable, to guarantee that the modules are already loaded |
kernel is recommended, to guarantee that the modules are already loaded |
when they are needed, and it will improve the bootup time by a couple | when they are needed, and it will improve the bootup time by a couple |
of seconds. | of seconds. |
| |
|
|
Device Drivers ---> | Device Drivers ---> |
Network device support ---> | Network device support ---> |
[*] Network device support - CONFIG_NETDEVICES | [*] Network device support - CONFIG_NETDEVICES |
[M] PPP (point-to-point protocol) support - CONFIG_PPP |
[*] PPP (point-to-point protocol) support - CONFIG_PPP |
[M] PPP Deflate compression - CONFIG_PPP_DEFLATE (only useful if | [M] PPP Deflate compression - CONFIG_PPP_DEFLATE (only useful if |
compression is supported - rare) | compression is supported - rare) |
[M] PPP BSD-Compress compression - CONFIG_PPP_BSDCOMP (only useful | [M] PPP BSD-Compress compression - CONFIG_PPP_BSDCOMP (only useful |
|
|
| |
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 use the ISP's DNS) to pppd_ppp0 in |
ln -s /etc/resolv.conf /etc/ppp/resolv.conf |
/etc/conf.d/net |
| |
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: |