LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can not connect to internet (https://www.linuxquestions.org/questions/linux-networking-3/can-not-connect-to-internet-553387/)

Jasper Tiemann 05-12-2007 11:21 AM

Can not connect to internet
 
I can connect to my network but cannot connect to internet. I can ping localhost, also the router/gateway but cannot ping to ip's outside network. All other computers on the network don't haven this problem.

Can anybody help?


ifconfig shows interrupt:139 anybody knows what that is?

ilikejam 05-12-2007 11:45 AM

Hi.

Could you post the output from
Code:

ifconfig
route
traceroute 81.86.77.124

and could you tell us the IP address of the router/gateway?

Dave

Edit: 2000 posts. Woo.

Jasper Tiemann 05-12-2007 02:42 PM

ifconfig:
eth0 Link encap:Ethernet HWaddr 00:E0:81:2A:BC:1A
inet addr:192.168.1.75 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:81ff:fe2a:8c1a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2717 (2.6 KiB) TX bytes:871 (871.0 b)
Interrupt:139

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:36 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3368 (3.2 KiB) TX bytes:3368 (3.2 KiB)


route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0

traceroute 81.86.77.124:
Socket: Network is unreachable

IP of my gateway is 192.168.1.254

ping 192.168.1.254:
PING 192.168.1.254 (192.168.1.254) 56(84) bytes of data.
64 bytes from 192.168.1.254: icmp_seq=0 ttl=64 time=4.50 ms
64 bytes from 192.168.1.254: icmp_seq=1 ttl=64 time=2.37 ms
64 bytes from 192.168.1.254: icmp_seq=2 ttl=64 time=1.76 ms
64 bytes from 192.168.1.254: icmp_seq=3 ttl=64 time=1.82 ms
64 bytes from 192.168.1.254: icmp_seq=4 ttl=64 time=2.03 ms
64 bytes from 192.168.1.254: icmp_seq=5 ttl=64 time=2.03 ms
64 bytes from 192.168.1.254: icmp_seq=6 ttl=64 time=2.04 ms
64 bytes from 192.168.1.254: icmp_seq=7 ttl=64 time=1.98 ms
64 bytes from 192.168.1.254: icmp_seq=8 ttl=64 time=1.85 ms
64 bytes from 192.168.1.254: icmp_seq=9 ttl=64 time=1.65 ms
64 bytes from 192.168.1.254: icmp_seq=10 ttl=64 time=1.95 ms

--- 192.168.1.254 ping statistics ---
11 packets transmitted, 11 received, 0% packet loss, time 10029ms
rtt min/avg/max/mdev = 1.655/2.185/4.503/0.754 ms, pipe 2


Best regards,

Jasper

ilikejam 05-12-2007 03:14 PM

Hi again.

You don't currently have a default route set.
Code:

route add default gw 192.168.1.254
should do the trick.

Dave

Jasper Tiemann 05-12-2007 03:31 PM

Thanks
 
Thanks,

That did the trick.

Very gratefull.

Thank you, thank you.

Best regards,

Jasper

MartinUK 05-13-2007 09:31 PM

Jasper,

You will also want to add that command to a startup script or network configuration script so that it is persistent on reboot. Where you add this depends on the distro you are using.

Thanks
Martin


All times are GMT -5. The time now is 04:24 PM.