Solved

ping ubuntu 'block'

Posted on 2010-08-21
8
572 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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help instaling linux on vmware 36 81
Strongswan setup to Cisco ASA Site to site 5 331
ESXi NTP client time synch is not working 3 64
iptables ubuntu BLOCK all 2 80
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 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

18 Experts available now in Live!

Get 1:1 Help Now