|
Depending on your version of Linux, described procedures might slightly
differ.
Choose a type of Connection
A. netcfg setup in Xwindows:
Start Xwindows with the startx command (login as root)
start the network configuration manager with the command netcfg.
In the names tab type your ISP's domain in the domain field
Add DNS IPs in the nameserver section.
Click on the interfaces tab and click on add button
Netcfg will ask for type of connection please choose PPP
after choosing PPP and clicking ok type in the following
information in the appropriate fields(as indicated in your
confirmation)
- Phone number
- username
- password
Click on done and save the interface.
How to Connect and disconnect:
Highlight the PPP interface in Net configuration
Click on activate
the modem will start dialing and if all settings and hardware is
correct, connect you to your ISP's Network;
to disconnect make sure your PPP interface is highlighted and
choose deactivate.
B: KDE Desktop
If you use KDE as your desktop and only wish to connect while
running that desktop, the use of the network tool "kppp" is almost
trivial.
Steps
- Start kppp and click on Setup and then Add (for new connection).
- At the Dial tab, enter:
- Connection Name = Your ISP Name
- Phone Number = <access number>
- Authentication = PAP
- Check Yes to store password
- At the IP tab:
- Check Yes for Dynamic IP address
- Check Yes for auto-configure host name from this IP
- At the DNS tab:
- Domain = yourISPdomain.com
- Check Configuration: Automatic
- Check Yes to Disable existing DNS servers
- At the Gateway tab:
- Check Yes for Default Gateway
- Check Yes to Assign the default Route to this Gateway
- The Login Script can be left alone
- Ignore Accounting
Enter your name and password, optionally check Show log
window and hit the Connect button. To disconnect, simply click on the
disconnect button.
C: Plain old ppp at command line
This requires editing the /etc/ppp-on shell script.
Steps:
- Make sure the protections on /usr/sbin/pppd are like: -rwsr-xr-x
If not, as root, try chmod u+s /usr/sbin/pppd
- Edit /etc/ppp/ppp-on so it looks something like the following. The
comment lines (beginning with #) are eliminated here for brevity.
----< /etc/ppp/ppp-on >----
TELEPHONE=nnn-nnnn
ACCOUNT=username
PASSWORD=password
export TELEPHONE ACCOUNT PASSWORD
exec /usr/sbin/pppd lock modem \
/dev/ttyS0 115200 crtscts \
asyncmap 200A0000 escape ff \
0.0.0.0:0.0.0.0 noipdefault \
defaultroute \
connect /etc/ppp/dial-myisp
---------------------------------
You may need to change the CPU to modem speed.
- Create a file /etc/ppp/dial-myisp by copying
/etc/ppp/ppp-on-dialer.
Edit /etc/ppp/dial-myisp to look as follows. (You can just use
ppp-on-dialer if you wish - change ppp-on accordingly).
---< /etc/ppp/dial-myisp >---
exec chat -v \
TIMEOUT 3 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nRINGING\r' \
'' \rAT \
'OK-+++\c-OK' ATH0 \
TIMEOUT 120 \
OK ATDT$TELEPHONE \
CONNECT ''
---------------------------------
The backslashes are important. They are line-continuation characters.
Remove two obsolete lines if any:
ogin:--ogin: $ACCOUNT \
word:-- $PASSWORD
All authentication information will be requested at PPP handshaking via PAP.
- For authentiacation via PAP create or edit file /etc/ppp/pap-secrets
to look as follows.
----< /etc/ppp/pap-secrets >-----
username * password
---------------------------------
It has to contain only one meaningful line.
- If you are not already in the directory /etc/ppp, move there.
Enter the command:
./ppp-on &
This should cause the pppd (ppp daemon) to start and use chat to
establish a connection through the script in dial-myisp.
- To see if you are up, run as root:
ifconfig
It should report a ppp0 interface.
- To bring this interface down:
/etc/ppp/ppp-off
|