לא מצליח להתחבר לאינטרנט בכבלים

לא מצליח להתחבר לאינטרנט בכבלים

התקנתי סוזה 10.1, והכל עובד מצויין, כולל מודם כבלים ב-USB שעובד בלי הרבה בעיות, ואני יכול להיכנס לדף של HOT. הבעיה היא כאשר אני מנסה להפעיל סקריפט של חייגן pptp לאינטרנט זהב (וניסיתי כבר כל סקריפט אפשרי), זה הלוג שאני מקבל, שהכי קרוב ללהיות מחובר לאינטרנט:
linux-fwu0:/mnt/012linux # ./cstart eth1 eth1 configuration: usb-id-00:d0:59:c2:36:13 eth1 eth1 configuration: usb-id-00:d0:59:c2:36:13 Starting DHCP Client Daemon on eth1... . IP/Netmask: 172.25.21.52 / 255.255.224.0 ('linux-fwu0') using channel 3 Using interface ppp1 Connect: ppp1 <--> /dev/pts/12 Warning - secret file /etc/ppp/pap-secrets has world access sent [LCP ConfReq id=0x1 <mru 1460> <asyncmap 0x0> <magic 0x96da6b7b> <pcomp> <accomp>] sent [LCP ConfReq id=0x1 <mru 1460> <asyncmap 0x0> <magic 0x96da6b7b> <pcomp> <accomp>] rcvd [LCP ConfReq id=0x1 <auth pap> <magic 0x5b4bd56f>] sent [LCP ConfAck id=0x1 <auth pap> <magic 0x5b4bd56f>] rcvd [LCP ConfNak id=0x1 <mru 1500>] sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x96da6b7b> <pcomp> <accomp>] rcvd [LCP ConfNak id=0x1 <mru 1500>] rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x96da6b7b> <pcomp> <accomp>] sent [LCP EchoReq id=0x0 magic=0x96da6b7b] Warning - secret file /etc/ppp/pap-secrets has world access sent [PAP AuthReq id=0x1 user="***" password=<hidden>] rcvd [LCP EchoRep id=0x0 magic=0x5b4bd56f] rcvd [PAP AuthAck id=0x1 ""] PAP authentication succeeded sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>] rcvd [IPCP ConfReq id=0x1 <addr 213.8.255.156>] sent [IPCP ConfAck id=0x1 <addr 213.8.255.156>] rcvd [LCP ProtRej id=0x2 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f] rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>] sent [IPCP ConfReq id=0x2 <addr 0.0.0.0>] rcvd [IPCP ConfNak id=0x2 <addr 80.230.45.110>] sent [IPCP ConfReq id=0x3 <addr 80.230.45.110>] rcvd [IPCP ConfAck id=0x3 <addr 80.230.45.110>] not replacing default route to eth1 [172.25.0.1] local IP address 80.230.45.110 remote IP address 213.8.255.156 Script /etc/ppp/ip-up started (pid 6348) Script /etc/ppp/ip-up finished (pid 6348), status = 0x0​
בהמשך לא קורה כלום, אני לא מקבל יותר הודעות, ובדפדפן אי אפשר להיכנס לשום אתר. אם אני לוחץ ctrl+c בחלון של הטרמינל, מופיע לי שההתקשרות הופרעה, וגם את משך החיבור.. וזה הלוג של route -n ו- ifconfig:
linux-fwu0:/mnt/inet_cables # ifconfig eth0 Link encap:Ethernet HWaddr 00:04:61:5C:FA:67 inet addr:192.167.0.1 Bcast:192.167.0.255 Mask:255.255.255.0 inet6 addr: fe80::204:61ff:fe5c:fa67/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:107 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1091 (1.0 Kb) TX bytes:9954 (9.7 Kb) Interrupt:177 Base address:0x4000 eth1 Link encap:Ethernet HWaddr 00:D0:59:C2:36:13 inet addr:172.25.21.52 Bcast:255.255.255.255 Mask:255.255.224.0 inet6 addr: fe80::2d0:59ff:fec2:3613/64 Scope:Link UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6201 errors:0 dropped:0 overruns:0 frame:0 TX packets:443 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:324410 (316.8 Kb) TX bytes:48825 (47.6 Kb) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:344 errors:0 dropped:0 overruns:0 frame:0 TX packets:344 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:25792 (25.1 Kb) TX bytes:25792 (25.1 Kb) ppp1 Link encap:point-to-Point Protocol inet addr:80.230.45.110 P-t-P:213.8.255.156 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1460 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:568 (568.0 b) TX bytes:61 (61.0 b) linux-fwu0:~ # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 213.8.255.156 0.0.0.0 255.255.255.255 UH 0 0 0 ppp1 213.8.15.217 172.25.0.1 255.255.255.255 UGH 0 0 0 eth1 192.167.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 172.25.0.0 0.0.0.0 255.255.224.0 U 0 0 0 eth1 169.254.0.0 &nbs​
 
