לא מצליח להתחבר לכבלים ב- Fedora - לינוקס, Mac ומערכות הפעלה אחרות - HWzone פורומים
עבור לתוכן
  • צור חשבון

לא מצליח להתחבר לכבלים ב- Fedora


DXT

Recommended Posts

קודם כל אני רוצה לציין שכבר בעבר הצלחתי להתחבר, לקח לי זמן להבין בדיוק איך ולמצוא מה לתקן, אבל הצלחתי, בעזרת ה HOWTO ההוא, ובעזרת הודעה פה בפורום של whatsup.org.il.

המצב הוא שלא הצלחתי שוב לבצע את התהליך כמו שצריך, ואני מקווה שהפעם אבין מה צריך עוד לעשות ולזכור את זה לפעמים הבאות..

קיצר, זה המצב:

connect

===========

#!/bin/bash

/sbin/ifdown eth0

/sbin/ifup eth0

CABLEGW=$(grep routers /var/lib/dhcp/dhclient-eth0.leases | tail -n 1 | cut -d ";" -f1 | cut -d "t" -f3 | cut -d "o" -f4 | cut -d ' ' -f2)

/sbin/route add -host pns.inter.net.il gw $CABLEGW

/usr/sbin/pptp- pns.inter.net.il debug user dxt mtu 1460 mru 1460 defaultroute

sleep 5

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

pap-secrets

==============

dxt pns.inter.net.il ******** :D

hosts

========

# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1      localhost.localdomain localhost

213.8.8.112      pns.inter.net.il

resolv.conf (it always changes back to this when "/sbin/ifup eth0" is run)

===========

; generated by /sbin/dhclient-script

nameserver 192.168.101.101

nameserver 192.168.101.102

ifconfig output:

----------------

eth0 Link encap:Ethernet HWaddr 00:20:ED:36:A1:0D

inet addr:172.25.49.69 Bcast:255.255.255.255 Mask:255.255.224.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:95379 errors:0 dropped:0 overruns:0 frame:0

TX packets:198 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:5764375 (5.4 Mb) TX bytes:16806 (16.4 Kb)

Interrupt:5 Base address:0x700

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:1410 errors:0 dropped:0 overruns:0 frame:0

TX packets:1410 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:987816 (964.6 Kb) TX bytes:987816 (964.6 Kb)

ppp0 Link encap:Point-to-Point Protocol

inet addr:80.230.156.254 P-t-P:213.8.255.81 Mask:255.255.255.255

UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1460 Metric:1

RX packets:11 errors:0 dropped:0 overruns:0 frame:0

TX packets:45 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:3

RX bytes:392 (392.0 b) TX bytes:2587 (2.5 Kb)

netstat -r -n output:

---------------------

Kernel IP routing table

Destination Gateway Genmask Flags MSS Window irtt Iface

213.8.8.112 172.25.32.1 255.255.255.255 UGH 0 0 0 eth0

213.8.255.81 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0

172.25.32.0 0.0.0.0 255.255.224.0 U 0 0 0 eth0

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.81 0.0.0.0 UG 0 0 0 ppp0

יש לי pptp- בתוך /usr/sbin כמובן, זה מצליח להתחבר כביכול אבל כאשר אני מנסה להכנס לאתר כלשהו זה רושם Resolving... ופה בעצם נגמר הסיפור.

הבעיה, אני מניח, היא בהגדרת ה nameservers יענו ה DNS, כפי שרשמתי בקוד הזה, לא משנה מה אני רושם ב resolv.conf, תמיד זה חוזר לאותו מצב לאחר השורה /sbin/ifup eth0.

תודה על העזרה.

עריכה: למה אני לא מצליח ליישר לשמאל משהו בתוך code? >:(

קישור לתוכן
שתף באתרים אחרים

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

×
  • צור חדש...