LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 02-27-2009, 10:53 AM   #1
ylawayjdp
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: http://www.howtoforge.com/ubuntu-home-fileserver-p3

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

Code:
sudo ifconfig
sudo route
ping -c 4 www.google.com
I did this and the output is below:
Code:
root@trimdonserv:/home/j# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:6e:a8:6d:a6  
          inet addr:192.168.1.145  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:6eff:fea8:6da6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          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:127.0.0.1  Mask:255.0.0.0
          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
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
root@trimdonserv:/home/j# ping -c 4 www.google.com
ping: unknown host www.google.com
root@trimdonserv:/home/j#
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

J
 
Old 02-27-2009, 11:09 AM   #2
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,690

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.
cheers,
jdk

Last edited by jdkaye; 02-27-2009 at 12:14 PM.
 
Old 02-27-2009, 11:12 AM   #3
rsciw
Member
 
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 192.168.0.255

assigning ip via dhcp or static?
 
  


Reply

Tags
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 04:22 AM
Unable to connect to internet via ethernet xav.vijay Linux - Networking 3 06-06-2008 03:57 PM
trying to connect to internet via ethernet midnightmax General 14 05-24-2007 06:59 PM
LAN Hosts unable to connect to Apache 2.0.40-21.11 Bedwig Linux - Newbie 6 02-14-2006 05:23 AM
Mandrake 10.2 Realtek 8139 Ethernet unable to connect SgC.9711 Linux - Newbie 20 10-11-2005 01:33 AM


All times are GMT -5. The time now is 11:25 PM.

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