PDA

View Full Version : [ubuntu] 9.04 pppoe problem



maruf10
December 25th, 2009, 03:59 PM
i am using a pppoe connection in XP which works well .

in ubuntu i have tried

sudo pppoeconf and sudo pon dsl-provider

i have also tried sudo /etc/init.d/networking restart but there is no result...

i have faced the same problem in 8.04 and 9.10

thats why i am changing version one after one

any suggestion ?? :confused:

shredder12
December 25th, 2009, 05:00 PM
after you run pon dsl-provider chk the logs using this command

plog
this will show you what exactly is going on..
post the output too..

maruf10
December 25th, 2009, 05:53 PM
Dec 25 08:45:31 ubuntu pppd[3898]: Connect: ppp1 <--> eth0
Dec 25 08:45:31 ubuntu pppd[3898]: Remote message: Login ok
Dec 25 08:45:31 ubuntu pppd[3898]: PAP authentication succeeded
Dec 25 08:45:31 ubuntu pppd[3898]: peer from calling number 00:11:3B:13:4F:ED authorized
Dec 25 08:45:31 ubuntu pppd[3898]: not replacing existing default route through ppp0
Dec 25 08:45:31 ubuntu pppd[3898]: Cannot determine ethernet address for proxy ARP
Dec 25 08:45:31 ubuntu pppd[3898]: local IP address 192.168.8.218
Dec 25 08:45:31 ubuntu pppd[3898]: remote IP address 113.11.40.1
Dec 25 08:45:31 ubuntu pppd[3898]: primary DNS address 114.31.0.66
Dec 25 08:45:31 ubuntu pppd[3898]: secondary DNS address 210.4.77.180

shredder12
December 25th, 2009, 06:08 PM
as you can see you are connected to internet..
you have been assigned the IPs.
you may try running the following command to chk if internet is working or not..

ping ubuntu.com
i think your internet was always working.. but by looking at the network icon (which will show disconnected) you thought that you are unable to connect..

maruf10
December 25th, 2009, 06:35 PM
this is the output


maruf@ubuntu:~$ ping ubuntu.com
ping: unknown host ubuntu.com
maruf@ubuntu:~$ ping google.com
ping: unknown host google.com

shredder12
December 25th, 2009, 06:47 PM
post the output of plog when you get this error...
and also post the output of

ifconfig ppp1
and

cat /etc/resolv.conf
btw.. see if you are able to ping only the IP

ping 114.31.0.66

maruf10
December 25th, 2009, 07:04 PM
maruf@ubuntu:~$ ping google.com
ping: unknown host google.com

maruf@ubuntu:~$ plog
Dec 25 09:53:51 ubuntu pppd[3724]: PAP authentication succeeded
Dec 25 09:53:51 ubuntu pppd[3724]: peer from calling number 00:11:3B:13:4F:ED authorized
Dec 25 09:53:51 ubuntu pppd[3724]: not replacing existing default route through ppp1
Dec 25 09:53:51 ubuntu pppd[3724]: Cannot determine ethernet address for proxy ARP
Dec 25 09:53:51 ubuntu pppd[3724]: local IP address 192.168.8.218
Dec 25 09:53:51 ubuntu pppd[3724]: remote IP address 113.11.40.1
Dec 25 09:53:51 ubuntu pppd[3724]: primary DNS address 114.31.0.66
Dec 25 09:53:51 ubuntu pppd[3724]: secondary DNS address 210.4.77.180


maruf@ubuntu:~$ ifconfig ppp1
ppp1 Link encap:Point-to-Point Protocol
POINTOPOINT NOARP MULTICAST MTU:1492 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:54 (54.0 B) TX bytes:378 (378.0 B)

maruf@ubuntu:~$ cat /etc/resolv.conf
nameserver 114.31.0.66
nameserver 210.4.77.180
# Generated by NetworkManager

maruf@ubuntu:~$ ping 91.189.94.156
PING 91.189.94.156 (91.189.94.156) 56(84) bytes of data.
^C[i have forcefully quited it ... it was halted]
--- 91.189.94.156 ping statistics ---
122 packets transmitted, 0 received, 100% packet loss, time 121675ms

shredder12
December 25th, 2009, 07:30 PM
its really strange..
your plog shows that you are connected to internet.. but it is still not working and ppp1 is not even assigned the IP.
plz post the output of

ifconfig -a
since, you didn't get a reply by pinging the IP either.. so i guess its not even a dns issue, ur resolv.conf file seems to have the required entries..

i think the IP address might be assigned to eth0 and even if it is the system should be able to use internet. I don't even understand why ppp1 was used, i always got the default ppp interface ppp0.

maruf10
December 26th, 2009, 06:13 AM
maruf@ubuntu:~$ ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:1c:c0:0e:aa:2a
inet6 addr: fe80::21c:c0ff:fe0e:aa2a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1620 errors:0 dropped:0 overruns:0 frame:0
TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:148226 (148.2 KB) TX bytes:5100 (5.1 KB)
Interrupt:251 Base address:0x4000

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:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:240 (240.0 B) TX bytes:240 (240.0 B)

pan0 Link encap:Ethernet HWaddr 12:51:d3:1a:22:e4
BROADCAST MULTICAST MTU:1500 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:192.168.8.254 P-t-P:113.11.40.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:54 (54.0 B) TX bytes:526 (526.0 B)

ppp1 Link encap:Point-to-Point Protocol
inet addr:192.168.8.254 P-t-P:113.11.40.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:54 (54.0 B) TX bytes:378 (378.0 B)

maruf@ubuntu:~$