תוספת

(ההודעות בתפוז קצרות)
linux-fwu0:~ # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 213.8.255.156 0.0.0.0 255.255.255.255 UH 0 0 0 ppp1 213.8.15.217 172.25.0.1 255.255.255.255 UGH 0 0 0 eth1 192.167.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 172.25.0.0 0.0.0.0 255.255.224.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.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 0.0.0.0 0.0.0.0 U 1 0 0 eth1 linux-fwu0:~ #​
(יצא קצת משובש..) יש למישהו רעיונות מה אפשר לעשות והאם משהו לא תקין?
 

SML

New member
קראת את המדריך בפינגווין?

בסוזה צריך לשנות משהו בסקריפט. קרא את המדריך!
 
על פניו - נראה בסדר

או שאני מסטול על הבוקר. קיבלת IP ותה יכול לגלוש. הבעיה היא שהמערכת לא שינה לך את ה default route , שנה את זה ידני ותבדוק אם אתה גולש. אם כן הדרך לפתרון היא כבר קלה. כמו כן שים לב שיש לך הודעת אזהרה על כך שקובץ שלך הוא עם גישה לכל העולם - מבחינת הרשאות. - דורון
 
סוף סוף התחברתי!!

ואני כותב עכשיו מתוך הלינוקס :) הבעיה הייתה כמו שדורון אמר, אני פשוט לא מבין יותר מידי בפקודות של הקונסול, אבל ראיתי שהסקריפט לא מבצע את השורות הבאות:
sleep 10 NEWGW=$(ifconfig ppp0 | grep inet | cut -d":" -f3 | tail -1 | cut -d" " -f1) /sbin/route add default gw $NEWGW /sbin/route del default gw $CABLEGW cat /etc/ppp/resolv.conf >> /etc/resolv.conf echo "nameserver 213.8.15.205" > /etc/resolv.conf echo "nameserver 213.8.172.83" >> /etc/resolv.conf​
אז העתקתי את המשתנים והשורות לקובץ חדש, והרצתי בתור סקריפט נפרד, ואז יכולתי לגלוש. הבעיה שהאינטרנט כרגע קצת איטי יחסית לווינדוס, וזה הפלט של route -n:
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 213.8.15.213 172.25.0.1 255.255.255.255 UGH 0 0 0 eth1 213.8.255.156 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 192.167.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 172.25.0.0 0.0.0.0 255.255.224.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.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 213.8.255.156 0.0.0.0 UG 0 0 0 ppp0 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0 0.0.0.0 0.0.0.0 0.0.0.0 U 1 0 0 eth1​
מישהו מצליח להבין למה הסקריפט של החייגן לא עובד עד הסוף, והאם ה-GW מוגדר כמו שצריך (כי האינטרנט איטי בזמני תגובה)?
 
למעלה