Запомняне

» Здравейте
[ Вход :: Регистриране ]
 » Начало » Li Форуми » Help & Support » Networking » Ubuntu и rp-pppoe
Тема: Ubuntu и rp-pppoe
Мнение #1 Skip to the next post in this topic.
Написано на: Юни 29 2005, 20:22
mouseclicker

No avatar chosen




Група: Li fans
Мнения: 24
Регистриран: Юни 2005

Оценка: няма

Offline
Изчетох цялата тема за СуСЕ и рп-пппое и мисля, че проблемът ми е същия. Тия дни вездесъщия ИСП Нетиссат реши да премине от ППТП на ПППоЕ и вече два дена не мога да си подкарам нета. Направил съм всичко стъпка по стъпка, както е обяснено тук -> http://cityconnect.netissat.bg/files/Linux1.html и след adsl-start успявам да се свържа, но и-нет йок! Пинга до днс-а минава, но дотук...По-надолу ще постна няколко конф-файла и логове.

Така...Това е adsl-status след adsl-start:
Код: 
adsl-status: Link is up and running on interface ppp1
ppp1      Link encap:Point-to-Point Protocol  
         inet addr:212.72.214.182  P-t-P:212.72.193.41  Mask:255.255.255.255
         UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
         RX packets:4 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:64 (64.0 b)  TX bytes:86 (86.0 b)



Ето какво казва ifconfig:
Код: 
eth0      Link encap:Ethernet  HWaddr 00:DD:10:00:63:99  
         inet addr:10.100.2.111  Bcast:10.100.255.255  Mask:255.255.0.0
         inet6 addr: fe80::2dd:10ff:fe00:6399/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:20009 errors:0 dropped:0 overruns:0 frame:0
         TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:1215362 (1.1 MiB)  TX bytes:5747 (5.6 KiB)
         Interrupt:19 Base address:0xec00

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:1478 errors:0 dropped:0 overruns:0 frame:0
         TX packets:1478 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:133962 (130.8 KiB)  TX bytes:133962 (130.8 KiB)

ppp0      Link encap:Point-to-Point Protocol  
         inet addr:212.72.214.182  P-t-P:212.72.193.41  Mask:255.255.255.255
         UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
         RX packets:7 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:1118 (1.0 KiB)  TX bytes:54 (54.0 b)



За всеки случай и /etc/network/interfaces:
Код: 
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0

iface eth0 inet dhcp

auto eth0


Това е plog:
Код: 
Jun 29 19:50:44 localhost pppd[7070]: Connect: ppp0 <--> /dev/pts/1
Jun 29 19:50:45 localhost pppd[7070]: not replacing default route to eth0 [10.100.0.1]
Jun 29 19:50:45 localhost pppd[7070]: Cannot determine ethernet address for proxy ARP
Jun 29 19:50:45 localhost pppd[7070]: local  IP address 212.72.214.182
Jun 29 19:50:45 localhost pppd[7070]: remote IP address 212.72.193.41
Jun 29 19:50:45 localhost pppd[7070]: primary   DNS address 212.72.193.50
Jun 29 19:50:45 localhost pppd[7070]: secondary DNS address 212.72.193.55


И pppoe.conf:
Код: 
#***********************************************************************
#
# pppoe.conf
#
# Configuration file for rp-pppoe.  Edit as appropriate and install in
# /etc/ppp/pppoe.conf
#
# NOTE: This file is used by the adsl-start, adsl-stop, adsl-connect and
#       adsl-status shell scripts.  It is *not* used in any way by the
#       "pppoe" executable.
#
# Copyright (C) 2000 Roaring Penguin Software Inc.
#
# This file may be distributed under the terms of the GNU General
# Public License.
#
# LIC: GPL
# $Id: pppoe.conf,v 1.10 2002/04/09 17:28:38 dfs Exp $
#***********************************************************************

# When you configure a variable, DO NOT leave spaces around the "=" sign.

# Ethernet card connected to ADSL modem
ETH='eth0'

# ADSL user name.  You may have to supply "@provider.com"  Sympatico
# users in Canada do need to include "@sympatico.ca"
# Sympatico uses PAP authentication.  Make sure /etc/ppp/pap-secrets
# contains the right username/password combination.
# For Magma, use [EMAIL=xxyyzz@magma.ca]xxyyzz@magma.ca[/EMAIL]
USER='xxxxxxx'

# Bring link up on demand?  Default is to leave link up all the time.
# If you want the link to come up on demand, set DEMAND to a number indicating
# the idle time after which the link is brought down.
DEMAND=no
#DEMAND=300

# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
DNSTYPE=SERVER

# Obtain DNS server addresses from the peer (recent versions of pppd only)
# In old config files, this used to be called USEPEERDNS.  Changed to
# PEERDNS for better Red Hat compatibility
PEERDNS=yes

DNS1=
DNS2=

# Make the PPPoE connection your default route.  Set to
# DEFAULTROUTE=no if you don't want this.
DEFAULTROUTE=yes

### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT

# How long adsl-start waits for a new PPP interface to appear before
# concluding something went wrong.  If you use 0, then adsl-start
# exits immediately with a successful status and does not wait for the
# link to come up.  Time is in seconds.
#
# WARNING WARNING WARNING:
#
# If you are using rp-pppoe on a physically-inaccessible host, set
# CONNECT_TIMEOUT to 0.  This makes SURE that the machine keeps trying
# to connect forever after adsl-start is called.  Otherwise, it will
# give out after CONNECT_TIMEOUT seconds and will not attempt to
# connect again, making it impossible to reach.
CONNECT_TIMEOUT=30

# How often in seconds adsl-start polls to check if link is up
CONNECT_POLL=2

# Specific desired AC Name
ACNAME=cityconnect

# Specific desired service name
SERVICENAME=cityconnect

# Character to echo at each poll.  Use PING="" if you don't want
# anything echoed
PING="."

# File where the adsl-connect script writes its process-ID.
# Three files are actually used:
#   $PIDFILE       contains PID of adsl-connect script
#   $PIDFILE.pppoe contains PID of pppoe process
#   $PIDFILE.pppd  contains PID of pppd process
CF_BASE=`basename $CONFIG`
PIDFILE="/var/run/$CF_BASE-adsl.pid"

# Do you want to use synchronous PPP?  "yes" or "no".  "yes" is much
# easier on CPU usage, but may not work for you.  It is safer to use
# "no", but you may want to experiment with "yes".  "yes" is generally
# safe on Linux machines with the n_hdlc line discipline; unsafe on others.
SYNCHRONOUS=no

# Do you want to clamp the MSS?  Here's how to decide:
# - If you have only a SINGLE computer connected to the ADSL modem, choose
#   "no".
# - If you have a computer acting as a gateway for a LAN, choose "1412".
#   The setting of 1412 is safe for either setup, but uses slightly more
#   CPU power.
CLAMPMSS=1412
#CLAMPMSS=no

# LCP echo interval and failure count.
LCP_INTERVAL=20
LCP_FAILURE=3

# PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
PPPOE_TIMEOUT=80

# Firewalling: One of NONE, STANDALONE or MASQUERADE
FIREWALL=NONE

# Linux kernel-mode plugin for pppd.  If you want to try the kernel-mode
# plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
LINUX_PLUGIN=

# Any extra arguments to pass to pppoe.  Normally, use a blank string
# like this:
PPPOE_EXTRA=""

# Rumour has it that "Citizen's Communications" with a 3Com
# HomeConnect ADSL Modem DualLink requires these extra options:
# PPPOE_EXTRA="-f 3c12:3c13 -S ISP"

# Any extra arguments to pass to pppd.  Normally, use a blank string
# like this:
PPPD_EXTRA=""


########## DON'T CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING
# If you wish to COMPLETELY overrride the pppd invocation:
# Example:
# OVERRIDE_PPPD_COMMAND="pppd call dsl"

# If you want adsl-connect to exit when connection drops:
# RETRY_ON_FAILURE=no


И накрая route след adsl-start:
Код: 
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
cityconnect.net *               255.255.255.255 UH    0      0        0 ppp0
10.100.0.0      *               255.255.0.0     U     0      0        0 eth0
default         10.100.0.1      0.0.0.0         UG    0      0        0 eth0


И pppoe -I eth0 -A
Код: 
Access-Concentrator: INTECH
      Service-Name: LAN
Got a cookie: a7 e1 19 dd b2 b0 e3 f2 c3 48 b5 69 96 b9 a5 28 91 37 00 00
AC-Ethernet-Address: 00:11:d8:45:d5:33
--------------------------------------------------
Access-Concentrator: INTECH
      Service-Name: LAN
Got a cookie: 20 c0 06 a4 68 01 01 69 a0 c3 17 d8 22 12 a0 34 a1 74 00 00
AC-Ethernet-Address: 00:11:d8:45:d5:75
--------------------------------------------------
Access-Concentrator: cityconnect
      Service-Name: cityconnect
Got a cookie: e3 bb d9 15 fe 3a d2 a9 ea 19 8a ce cc 9f 20 b6 47 49 00 00
AC-Ethernet-Address: 00:0e:0c:60:a4:cb
--------------------------------------------------


Help needed! 10х!

Контакти:  mouseclicker
WEB  
Мнение #2 Skip to the next post in this topic.
Skip to the previous post in this topic. Написано на: Юни 29 2005, 21:04

Avatar




Група: Li psychos
Мнения: 380
Регистриран: Април 2005

Offline
a като пингваш нещо друго по ИП какво става
например 194.145.63.12
това е dir.bg

"Linux is for people who hate Windows, BSD is for people who love UNIX"
Контакти:  gog

  • AOL  AOL:
  • ICQ  ICQ:
  • MSN  MSN:
  • YIM  Yahoo IM:
