PDA

View Full Version : موديم Alcatel Speedtouch USB مع ال Redhat 7.3 __ لينكس


Mahmoud Moh'd
04-05-2003, 01:38 PM
اولا :

حمل هذين الفايلين :
speedtouch-1.1.tar.gz (http://www.andrewbeaton.co.uk/speedtouch/speedtouch-1.1.tar.gz)
mgmt.o (http://www.andrewbeaton.co.uk/speedtouch/mgmt.o)

Step 1) Install the drivers
Do the following:

tar xzvf speedtouch-1.1-tar-gz
cd speedtouch-1.1
./configure
make
make install

cp mgmt.o /usr/local/sbin



Step 2) Create a file called /etc/ppp/options
Enter the following:


usepeerdns
noauth
lock
noipdefault



Step 3) Create a file called /etc/ppp/peers/adsl
Enter the following:


debug
kdebug 1
noipdefault
defaultroute
pty "/usr/local/sbin/pppoa2 -vpi 0 -vci 38"
nodetach
sync
user "your ISP username"
noauth
kdebug 7
noaccomp
nopcomp
noccp


** note: the vpi and vci values should be set to your ISPs settings.


Step 4) Create two files called /etc/ppp/chap-secrets and /etc/ppp/pap-secrets
Enter the following in both:


username * password *



Step 5) Edit a file called /etc/resolv.confEnter the following:


nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx

Where xxx is the IP addresses of you ISPs nameservers.



Step 6) Create a file called /root/startadsl
Enter the following:


/sbin/modprobe n_hdlc
/sbin/modprobe ppp_synctty
/usr/local/sbin/modem_run -f /usr/local/sbin/mgmt.o -m
/usr/sbin/pppd call adsl
/sbin/route add default ppp0


Now make it executable:



cd ~
chmod +x startadsl



Step 7) View your message file so that you can get important details such as your IP address etc.
Enter the following:


tail -f /var/log/messages




Step 8) Open a new Xterm, login as root and run the start adsl script
Enter the following:


su
cd ~
./startadsl

Now keeping an eye on the messages file you should see the following:

pppd[5700] Using interface ppp0
pppd[5700] Connect: ppp0 <--> /dev/pts/124
pppd[5700] local IP address xxx.xxx.xxx.xxx
pppd[5700] remote IP address xxx.xxx.xxx.xxx
pppd[5700] primary DNS address xxx.xxx.xxx.xxx
pppd[5700] secondary DNS address xxx.xxx.xxx.xxx



Step 9) Finally you need to set the default gateway.
Do the following:


/sbin/ip route
default via 10.0.0.1 dev eth0
10.0.0.0/24 dev eth0
127.0.0.0/8 dev lo

From this you can see the default route was set to 10.0.0.1 via device eth0.
We need to change this to go out via ppp0.

So delete the existing route:

/sbin/ip route del default via 10.0.0.1 dev eth0

Then add the new route where xxx is the remote IP address that your ADSL connected to.

/sbin/ip route add default via xxx.xxx.xxx.xxx dev ppp0

Finally clear the route cache:

/sbin/ip route flush cache.


Step 10) Sit back, relax and smile as you now have your Linux box connected to the net and no longer need to use your nasty Windows box :)


للكاتب : Andrew Beaton
الموضوع هديه للاخ المحرقي


و ترقبوا شرح بالعربي قريييييبا

فهد بوقيس
04-05-2003, 02:26 PM
مشكور اخونا على هل موضوع بس انت حاول توضح المره القادمه للأخوان والأخوات اهمية استخدامه سواء للوندوز او اللينكس...

اخوك الفهد:cool:

باسم علي
05-05-2003, 07:24 AM
مشكور اخوي على الموضوع الحلو . وننتظر الشرح بالعربي..


تحياتي اخوك رجل الظلام..

m7rgy
05-05-2003, 04:11 PM
مشكور حبيبي وما قصرت على الهدية.. نخدمك في الافراح انشالله..

واذا عندك ريسورس زود ارجوا انك تزود الواحة بها عشان يكون كمرجع لنا

اول ما اخلص من الردهات راح اجرب المويدم

تسلم وما قصرت..


تحياتي،
محرقي.

Mahmoud Moh'd
08-05-2003, 03:32 PM
شكرا اخي المحرقي وان شاء الله اشحن لك الواحه معلومات عن الينكس