Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-27-2009, 11:53 AM   #1
LQ Newbie
Registered: Jul 2004
Distribution: Suse 9.1 switched to 9.2 currently Ubuntu Hoary
Posts: 27

Rep: Reputation: 15
Unable to connect to internet via ethernet after tweaking interfaces and hosts file

Hi I have been trying to set up a file server following the guide found here:

I was having issues with ubuntu not finding the host name when I used the query host name -f (see step 5 of howtoforge guide)

I eventually realised I had not edited the /etc/hosts file and /etc/network/interfaces file properly

I edited them to match as suggested on the howto guide.

eventually I successfully found I that I was able to find the
host name and I moved onto the next step which was to update the system.

However I no longer have internet connection via Ethernet I look on the web for a solution and a suggestion for diagnostics was

sudo ifconfig
sudo route
ping -c 4
I did this and the output is below:
root@trimdonserv:/home/j# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:6e:a8:6d:a6  
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::20c:6eff:fea8:6da6/64 Scope:Link
          RX packets:716 errors:0 dropped:0 overruns:0 frame:0
          TX packets:207 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:54137 (54.1 KB)  TX bytes:29071 (29.0 KB)
          Interrupt:23 Base address:0xc000 

lo        Link encap:Local Loopback  
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:711 errors:0 dropped:0 overruns:0 frame:0
          TX packets:711 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:58588 (58.5 KB)  TX bytes:58588 (58.5 KB)

root@trimdonserv:/home/j# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface     *        U     0      0        0 eth0
root@trimdonserv:/home/j# ping -c 4
ping: unknown host
I'm not sure what I have done to be honest and I am pretty annoyed with myself for messing it up.

I am running on a new install of ubuntu 8.10

Many thanks for any assistance

Old 02-27-2009, 12:09 PM   #2
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Have you set up a DNS server in your /etc/network/interfaces file?
If might be helpful if you posted the contents of that file.

Last edited by jdkaye; 02-27-2009 at 01:14 PM.
Old 02-27-2009, 12:12 PM   #3
Registered: Jan 2009
Location: Essex (UK)
Distribution: Home: Debian/Ubuntu, Work: Ubuntu
Posts: 206

Rep: Reputation: 44
looks weird if your address is 192.168.1.x but broadcast is

assigning ip via dhcp or static?


connection, internet

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Able to connect to default Gateway, Unable to connect to internet Dumb.Coder Linux - Newbie 11 04-14-2009 05:22 AM
Unable to connect to internet via ethernet xav.vijay Linux - Networking 3 06-06-2008 04:57 PM
trying to connect to internet via ethernet midnightmax General 14 05-24-2007 07:59 PM
LAN Hosts unable to connect to Apache 2.0.40-21.11 Bedwig Linux - Newbie 6 02-14-2006 06:23 AM
Mandrake 10.2 Realtek 8139 Ethernet unable to connect SgC.9711 Linux - Newbie 20 10-11-2005 02:33 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration