Hi everyone out there,
I have a dual boot machine where I run wins and ubuntu 10.04.I usually connect to a windows network for both environments and things were working fine then all of sudden ubuntu stopped connecting to the internet.I tried to check my network settings and everything seems okey with the connection speed and exchanged bits indicated.Can anyone out there show me the way please coz I wanna have fun with linux online!

Dani AI

Generated

Short expert summary tied to the thread: since ’s machine worked after being moved while Windows and Macs stayed OK on the original LAN, the fault is very likely network-side (router, switch, DHCP/ACL, port/cable) or a NIC/driver/auto‑negotiation mismatch — not a generic Ubuntu networking failure. and were right to request interface state; the checklist below orders the next useful checks, explains what to look for, and lists the most common fixes.

Useful diagnostic commands (replace the device name if it’s not eth0):

ip link show
ip addr show eth0
sudo ethtool eth0
sudo dhclient -v eth0
ip route show
cat /etc/resolv.conf
ping -c 4 8.8.8.8
lspci -nnk | grep -iA2 net
sudo dmesg | tail -n 50

What the outputs mean and next actions

  • Link/state (ip link / ethtool): if link is DOWN, try a different cable/port and check switch LEDs. If link is UP but speed/duplex looks wrong, force autonegotiation or match the switch side.
  • No IP after DHCP (dhclient verbose): indicates router DHCP didn’t lease. Check router DHCP table/lease limit or access control lists. Some consumer routers have DHCP quirks with certain Linux clients.
  • Routes/DNS (ip route / resolv.conf / ping): if a ping to 8.8.8.8 succeeds but hostnames fail, it’s DNS/proxy. If ping fails to gateway, it’s local L2/L3.
  • Driver/kernel messages (lspci / dmesg): identify the NIC vendor and loaded module. Some chipsets (Realtek, Broadcom, etc.) historically need vendor drivers or module tweaks.

Practical fixes and cautions

  • Check router admin for MAC filtering or exhausted lease pool; try a static IP on the same subnet as a working Windows machine to test.
  • If the NIC is from a vendor known to need a different driver, consider installing the vendor package or a DKMS module, or try a newer kernel.
  • Verify NetworkManager vs /etc/network/interfaces: an interface defined in interfaces can be ignored by NetworkManager.
  • Avoid posting full MACs or public IPs in public forums.

Recommended Answers

All 9 Replies

What is the output of the command "sudo ifconfig"?

hi there today,Rubberman thnx for the reply.the command sudo ifconfig gave me connection details like the transmitted andreceived packets, the ip address,there are 0 bytes dropped,0 errors, 0 overruns amongst the browser and other programs that require internet connectivity can't however do so depite these details.any clues? thanks n long live daniweb!!!!

Yes, well I asked for the output (rather than a synopsis) in order to get some better idea of what is going on. Please post. Thanks.

Hi,
Well,thanks for your response! Here is the typed output of the command you provided. The only thing I have omitted is my IP address,otherwise all is just a replication of the output. Look forward to your solution. Cheers!

Link encap:Ethernet Hw addr..........
UP Broadcast running multicast:mtu:1500 Metric 1
RX packets:60 errors:0 dropped:0 overruns:0 frame:0
TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0 txqueuelen:1000
RX bytes:6597(6.5kb) TX bytes:5486(5.4kb)
Interrupt:32 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask
inet6 addr: ::1/128 scope :host
Up loopback Running MTU:16436 Metric 1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 frame:0
Collisions:0 txqueuelen:0
RX bytes:720(720.0B) TX bytes:720(720.0B)

that first connection shoumd probably be your LAN connection, but you didnt list it as eth0 like one would expect... and it doesnt have an IP address. check your network manager, make sure it's set up appropriately... that is, for dhcp/manual... also dns servers and appropriate subnet mask. you mentioned that it connects to a "windows network"... is this a work computer? if not, is there something about your network that makes it a windows network?

please do a sudo ifconfig -a that will show the status of any connections that are down. possible that eth0 (or the equivalent for your machine) is simply down, and a sudo ifconfig eth0 up (for example) would be a (likely too-easy) fix. a second possibility is that a reboot might resolve it... cold restart if a warm one fails.

i dont want to get too deep while we're still guessing here, so that's it for now.

Hi there again,
Thank you both for your efforts.Tje210,as you had guessed, the first details are for the eth0, it's just that I forgot to mention it while typing but do forgive me for that!I did try out your options and it all came to the same.I just realised something with mozilla firefox on both linux and windows.While IE responds well on my network which runs at 100 mbps,firefox has refused to connect at all.I had just thought may be it may be a problem with firefox itself but on realising that the other programs trying to access the internet in linux failing too,i just got more confused.What must be happening for I used to connect on the same network before without problems and I haven't made any cahnges to my system.

thank you for your nice post

hi guys,
Thanks to you all who tried and surely all your efforts were massive. I did transfer my computer to another location and guess what! I GOT LINUX WORKING, but what is still beating my mind is the reason why it refused on the previous network. This same network has macs working on it and they fine. Has anyone ou there come across this same problem? Gurus, what have you to asy about this?

I have had experience with some modem/routers, particularly D-Link, not properly providing DHCP to an Ubuntu machine. Having said that, it was back in the Dapper Drake days, and since then I have avoided D-Link devices like the plague.

It is possible that the issues are still there with the later Ubuntu versions. Was the offending modem/router a D-Link by any chance?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.