LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-27-2006, 03:42 PM   #1
13438
LQ Newbie
 
Registered: May 2006
Posts: 10

Rep: Reputation: 0
pppoeconf gets a dynamic ip but doesn't work


In order to configure a dsl ethernet modem in my IBM Thinkpad G40 running Debian 3.1 under a 2.6 kernel, with the tg3 driver for my Broadcom network card, I ran pppoeconf and everything was fine. I then ran ifconfig ppp0 and it worked, I used poff and pon to confirm thant every time it got a different IP, but when I try to access internet (eg. ping) it simply doesn't work. With Windows there's no problem. What's wrong?!

I already tried to ping ip addresses but the output is always the same: host not found. I'm not blocked by a firewall because I just installed Debian.

The /sbin/route is as follows:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.32.1.29 * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0


Thank you.

Emilio
 
Old 05-28-2006, 11:54 PM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by 13438
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.32.1.29 * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0


Thank you.

Emilio
hi,
is 10.32.1.29 the IP address of your DSL modem ???

regards
 
Old 05-29-2006, 06:27 PM   #3
13438
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
I have no idea, but it's absolutely not the same as the ips dynamically assigned in ifconfig, which start normally from 200 and so on.


help!!!
 
Old 05-29-2006, 07:42 PM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by 13438
I have no idea, but it's absolutely not the same as the ips dynamically assigned in ifconfig, which start normally from 200 and so on.


help!!!
ok.
post the out put of
#ifconfig

regards
 
Old 06-01-2006, 01:02 PM   #5
13438
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
ok, here's the output of ifconfig after doing 'pon dsl-provider' :

eth0
Link encap:Ethernet HWaddr 00:06:1B:C1:62:4C
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::206:1bff:fec1:624c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2064 (2.0 KiB) TX bytes:3044 (2.9 KiB)
Interrupt:3

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

ppp0
Link encap:Point-to-Point Protocol
inet addr:201.245.212.153 P-t-P:10.32.1.29 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)
 
Old 06-02-2006, 11:29 AM   #6
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
ppp0
Link encap:Point-to-Point Protocol
inet addr:201.245.212.153 P-t-P:10.32.1.29 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)
hi,
sorry for late reply.......i was out for a day.
after connecting to the internet check running the following command.
#route add default gw <The IP address you get at the highlighted position>

regards
 
Old 06-02-2006, 04:08 PM   #7
13438
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
hi ruudra, thanks for your reply but it didnt change anything. I ran 'route add default gw 10.32.1.29' after running 'pon dsl-provider' and it say anything so I thought it was ok, but I tried 'ftp ftp.netbsd.org' and 'ping www.ibm.com', i also invented an ip address to try with, with no result. It keeps saying 'host unreachable' or 'unknown' or things like that. Got more ideas?

Emilio
 
Old 06-02-2006, 10:26 PM   #8
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
The /sbin/route is as follows:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.32.1.29 * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
hi,
look at the last line of /sbin/route.
Destination with Genmask value 0.0.0.0 i.e for any network in this world the default gateway should be 192.168.0.1 (eth0).
but the entry here should be
default 10.32.1.29 0.0.0.0 UG 0 0 0 ppp0

thats why is suggested the command
#route add default gw <the ip address just after the P-t-P entry in ppp0>

your machine is well connected to the internet, but its not geting the default gateway.

post the o/p of #/etc/resolv.conf
the entries here are for your DNS servers.
can you ping them ? (although this is not the issue as you even can't ping a IP address, which doesn't require the intervention of DNS)
Since you are using debian, so search a bit about addding the default gw to it.
me too also trying, will let you know if get success.

regards
 
Old 06-03-2006, 03:40 PM   #9
13438
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Ruudra, I made some foolish mistake:
Suddenly, I don't know why (perhaps after doing 'route add 192.168.0.0 gw *') internet worked!!!
but I decided to reinstall Debian because X wasn't working.
And... I am in the same situation as earlier... shit!!!
here's the output of /sbin/route after doing 'pon dsl-provider' and 'route add default gw 10.32.1.29' :

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.32.1.29 * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
default 10.32.1.29 0.0.0.0 UG 0 0 0 ppp0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0


now here's the output of ifconfig:

