Here are the scripts I use to connect to AT&T:

I keep everything under /etc/ppp

1) /etc/ppp/pppup    - Use to start connection

# This is executable - "chmod 755 /etc/ppp/pppup"
# Substitute your account number for 123456789
# Substitute your dial-up number for 9991234567

route del default
/usr/sbin/pppd /dev/modem 115200 debug user [EMAIL PROTECTED] \

connect "/usr/sbin/chat -v '' 'AT&D1' OK ATDT9991234567 CONNECT '\d\c'"
echo "`date` [ `ifconfig ppp0 | grep "inet addr"` ]" >> ppp0_ip.log

2) /etc/ppp/options

lock
crtscts
noauth
noipdefault
asyncmap 0x0
defaultroute

3) /etc/ppp/chap-secrets

# Secrets for authentication using CHAP
# client server secret   IP addresses
# Substitute your account number and password here, NOTE the spaces
around the *'s
[EMAIL PROTECTED] * my-att-ppp-password *

4) /ect/ppp/pppdown - Use to bring down your connection

# This is executable - "chmod 755 /etc/ppp/pppup"
ekillall pppd

Notes:
-----

a) Prior to dialing, ensure that your routing table does not have a
default entry (route -n)

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
199.1.1.1       0.0.0.0         255.255.255.255 UH    0      0        0
eth0
199.1.1.0       0.0.0.0         255.255.255.0   U     0      0        0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0
lo

After dialing, you should see the entries for ppp0 and the default
entry..

Kernel IP routing table
Destination     Gateway         Genmask             Flags Metric Ref
Use Iface
199.1.1.1              0.0.0.0          255.255.255.255 UH    0
0        0 eth0
204.146.999.99  0.0.0.0          255.255.255.255 UH     0      0
0 ppp0
199.1.1.0              0.0.0.0              255.255.255.0  U
0      0        0 eth0
127.0.0.0              0.0.0.0                       255.0.0.0   U
0      0        0 lo
0.0.0.0                   204.146.999.99           0.0.0.0   UG
0      0        0 ppp0

At this point you should be connected to AT&T...

any more problems, drop me an e-mail

hope this helps,

Ahbaid.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to