Solved

ping ubuntu 'block'

Posted on 2010-08-21
8
574 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

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
 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Multicast - Linux 4 36
Ubuntu server 12.04 creating broadcast on network 6 94
BIND rate-limit - DNS for web server requests 29 237
ESXi NTP client time synch is not working 3 95
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 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