eth0
Link encap:Ethernet HWaddr 00:06:1B:C1:62:4C
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::206:1bff:fec1:624c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2064 (2.0 KiB) TX bytes:3044 (2.9 KiB)
Interrupt:3

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

ppp0
Link encap:Point-to-Point Protocol
inet addr:201.245.212.153 P-t-P:10.32.1.29 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)


now, the output of /etc/resolv.conf BEFORE i did the foolish reinstallation:

search
nameserver 192.168.0.1


and /etc/resolv.conf AFTER the reinstallation:

nameserver 200.75.51.132
nameserver 200.75.51.133
search


and finally, the output of the 'plog' command, which I discovered when I ran once more pppoeconf:

Jun 3 18:36:58 localhost pppd[22927]: Couldn't increase MRU to 1500
Jun 3 18:36:59 localhost pppd[22927]: Couldn't increase MRU to 1500
Jun 3 18:36:59 localhost pppd[22927]: PAP authentication succeeded
Jun 3 18:36:59 localhost pppd[22927]: peer from calling number 00:90:1A:A0:3D:FA authorized
Jun 3 18:37:00 localhost pppd[22927]: not replacing default route to eth0 [192.168.0.1]
Jun 3 18:37:00 localhost pppd[22927]: Cannot determine ethernet address for proxy ARP
Jun 3 18:37:00 localhost pppd[22927]: local IP address 201.244.255.239
Jun 3 18:37:00 localhost pppd[22927]: remote IP address 10.32.1.29
Jun 3 18:37:00 localhost pppd[22927]: primary DNS address 200.75.51.132
Jun 3 18:37:00 localhost pppd[22927]: secondary DNS address 200.75.51.133



Thanks for everything...
 
Old 06-05-2006, 02:38 AM   #10
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Hi
I think the problem is here
inet addr:201.245.212.153 P-t-P:10.32.1.29 Mask:255.255.255.255
the pointtopoint(gateway) address 10.32.1.29 seems totally strange.
Could you check what gateway you are getting from windows?
by
ipconfig
or
by
network properties
Try pinging 10.32.1.29
it should work (before anything else (nameserver) can.
 
Old 06-08-2006, 09:59 PM   #11
13438
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
It's the same gw in windows. HELP ME, PLEAAASE!!!!



Emilio
 
Old 06-09-2006, 01:27 AM   #12
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Try pinging 10.32.1.29

Also...

Quote:
Originally Posted by 13438
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.32.1.29 * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
default 10.32.1.29 0.0.0.0 UG 0 0 0 ppp0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
...I notice you now have two default gateways. If the ping fails, try deleting the one with 192.168.0.1
Code:
route del default gw 192.168.0.1 eth0
 
Old 06-09-2006, 06:24 AM   #13
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hi zhangmaike,
one thing is bothering me. 10.0.0.0 are for private networks. Then how come his ISP has given him that id ???

regards
 
Old 06-09-2006, 09:13 AM   #14
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
check the mask :
The net mask should not be 255.255.255.255.
I missed that at first, but this must be the problem.
If the net mask is 255.255.255.255, your computer is the only one in the network which is not possible(Thought ,I have a network with netmask as 255.255.255.252)
The network mask is how the system knows the logical network the system is on.
Tell me how can the mask be /32?
check that out and your system should work.
Robin
 
Old 06-09-2006, 11:14 AM   #15
13438
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
solved!!!!

THANK YOU EVERYBODY!!!

I'm writing this from Debian. You were right all the time, Ruudra, thank you!!!! The two things I had to do were


route add default gw 10.32.1.29
route del default gw 192.168.0.1


I would never had done this without your help.
Thank you.


Emilio Silva
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pppoeconf: gets IP but doesn't work 13438 Linux - Networking 4 05-22-2006 06:15 PM
problems with pppoeconf... mediolanum Linux - Networking 1 05-15-2006 03:33 AM
Fedora Core 4 DHCPD and BIND, cannot get Dynamic DNS to work trainpic Linux - Networking 2 02-25-2006 04:27 PM
pppoeconf at boot alexrait1 Debian 9 07-29-2005 04:37 PM
about pppoeconf under Debian ledone Linux - Newbie 0 08-06-2004 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration