LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-12-2007, 11:21 AM   #1
Jasper Tiemann
LQ Newbie
 
Registered: May 2007
Posts: 8

Rep: Reputation: 0
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?

Last edited by Jasper Tiemann; 05-12-2007 at 11:22 AM.
 
Old 05-12-2007, 11:45 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
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.
 
Old 05-12-2007, 02:42 PM   #3
Jasper Tiemann
LQ Newbie
 
Registered: May 2007
Posts: 8

Original Poster
Rep: Reputation: 0
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

Last edited by Jasper Tiemann; 05-12-2007 at 02:46 PM.
 
Old 05-12-2007, 03:14 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
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
 
Old 05-12-2007, 03:31 PM   #5
Jasper Tiemann
LQ Newbie
 
Registered: May 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks

Thanks,

That did the trick.

Very gratefull.

Thank you, thank you.

Best regards,

Jasper
 
Old 05-13-2007, 09:31 PM   #6
MartinUK
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Rep: Reputation: 0
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
 
  


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
Cannot connect to the internet mat_uk111 SUSE / openSUSE 1 10-21-2005 07:03 PM
When i connect on the internet I want root not to access the internet !! skouket Linux - Security 12 07-10-2005 12:17 PM
Messed up my Internet Settings (can't connect to the internet) Almazick Linux - Wireless Networking 0 09-07-2004 06:23 PM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM
Can connect broadband but can't connect Internet satimis Linux - Networking 4 01-31-2004 07:58 PM

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

All times are GMT -5. The time now is 02:56 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