PDA

View Full Version : Able to connect but can't surf, ping or host.


pueyguan
19th December 2003, 06:47 AM
Hey, I've been having this problem for quite some time. I'm able to connect, but i can't surf, ping or host. I figured a way to solve this but I don't think it's right. please help.

Here are the output and the thigns i do:-

Not working (can't surf, ping or host)
----------------------------------------------------------------------------

[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:05:0D:33:EA
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:128 errors:0 dropped:0 overruns:0 frame:0
TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8864 (8.6 Kb) TX bytes:9905 (9.6 Kb)
Interrupt:11 Base address:0x9000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1712 errors:0 dropped:0 overruns:0 frame:0
TX packets:1712 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1262924 (1.2 Mb) TX bytes:1262924 (1.2 Mb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:219.95.243.26 P-t-P:219.93.218.177 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:4 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:146 (146.0 b) TX bytes:54 (54.0 b)

[root@localhost root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
219.93.218.177 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost root]#

Things I did :-
----------------------------------------------------------------------------
[root@localhost root]# ifconfig eth0 netmask 255.255.255.255
[root@localhost root]# ifconfig eth0 netmask 255.255.255.0

Activat the ppp0 in network


Working output (able to surf, ping and host)
----------------------------------------------------------------------------
[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:05:0D:33:EA
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1998 errors:0 dropped:0 overruns:0 frame:0
TX packets:2007 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1314041 (1.2 Mb) TX bytes:275124 (268.6 Kb)
Interrupt:11 Base address:0x9000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1752 errors:0 dropped:0 overruns:0 frame:0
TX packets:1752 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1265512 (1.2 Mb) TX bytes:1265512 (1.2 Mb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:219.94.81.158 P-t-P:219.93.218.177 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:401 errors:0 dropped:0 overruns:0 frame:0
TX packets:410 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:254538 (248.5 Kb) TX bytes:48236 (47.1 Kb)

[root@localhost root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
219.93.218.177 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 219.93.218.177 0.0.0.0 UG 0 0 0 ppp0


------------------------- end --------------------------------

Thanx in advance.

odysseus
19th December 2003, 09:35 AM
if you are connected, but cant ping adresses, its beacause of dns resolution.

in /etc/resolv.conf there should ips of dns servers listed, otherwise dns is not available...

pueyguan
19th December 2003, 01:47 PM

if you are connected, but cant ping adresses, its beacause of dns resolution.

in /etc/resolv.conf there should ips of dns servers listed, otherwise dns is not available...

hmmm... there are settings in my resolv.conf, I'll just copy and paste it...

; generated by /sbin/dhclient-script
search localdomain
nameserver 202.188.0.133
nameserver 202.188.1.5

It seems like the dns server, the ip above for my isp is right. bno idea bout the rest though.

pueyguan
19th December 2003, 01:57 PM
I read somewhere regarding dhcp and dhcpcd. basically, what does dhcp and dhcpcd do?

I tried to see if I have dhcp and dhcpcd installed using "rpm -qa|grep dhcp" and "rpm -qa|grep dhcpcd". I have only a result for ""rpm -qa|grep dhcp" which is "dhcp-3.0pl2-6.16"

must I install dhcpcd? can this be the problem? thanx again in advance.

pueyguan
19th December 2003, 05:38 PM
finally.. able to find an alternative solution to it though it's not really fixing it.

Well, I kinda decided to use "rp-pppoe". Somehow I think the,
"169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 " from the "route -n" result(see post 1) is the one that disable me from receiving any packets from remote sites.

I did a "route -n" using rp-pppoe, the output:-
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
219.93.218.177 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 lo
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 219.93.218.177 0.0.0.0 UG 0 0 0 ppp0

notice that the 169.254.0.0 still there but for device lo. I guess if this settings for the route -n problem before is for lo and not eth0, i guess I would not face this problem.

Well, if anyoen who have problem surfing, ping, etc but connected using xDSL, I guess I owuld recommend one solution is rp-pppoe. Do read the documentation on "how-to-connect.txt". Make sure the eth0 is disable at boot time too.

If anyone do have a solution on how to solve the problem before, please do contribute. Thanx in advance.