shredder12
December 26th, 2009, 07:01 PM
As you can see here you are assigned the IP addresses in both the ppp0 and ppp1 interfaces..
But in the previous post there was no address assigned to the interface ppp1.

Lets give a last try to it. After you start your system run this command

sudo tail -f /var/log/syslog
I will need the complete output of this command in case we don't succeed.

Whenever you start your system and the connection check thru "plog" what's the status of ur connection. The plog output you submitted above was when you were assigned the IP.. this means that you are connected now. If it shows you are connected then continue.

Now, the check the output of

ifconfig ppp0

ifconfig ppp1

you should see the assigned addresses. The output should be same as in your last post.

Now, ping some website first and see what output you get.. if its not working.. try pinging the IP address I mentioned in the post above or the DNS servers you were assigned (look at the last 2 IPs in the output of plog).

If you are unsuccessful.. check the output of plog and again do "ifconfig ppp0" and "ifconfig ppp1" to check if you still have got the assigned addresses.

Remember to post the output of the "tail" command in case of a failure.. either use "code" tags to post it here or you may post it on http://paste.ubuntu.com and mention the link here.

maruf10
December 27th, 2009, 08:19 PM
failed again ...
output of tail command :(



maruf@ubuntu:~$ sudo tail -f /var/log/syslog
Dec 27 11:01:15 ubuntu NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
Dec 27 11:01:15 ubuntu NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
Dec 27 11:01:21 ubuntu ntfs-3g[3231]: Version 2009.2.1 external FUSE 27
Dec 27 11:01:21 ubuntu ntfs-3g[3231]: Mounted /dev/sda1 (Read-Write, label "xp", NTFS 3.1)
Dec 27 11:01:21 ubuntu ntfs-3g[3231]: Cmdline options: rw,nosuid,nodev,uhelper=hal,locale=en_US.UTF-8
Dec 27 11:01:21 ubuntu ntfs-3g[3231]: Mount options: rw,nosuid,nodev,uhelper=hal,silent,allow_other,non empty,relatime,fsname=/dev/sda1,blkdev,blksize=4096
Dec 27 11:01:21 ubuntu hald: mounted /dev/sda1 on behalf of uid 1000
Dec 27 11:01:37 ubuntu NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
Dec 27 11:01:44 ubuntu ntpdate[2959]: can't find host ntp.ubuntu.com
Dec 27 11:01:44 ubuntu ntpdate[2959]: no servers can be used, exiting
^C


and this is the output of all command that i have tried after tail command



maruf@ubuntu:~$ plog
maruf@ubuntu:~$ plog
maruf@ubuntu:~$ sudo pppoeconf
Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
maruf@ubuntu:~$ plog
Dec 27 11:03:46 ubuntu pppd[3447]: Connect: ppp1 <--> eth0
Dec 27 11:03:46 ubuntu pppd[3447]: Remote message: Login ok
Dec 27 11:03:46 ubuntu pppd[3447]: PAP authentication succeeded
Dec 27 11:03:46 ubuntu pppd[3447]: peer from calling number 00:11:3B:13:4F:ED authorized
Dec 27 11:03:46 ubuntu pppd[3447]: not replacing existing default route through ppp0
Dec 27 11:03:46 ubuntu pppd[3447]: Cannot determine ethernet address for proxy ARP
Dec 27 11:03:46 ubuntu pppd[3447]: local IP address 192.168.8.254
Dec 27 11:03:46 ubuntu pppd[3447]: remote IP address 113.11.40.1
Dec 27 11:03:46 ubuntu pppd[3447]: primary DNS address 114.31.0.66
Dec 27 11:03:46 ubuntu pppd[3447]: secondary DNS address 210.4.77.180
maruf@ubuntu:~$ ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.8.254 P-t-P:113.11.40.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:54 (54.0 B) TX bytes:3798 (3.7 KB)

maruf@ubuntu:~$ ifconfig ppp1
ppp1 Link encap:Point-to-Point Protocol
inet addr:192.168.8.254 P-t-P:113.11.40.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:3 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:54 (54.0 B) TX bytes:54 (54.0 B)

maruf@ubuntu:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
* if-up.d/mountnfs[dsl-provider]: waiting for interface eth0 before doing NFS mounts
[ OK ]
maruf@ubuntu:~$ ping google.com
ping: unknown host google.com
maruf@ubuntu:~$ ping 114.31.0.66
PING 114.31.0.66 (114.31.0.66) 56(84) bytes of data.
^C
--- 114.31.0.66 ping statistics ---
22 packets transmitted, 0 received, 100% packet loss, time 21167ms

maruf@ubuntu:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1c:c0:0e:aa:2a
inet6 addr: fe80::21c:c0ff:fe0e:aa2a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1727 errors:0 dropped:0 overruns:0 frame:0
TX packets:150 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:164003 (164.0 KB) TX bytes:12160 (12.1 KB)
Interrupt:251 Base address:0x4000

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:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:240 (240.0 B) TX bytes:240 (240.0 B)

pan0 Link encap:Ethernet HWaddr aa:57:e2:a9:28:6a
BROADCAST MULTICAST MTU:1500 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)

ppp1 Link encap:Point-to-Point Protocol
inet addr:192.168.8.254 P-t-P:113.11.40.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:3 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:54 (54.0 B) TX bytes:3034 (3.0 KB)

maruf@ubuntu:~$

shredder12
December 28th, 2009, 03:40 PM
This sucks...
Everything seems to be right..
btw.. you were supposed to run the tail command in a separate terminal for the whole time.
did you stop it and then started running the other commands?
It seems that the system is unable to find the path..
Honestly speaking .. I am really clueless now....right now i have nothing else to suggest..