Solved

ping ubuntu 'block'

Posted on 2010-08-21
8
571 Views
Last Modified: 2012-05-10
I have a pc running ubuntu. I checked the network connection using ping and it is unable to connect to the internet. I've checked the same internet connection with another identical pc running ubuntu and the connection is working. Any suggestions?
0
Comment
Question by:gerrymac1943
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 4

Accepted Solution

by:
slushm earned 0 total points
ID: 33493529
Is dhcp enabled? What does ifconfig show?
0
 

Author Comment

by:gerrymac1943
ID: 33494280
ifconfig command:

eth0      Link encap:Ethernet  HWaddr 00:43:50:01:4a:ae  
          inet6 addr: fe80::260:43ff:fe01:4aae/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:47 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3379 (3.3 KB)  TX bytes:2178 (2.1 KB)
          Interrupt:11

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
0
 
LVL 7

Expert Comment

by:diepes
ID: 33495222
hi gerrymac1943:
please also show the ifconfig  and ip route  from the pc that do work.

Looking at the ifconfig above, i don't see a IPv4 address on eth0.
To try and diagnose you could try and force a dhcp update.

$ sudo dhclient eth0
0
 

Author Comment

by:gerrymac1943
ID: 33495346
dhclient eth0 output from command

Listening on LPF/eth0/00:43:50:01:4a:ae
Sending on   LPF/eth0/00:43:50:01:4a:ae
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 4

Expert Comment

by:slushm
ID: 33497865
will this device work if you add a static ip address to eth0?  
0
 
LVL 7

Expert Comment

by:diepes
ID: 33498699
gerrymac1943:

Ok so you are not getting any response to your DHCP requests.

Possible causes.
1. No DHCP server for the subnet or not connected
2. Wrong eth port on linux box ?  Are there more than one eth ?  # ifconfig
3. FW - Unlikely with default config

I agree with slushm: try to configure a static IP and proof that the linux box is not at fault, then try and fix the dhcp issue.
0
 

Author Comment

by:gerrymac1943
ID: 33535417
how do i configure a static IP?
0
 
LVL 3

Expert Comment

by:stranger9002
ID: 33540371
ifconfig eth0 192.xxx.xxx..xxx netmask 255.xxx.xxx.xxx - you have to know the addresses
ifconfig eht0 up
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now