You are not logged in.

#1 2009-11-01 16:05:24

dumas
Member
From: Sydney
Registered: 2007-09-01
Posts: 103

[SOLVED] pppoe connected but no internet connection

Hi,

I realize there are some threads similar to this one, but I still can't connect to the internet, so maybe I'll try my luck with a new post.

So I used pppoe-setup and pppoe-start, it said connected but there is no internet connection. For example, if I ping www.google.com, it says

ping: unknown host www.google.com

I had a look around the web as well as the forum, and did some trial and error on my own with both pppoe-start, /etc/rc.d/adsl start and pppd from the wiki articles, but have no luck.

ifconfig shows lo, eth0 and ppp0. I just realized I altered something, and now lo doesn't show up. But I'm certain there was a time even when lo was there and things still didn't work.

/etc/rc.conf: I did some trial and error with commenting and uncommenting the eth0 entries

lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACE=(lo !eth0)
DAEMONS=(@syslog !netfs slim @alsa @jack-audio-connection-kit @adsl)

/etc/ppp/pap-secrets: since pppoe-start says connect, I suppose this is fine.

"name@.com" * "password"

For /etc/ppp/peers/provider, I just followed the wiki article.

I really  don't have any idea how to get the internet working, it's supposed to be simple! Do anyone have any ideas? Thanks in advance.

Last edited by dumas (2009-11-05 02:31:11)

Offline

#2 2009-11-01 16:18:23

bharani
Member
From: Karaikudi, India
Registered: 2009-07-12
Posts: 202

Re: [SOLVED] pppoe connected but no internet connection

Try to ping google's IP address directly.
Since pppoe is connected it may be a nameserver problem.


Tamil is my mother tongue.

Offline

#3 2009-11-02 02:48:01

dumas
Member
From: Sydney
Registered: 2007-09-01
Posts: 103

Re: [SOLVED] pppoe connected but no internet connection

bharani wrote:

Try to ping google's IP address directly.
Since pppoe is connected it may be a nameserver problem.

Hi bharani thanks for your reply.

pinging google's IP with ping 64.233.167.99 gives

PING 64.233.167.99 (64.233.167.99) 56(84) bytes of data.

with no 100% packet loss.

I found, however, that I can ping to another computer in the local network and to the DNS server.

Maybe something's funny with pppoe or there's some clash with the interfaces? Thanks again.

Offline

#4 2009-11-02 03:48:54

bharani
Member
From: Karaikudi, India
Registered: 2009-07-12
Posts: 202

Re: [SOLVED] pppoe connected but no internet connection

I too use pppoe.
My rc.conf looks like

eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway) 
DAEMONS=(syslog-ng network hal @alsa @sensors @crond)

I start the network daemon and use pppoe-start to connect to internet .


Tamil is my mother tongue.

Offline

#5 2009-11-02 05:57:35

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: [SOLVED] pppoe connected but no internet connection

Check the file /etc/resolv.conf which tells your computer where to look for nameservers. And "lo" shouldn't be in your rc.conf, I think. Eth0 should not be commented out. Gateway should be commented out (see bharani's example).

Offline

#6 2009-11-02 09:36:15

dumas
Member
From: Sydney
Registered: 2007-09-01
Posts: 103

Re: [SOLVED] pppoe connected but no internet connection

stryder wrote:

Check the file /etc/resolv.conf which tells your computer where to look for nameservers. And "lo" shouldn't be in your rc.conf, I think. Eth0 should not be commented out. Gateway should be commented out (see bharani's example).

Yeah, I guess it's resolv.conf

# Generated by dhcpcd from eth0
# /etc/resolv.conf.head can replace this line
domain local.lan
nameserver 192.168.8.1
# /etc/resolv.conf.tail can replace this line

/etc/resolv.conf-bak

nameserver 203.153.192.5
nameserver 139.130.4.4

I used the advice of another thread to cp /etc/resolv.conf-bak /etc/resolv.conf.head, this results in adding -bak into resolv.conf, but still doesn't solve the problem. Am I right in assuming the DNS server is the same as nameserver? I put those into /etc/resolv.conf.head too, but still no luck.

Thanks again.

Offline

#7 2009-11-02 17:24:15

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: [SOLVED] pppoe connected but no internet connection

Just edit your resolv.conf and add in the name servers and then ping google.com again to see if everything works. If it does, the solution is as you have done, only you need to restart your network (/etc/rc.d/network restart) which will reset resolv.conf. You can check resolv.conf to make sure resolv.conf.head is correctly added. All this provided pppoe connects.

Last edited by stryder (2009-11-03 11:13:27)

Offline

#8 2009-11-04 05:02:08

dumas
Member
From: Sydney
Registered: 2007-09-01
Posts: 103

Re: [SOLVED] pppoe connected but no internet connection

Thanks for the help, now my home adopts a wireless router, which is tested as workable on windows machines.

Problem is, on my eeepc the system crashes whenever I do iwlist wlan0 scan, to the point I must use the power button to shut down. I guess the problem is with some module conflicts?

From other threads I guess most peple use custom kernel or network managers when they run into problems with wireless on eeepc. However, I want to do things "the Arch way" before going to those as a last resort. Anyway, now connecting to the router works directly on eth0, so wireless is more like a curiosity.

I have madwifi, wireless-tools and wpa-supplicant install:

pacman -Q | grep  w
artwiz-fonts 1.3-4
djview4 4.5-1
epdfview 0.1.7-3
fftw 3.2.1-1
gawk 3.1.6-3
kernel26-firmware 2.6.30-1
libdownload 1.3-3
libwmf 0.2.8.4-5
libwpd 0.8.14-1
libxaw 1.0.6-1
madwifi 0.9.4.3952-5
madwifi-utils 0.9.4.3952-1
shadow 4.1.4.1-1
tcp_wrappers 7.6-10
wavpack 4.50.1-1
wget 1.11.4-1
which 2.20-1
wireless_tools 29-3
wmctrl 1.07-1
wpa_supplicant 0.6.9-2
wxgtk 2.8.10.1-4
xorg-twm 1.0.4-3

/etc/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"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# 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_AU.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Australia/Melbourne"
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=(ath_pci !p4_clockmod !ath5k)

# 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="eee"

# 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
#
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
lo="lo 127.0.0.1"
eth0="dhcp"
#wlan0="dhcp"
wlan_wlan0="wlan0 mode managed essid fung key 3145926540"
WLAN_INTERFACES=(wlan0)
INTERFACES=(lo eth0 wlan0)

# 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 slim @alsa @jack-audio-connection-kit !adsl)

lsmod | grep ath

ath_pci               249308  0 
wlan                  231760  1 ath_pci
ath_hal               248416  1 ath_pci

I have tried swapping ath_pci with ath5k, but nothing changes.

Specifically, when I do

ifconfig wlan0 up
iwlist wlan0 scan

the whole system hangs, to the point the mouse and keyboard stop responding, so I must use the power button to shut down.

If I try /etc/rc.d/network restart, it says:

:: Stopping Network                                                     [DONE] 
:: Starting Network                                                     [BUSY] 
> Could not associate wlan0 - try increasing WIRELESS_TIMEOUT and check network is WEP or has no security 
                                                                        [FAIL]

Thanks again for all help.

EDIT: I did a system upgrade with eth0 and after rebooting wireless worked. Thanks everyone.

Last edited by dumas (2009-11-04 06:27:07)

Offline

#9 2009-11-04 11:57:36

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: [SOLVED] pppoe connected but no internet connection

Would be a good idea to mark the thread as [solved] by editing your first post.

Offline

Board footer

Powered by FluxBB