You are not logged in.

#1 2011-04-23 17:09:37

linux-obsessed
Member
Registered: 2011-04-23
Posts: 6

pppoe-start problem

hello,
i have a problem when i configure pppoe connection
when i use this command pppoe-start his reply is connected and when i see the ifconfig ppp0
i see the correct remote and client ip
but when i ping for yahoo i cant get any replies from it
that mean no internet in a machine.
i need help to this problem

Last edited by linux-obsessed (2011-04-23 17:11:38)

Offline

#2 2011-04-24 15:03:07

linux-obsessed
Member
Registered: 2011-04-23
Posts: 6

Re: pppoe-start problem

when i restart network service i get it

Shutting down interface ppp0:                    [  OK  ]
Shutting down interface eth0:                                   [  OK  ]
Shutting down interface eth1:                                   [  OK  ]
Shutting down loopback interface:                               [  OK  ]
Bringing up loopback interface:                                 [  OK  ]
Bringing up interface eth0:                    [  OK  ]
Bringing up interface eth1:                    [  OK  ]

why it doesn't bringing up the ppp0
please help

Offline

#3 2011-04-24 18:54:45

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: pppoe-start problem

Have you configured the dns?

edit /etc/resolv.conf (create one, if not present). Add your favourite dns server, for e.g.

nameserver 8.8.8.8
nameserver 8.8.4.4

Offline

#4 2011-04-24 23:23:49

linux-obsessed
Member
Registered: 2011-04-23
Posts: 6

Re: pppoe-start problem

i done it but same error

Offline

#5 2011-04-25 01:50:31

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: pppoe-start problem

When ifconfig shows ppp0 connected, try to ping an ip instead of the website name, and post the result here:

ping -c 4 8.8.8.8

Also post your rc.conf.

PS: please embed the rc.conf in code tags, or use a pastebin.

Offline

#6 2011-04-25 20:37:10

linux-obsessed
Member
Registered: 2011-04-23
Posts: 6

Re: pppoe-start problem

when i ping i get
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
and can't get any replies

this is rc.conf



# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.UTF-8"
HARDWARECLOCK="localtime"
TIMEZONE="Canada/Pacific"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=()

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# 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)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond)
.

Last edited by linux-obsessed (2011-04-25 20:40:28)

Offline

#7 2011-04-26 04:16:35

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: pppoe-start problem

Hmm.. everything looks fine rc.conf. I have no idea, what's wrong. Is dhcp working fine?

Also, if you haven't already, take a look here:

https://wiki.archlinux.org/index.php/Co … ng_Network

Also, if you are in a hurry, go to the irc channel, and ask someone for help there.

Offline

#8 2011-04-26 04:27:49

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,803

Re: pppoe-start problem

I don't think 8.8.8.8 responds to ICMP packets. 
Try this site belonging to the best darn Linux distribution out there smile  ping 66.211.214.131


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#9 2011-04-26 14:32:19

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: pppoe-start problem

ewaller wrote:

I don't think 8.8.8.8 responds to ICMP packets. 
Try this site belonging to the best darn Linux distribution out there smile  ping 66.211.214.131

Well, i can ping 8.8.8.8 (it's google dns's primary server, for those who don't know).

Offline

#10 2011-04-26 14:43:06

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,803

Re: pppoe-start problem

x33a wrote:
ewaller wrote:

I don't think 8.8.8.8 responds to ICMP packets. 
Try this site belonging to the best darn Linux distribution out there smile  ping 66.211.214.131

Well, i can ping 8.8.8.8 (it's google dns's primary server, for those who don't know).

Interesting.  I could not from home last night.  I can from work.  I also just ssh'ed home and tried, and now it works hmm

I knew it was goggle's DNS server;  I don't think that means it is required to respond ICMP packets; but apparently it does.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#11 2011-04-26 14:55:21

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: pppoe-start problem

are you using PPPoE/ADSL or not? if yes, why do you use dhcp?

when you setup your connection with pppoe-setup, set DNSTYPE to SERVER if you don't know your DNS nameserver's.

remove network from DAEMONS array, and netfs too if you don't use network filesystems.

...
#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
#eth0="dhcp"
INTERFACES=(!eth0)
...
DAEMONS=(syslog-ng crond adsl)

Last edited by JokerBoy (2011-04-26 14:56:12)

Offline

#12 2011-04-26 15:56:43

linux-obsessed
Member
Registered: 2011-04-23
Posts: 6

Re: pppoe-start problem

thanks for all,
jokerboy,
i'm in network the admin of it using pppoe server for that i used dhcp
i  done all it and the problem still exist
and i want to know how i make the pppo is default connectiffon
ppp0 is appears in ifconfig command
thanks

Offline

#13 2011-05-01 12:15:39

linux-obsessed
Member
Registered: 2011-04-23
Posts: 6

Re: pppoe-start problem

look for this output of pppoe-connect command


Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
CHAP authentication succeeded
CHAP authentication succeeded
not replacing existing default route via 1.1.1.1
local  IP address 192.168.0.11
remote IP address 192.168.0.1
primary   DNS address 192.168.0.1
secondary DNS address 163.121.128.134
Received bad configure-rej:  12 06 00 00 00 01
Received bad configure-rej:  12 06 00 00 00 01
Received bad configure-rej:  12 06 00 00 00 01
Received bad configure-rej:  12 06 00 00 00 01
Received bad configure-rej:  12 06 00 00 00 01
Received bad configure-rej:  12 06 00 00 00 01
Received bad configure-rej:  12 06 00 00 00 01
Received bad configure-rej:  12 06 00 00 00 01
Received bad configure-rej:  12 06 00 00 00 01
Received bad configure-rej:  12 06 00 00 00 01
CCP: timeout sending Config-Requests

and ifconfig ppp0


ppp0      Link encap:Point-to-Point Protocol  
          inet addr:192.168.0.11  P-t-P:192.168.0.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:277 errors:0 dropped:0 overruns:0 frame:0
          TX packets:307 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:177424 (173.2 KiB)  TX bytes:49535 (48.3 KiB)

i hope to get help from here

Offline

#14 2011-05-09 15:12:49

lefthaha
Member
Registered: 2011-05-09
Posts: 8

Re: pppoe-start problem

Maybe it's routing program ?
Encounter similar program today when using a live USB
LAN:  DHCP  -> eth0
WAN: PPPoE -> ppp0

`ifconfig` show both eth0 and ppp0 with right IP address
`ping` host on LAN reply normally

But `ping` host on WAN always fail ( tried www.google.com, 8.8.8.8...etc)
So I look into route table

[left]$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
h254.s98.ts.hin *               255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
default         *               0.0.0.0         U     0      0        0 eth0

the default gate way is using Interface eth0
after changing it to ppp0
Solved my problem

[left]$ sudo route del default
[left]$ sudo route add default ppp0
[left]$ sudo /etc/rc.d/network restart
[left]$ sudo /etc/rc.d/adsl restart

Last edited by lefthaha (2011-05-10 06:48:00)

Offline

Board footer

Powered by FluxBB