Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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>
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?
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.
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
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
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.