Hi all

I am new to linux and am running ubuntu 9.04 one box at home and windows xp on my machine that connects to the internet on a wireles local service. My problem is that i can't get ubuntu to connect to the internet through my xp machines connection. All settings in xp are correct to share it's internet connection. please help

Dani AI

Generated

Short diagnosis and a checklist to try next.

Most likely causes here are a gateway/subnet mismatch, missing DNS, or a conflict between manual edits and NetworkManager. was on the right track about persistent config files, but editing those while NetworkManager is active can leave the interface unmanaged or with wrong values. , your setup shows the machine and gateway ended up on different subnets and you left DNS empty — that will let local file sharing work but stop any Internet traffic.

What to check and fix (in order):

  • Make the Windows XP box the gateway for the Ubuntu machine. If you use Windows Internet Connection Sharing, the Windows host will present itself as the LAN gateway and (usually) a DHCP server; either let Ubuntu obtain an address automatically or assign a static address in the same private subnet with the Windows host IP as the gateway and DNS.
  • Avoid using the same IP on both machines. If you manually set the Ubuntu IP to the Windows host address there will be an address conflict.
  • If name lookups fail but raw IP traffic works, add DNS servers (or point DNS to the Windows host) — NetworkManager can overwrite /etc/resolv.conf, so set DNS in the network GUI or in the same place you set the IP.
  • Temporarily disable the Windows firewall to rule out blocking, and confirm ICS is enabled on the Internet-facing adapter (the shared connection).

Quick terminal checks (run on Ubuntu) to isolate the problem:

ip addr show
ip route show
ping -c 3 8.8.8.8
cat /etc/resolv.conf
  • If you can ping an external IP but not a hostname, it is DNS.
  • If you cannot ping the Windows host, check the cable/link lights and consider a crossover cable on very old NICs (modern NICs handle this automatically).

If you used the interfaces file to hard-set the NIC, either keep that approach or let NetworkManager manage it — do not mix. If problems persist, report the Ubuntu IP, the Windows Ethernet IP, and the output of the route and ping tests above so next steps can be precise.

go to terminal
type === sudo gedit /etc/network/interface

check here u already assigned ip details .... if not configure here as
ip address= *.*.*.
subnetmask=
gateway=
dns=

then save
then give commnad.... sudo /etc/init.d/networking restart...
u can fix problems.....

Hi Faisu

Did what you said, still no joy. There were no ip details in the interface screen so i typed in:
ip address=
subnetmask=
gateway=
dns=
and saved after this, also typed the network restart command which was performed still no joy.

When i edit the connection settings in preferences>network connections i am able to establish a connection and copy files to the linux machine but no internet.Please help what next

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.