LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How to connect broadband automatically at boot (https://www.linuxquestions.org/questions/debian-26/how-to-connect-broadband-automatically-at-boot-232106/)

satimis 09-18-2004 07:48 AM

How to connect broadband automatically at boot
 
Hi folks,

Broadband - via ADSL router
Connection - requiring login and password

Just have Debian installed with sarge-i386-netinst booting to 'init 2' only. I need to have the Debian box connected to broadband automatically at boot instead of running;

# pon dsl-provider

after booting up the box. Following file already existing;

# cat /etc/ppp/ppp_on_boot.dsl
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
export PATH
exec pppd call dsl-provider

Please advise how to make it. TIA

B.R.
satimis

macondo 09-18-2004 08:08 AM

During the installation, it asks you if you want to use ADSL, say Yes, and it will do it AUTOMATICALLY.

satimis 09-18-2004 10:10 AM

Quote:

Originally posted by macondo
During the installation, it asks you if you want to use ADSL, say Yes, and it will do it AUTOMATICALLY.
Hi mancodo,

Tks for your advice.

I did NET installation using sarge-i386-netinst CD. It never asked me, no such page.

B.R.
satimis

macondo 09-18-2004 11:59 AM

it must have, otherwise, how did you download?

Here's rodda's example of net install:

1.Boot screen
2.Choose language
<English>
3.Choose country or region
<United States>
4.Select keyboard layout
<American English>
5.Detecting hardware to find CDROM drives (progress bar)
6.Loading components of the Debian installer (progress bar)
7.Detecting network hardware (progress bar) NOTE: if DHCP is available on the network, the installer will automatically configure the network interface. If no DHCP server is found, a manual network entry screen will be displayed.
8.Configuring the network with DHCP (progress bar)
9.Configure the network (host)
<debian>
10.Configure the network (domain)
<home.local>

init 2 is fine, that's what i got, plus i also use ADSL.

satimis 09-19-2004 07:24 AM

Hi macondo,

Tks for your advice.

Net install pages

First popup following page
1) Choose Language
2) Choose Counrtry or Region
3) Select a keyboard layout
4) Detect and mount CD-ROM
5) Load installer components from CD
6) Change debconf priority
7) Check the CD-ROM(s) integrity
8) Execute a shell
9) Abort the installation

While selecting above items upto 5), IIRC, it popup another page as follow;

1) Choose Language
2) Choose Counrtry or Region
3) Select a keyboard layout
4) Detect and mount CD-ROM
5) Load installer components from CD
6) Detect Netwrok hardware
7) Configure the network
8) Continue installation remotely using SSH
9) Detect hardware
10) Partition disks
11) Install the base system
12) Install GRUB boot loader on a hard disk
13) Install LILO boot loader on a hard disk
14) Continue without boot loader
15) Finishing the installation
16) Change debconf priority
17) Configure the base system before rebooting
18) Save debug logs
19) Check the CD-ROM(s) integrity
20) Execute a shell
21) Abort the installation

It never asked filling in the requirements to connect broadband (in my case it needs Login and Password). I have to manually edit following files to get broadband connected.

/etc/ppp/pap-secrets
/etc/ppp/peers/dsl-provider
/etc/ppp/ppp_on_boot

Afterwards I can connect broadband with

# pon dsl-providers

ifconfig showing its connection to ISP. However I could only ping IP address not URL/Domain_name.

(Remark:
I have another Debian box to connect/disconnect broadband with
# pon/poff
only

# pon dsl-providers/poff dsl-providers
can't work. It complaint)

Now I need to complete the installation of this box to install KDE desktop, browser, etc. but I could not connect relevant website to download packages. Furthermore on running

# base-config

on selecting the item for packages selection. It prompted a running screen saying packages not available.

I'm prepared to make another fresh installation. Before doing so I expect to find out the cause of this failure otherwise I'll come back to the same situation again.

B.R.
satimis

Dead Parrot 09-19-2004 07:44 AM

Have you tried "pppoeconf"?

satimis 09-19-2004 10:30 AM

Hi Dead Parrot,

Tks for your advice.

Quote:

Have you tried "pppoeconf"?
I tried to read it. It is an execute file. I also tried to run

# pppoe start
only unreadable codes displayed.

Now I am facing another immediate problem.

I discovered if starting connection with

# pon dsl-providers

broadband connected. But I was only allowed to ping IP addresses. To ping URLs did not work. However if started connection by running

# pon

I can ping both IP address and URL. It was discovered by me on another Debian 3.0 box which did not accept

# pon dsl-providers

Only
# pon


I added "pon" on /etc/ppp/ppp_on_boot

cat /etc/ppp/ppp_on_boot
....
pon
# exec pppd call dsl-provider

Now the Debian box can't boot up hanging on
......
Starting pppd-

Is there any way to remove "pon" from /etc/ppp/ppp_on_boot and uncomment "exec pppd call dsl-provider"

TIA

B.R.
satimis


All times are GMT -5. The time now is 02:52 PM.