WEB  
Мнение #3 Skip to the next post in this topic.
Skip to the previous post in this topic. Написано на: Юни 29 2005, 21:05
mouseclicker

No avatar chosen




Група: Li fans
Мнения: 24
Регистриран: Юни 2005

Оценка: няма

Offline
Ами точно там е проблема - не става абсолютно нищо...Първия пинг, за който се сетих беше дир.бг  :) Не знам, потресен съм, ако проблема не е в провайдера не знам к'во да правя...

Контакти:  mouseclicker
WEB  
Мнение #4 Skip to the next post in this topic.
Skip to the previous post in this topic. Написано на: Юни 29 2005, 21:09

Avatar




Група: Li psychos
Мнения: 380
Регистриран: Април 2005

Offline
еми нямаш ДНС :)
сложи си един ред в
/etc/resolv.conf
nameserver Ip_adresa_na_ispto_mi

може да пробваш и да го добавиш и тук

Код: 
# Obtain DNS server addresses from the peer (recent versions of pppd only)
# In old config files, this used to be called USEPEERDNS.  Changed to
# PEERDNS for better Red Hat compatibility
PEERDNS=yes

DNS1=
DNS2=


пробвай първо варианта с resolv.conf
ако нямаш такъв файл го създай :)

"Linux is for people who hate Windows, BSD is for people who love UNIX"
Контакти:  gog

  • AOL  AOL:
  • ICQ  ICQ:
  • MSN  MSN:
  • YIM  Yahoo IM:
WEB  
Мнение #5 Skip to the next post in this topic.
Skip to the previous post in this topic. Написано на: Юни 29 2005, 21:30
mouseclicker

No avatar chosen




Група: Li fans
Мнения: 24
Регистриран: Юни 2005

Оценка: няма

Offline
Мисля, че не това е причината. Ето го файла:
/etc/resolv.conf
Код: 
nameserver 212.72.193.50
nameserver 212.72.193.55


А и малко по-нагоре в pppoe.conf пише следното:
Код: 
DNSTYPE=SERVER

Демек не трябва да въвеждам адресите ръчно, нали така?

Контакти:  mouseclicker
WEB  
Мнение #6 Skip to the next post in this topic.
Skip to the previous post in this topic. Написано на: Юни 30 2005, 09:31

Avatar




Група: Li psychos
Мнения: 380
Регистриран: Април 2005

Offline
а все пак не разбрах като пингваш по ИП има ли пинг или не

"Linux is for people who hate Windows, BSD is for people who love UNIX"
Контакти:  gog

  • AOL  AOL:
  • ICQ  ICQ:
  • MSN  MSN:
  • YIM  Yahoo IM:
WEB  
Мнение #7 Skip to the next post in this topic.
Skip to the previous post in this topic. Написано на: Юни 30 2005, 11:11
mouseclicker

No avatar chosen




Група: Li fans
Мнения: 24
Регистриран: Юни 2005

Оценка: няма

Offline
Не, няма пинг  :(

Контакти:  mouseclicker
WEB  
Мнение #8 Skip to the next post in this topic.
Skip to the previous post in this topic. Написано на: Юни 30 2005, 12:32
mcwolf

No avatar chosen




Група: Li gurus
Мнения: 1489
Регистриран: Април 2005

Оценка: 5

Offline
абе човек - ти с колко гетуейа се опитваш да подкараш нещата ?

махни дефаулт гетуейът защото в момента ти седи старият май и тогава извикай adsl-start (скриптът ще се оправи сам нататък)
Контакти:  mcwolf

  • AOL  AOL:
  • ICQ  ICQ:
  • MSN  MSN:
  • YIM  Yahoo IM:
WEB  
Мнение #9 Skip to the next post in this topic.
Skip to the previous post in this topic. Написано на: Юни 30 2005, 14:53
mouseclicker

No avatar chosen




Група: Li fans
Мнения: 24
Регистриран: Юни 2005

Оценка: няма

Offline
И как да махна дефолт гейтуей-а?

Контакти:  mouseclicker
WEB  
Мнение #10
Skip to the previous post in this topic. Написано на: Юни 30 2005, 17:06
mouseclicker

No avatar chosen




Група: Li fans
Мнения: 24
Регистриран: Юни 2005

Оценка: няма

Offline
Уфф, да се е**, mcwolf, прав си, разбира се...Цял ден блъскане , за един route del...

!!!laugh at me!!!

само че сега след ребуут пак дефолт гейтуей-а си е 10.100.0.1 и трябва всеки път route del default; route add default GW PPPoE.
Това може ли да се избегне по някакъв начин? И още - в кой скрипт мога да сложа adsl-start, за да тръгва при boot? 10x.

Контакти:  mouseclicker
WEB  
Общо 18 отговор(а) от Юни 29 2005, 20:22 до сега
 » Начало » Li Форуми » Help & Support » Networking » Ubuntu и rp-pppoe

© 2014 Linux Index Project
Powered by iF 1.0.0 © 2006 ikonForums