انجمن کاربران لینوکس ایران - تکنوتاکس سابق

نسخه ي کامل: pppoe در Arch
شما در حال مشاهده نسخه ي متني اين صفحه هستيد. مشاهده نسخه کامل تر با قالب بندي صحيح

مهمان

Arch رو نصبیدم. با pppoe-setup یه اتصال برقرار کردم، وصل هم میشه، امابه جز یکبار اصلن Ping نداد. اون یکبار هم که Ping میداد با pacman نمیتونستم کار کنم. این مشکل رو با PMAGIC هم دارم. بهتره بگم با pppoe-setup مشکل دارم یا مشکل داره.
کد :
from 192.168.1.1 icmp_seq=1 Destination net unreachable
بعد از اینکه وصل شد خروجی دستور ifconfig رو بررسی کن باید یک Interface به نام ppp باشه .
اگه نبود شما هنوز وصل نشدید .
در ضمن اینکه بعد از اینکه وصل شدید باید بررسی کنید که DNS دارید یا نه . میتونی از دستور زیر استفاده کنی :
کد :
root@G-FireWall:~# nslookup google.com
Server:        192.168.56.1
Address:    192.168.56.1#53

Non-authoritative answer:
Name:    google.com
Address: 72.14.204.103
Name:    google.com
Address: 72.14.204.104
Name:    google.com
Address: 72.14.204.147
Name:    google.com
Address: 72.14.204.99
بعد از اجرای دستور بالا همان طور که می بینی باید IP اون سایت رو به شما بده .
اگه نداد فایل etc/resolv.conf/ رو باز کن و خط زیر رو آخرش اضافه کن :
کد :
nameserver 4.2.2.4
توصیه می‌کنم از این استفاده کنی.
<!-- m --><a class="postlink" href="https://wiki.archlinux.org/index.php/PPPoE_Setup_with_pppd">https://wiki.archlinux.org/index.php/PP ... _with_pppd</a><!-- m -->
مثل اینکه کم کم مدیران انجمن دارن دور هم جمع میشن ! Smile
بعد از سالها دیدم که دوتا مدیر همزمان آنلاینن !

مهمان

نقل قول :توصیه می‌کنم از این استفاده کنی.
<!-- m --><a class="postlink" href="https://wiki.archlinux.org/index.php/PP">https://wiki.archlinux.org/index.php/PP</a><!-- m --> ... _with_pppd
اول همین راه رو رفتم، جواب نداد. بعد pppoe-setup رو امتحان کردم.

ifconfig بدون هیچ اتصال:
کد :
eth0      Link encap:Ethernet  HWaddr 6C:F0:49:68:E9:5E  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:320 (320.0 b)  TX bytes:581 (581.0 b)
          Interrupt:26 Base address:0xe000

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

ifconfig با pppoe-start:
کد :
eth0      Link encap:Ethernet  HWaddr 6C:F0:49:68:E9:5E  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::6ef0:49ff:fe68:e95e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:32 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:17656 (17.2 Kb)  TX bytes:2445 (2.3 Kb)
          Interrupt:26 Base address:0xe000

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:46.100.150.187  P-t-P:85.185.110.102  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:17 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:16036 (15.6 Kb)  TX bytes:37 (37.0 b)

ifconfig با pon dsl-provider:
کد :
eth0      Link encap:Ethernet  HWaddr 6C:F0:49:68:E9:5E  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::6ef0:49ff:fe68:e95e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:106 errors:0 dropped:0 overruns:0 frame:0
          TX packets:116 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:29107 (28.4 Kb)  TX bytes:9244 (9.0 Kb)
          Interrupt:26 Base address:0xe000

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:85.185.194.29  P-t-P:85.185.110.102  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:35 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:6769 (6.6 Kb)  TX bytes:54 (54.0 b)
ولی هنوز:
کد :
from 192.168.1.1 icmp_seq=1 Destination net unreachable

مهمان

عبارت "usepeerdns" رو به آخر فایل etc/ppp/options/ اضافه کن (بدون کوتیشن).

اگه درست نشد rc.conf رو بذار، یا حالا چک کن قسمت Networking اینطوری باشه:

کد :
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="pyarch"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

مهمان

حل نشد. چک هم کردم فایل رو فرقی نداشت. rc.conf:
کد :
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="myhost"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

مهمان

در ضمن موقعی که connect میشه. dns ها رو بدست میاره(از resolve.conf). امکان داره از ip مودم باشه؟ آی پی مودم 192.168.1.1 هستش.

مهمان

عجب! ping به مودم جواب میده اما صفحه ی کانفیگش باز نمیشه!

مهمان

IP مودم رو به 192.168.0.1 تغییر دادم مشکل اینترنت حل شد. ولی یه جای کار می لنگه. موقع بوت آرچ سر start شبکه چند ثانیه معطل میشه.

مهمان

یکم عجیبه مشکل چون منم IP روتر مودمم همون 192.168.1.1 هست و با pppoe هیچ مشکلی ندارم.

اما network موقع بوت، شما networkmanager رو نصب کن:
کد :
sudo pacman -S networkmanager

و توی rc.conf، اون آخر فایل، داخل آرایه DAEMONS، به جای network بنویس networkmanager و سیو کن.

البته در کل میتونی قبل از هر دیمونی که ممکنه پروسه بوت رو کند کنه یه @ بذاری و اون دیمون میره پشت زمینه لود و اجرا میشه و پروسه بوت منتظر اون نمیمونه. ولی در مورد نتوورک کاری رو که بالا گفتم انجام بده.

راستی اینم انجمن فارسی آرچه:

forum.archlinux.ir

مطالب مفید و زیادی اونجا گیرت میاد و یا میتونی بپرسی. مثلا همین موضوع اونجا چند بار بیان شده...