LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-01-2008, 10:37 AM   #1
Patcheen
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Rep: Reputation: 0
Networking Trouble: Debian + Home Router


Hi guys and gals,
I'm quite new to this but eager to learn and get to grips with linux networking.
I've just spent the last 3 hours attempting to get my debian server online so I can install some packages I'm interested in. I have been reading post after post and attempting some of the suggestions I found there like using a static IP, gateway etc and editing the resolv.conf file but so far I still haven't managed to work it out. I would be very grateful if one of you could lend me some assistance.

I've setup the server to use DHCP (assigned by the router) and it seems to be working. It gets ...

IP Address: 192.168.2.114
Subnet: 255.255.255.0
Bcast: 192.168.2.255

route entries are...
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.2..1 UG 0 0 0 eht0

pinging google.com at this point I get unknown host so I edited the /etc/resolv.conf file to add my ISPs DNS address's

nameserver 62.231.32.10
nameserver 62.231.32.11

with the same result
so changed it back to

nameserver 192.168.2.1


I can ping both private LAN addresses and Public address succesfully but DNS resolving doesn't seem to be happening.

Any ideas, suggestions?
Thank you
 
Old 11-01-2008, 11:11 AM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Could you post the contents of your /etc/network/interfaces and /etc/resov.conf
 
Old 11-01-2008, 03:02 PM   #3
Patcheen
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Hi Klearview,
Thanks for your quick reply and sorry for my delay getting back to you. I was having fun mounting, format and reading a usb stick from windows so I could post the contains of the files you requested. Anyway here it is. Thanks for your help.

+---- resolv.conf ----+
nameserver 192.168.2.1

+---- interfaces ----+

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
#iface eth0 inet static
#address 192.168.2.11
#netmask 255.255.255.0
#gateway 192.168.2.1
 
Old 11-01-2008, 03:41 PM   #4
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
1) Let's make sure your router is set up correctly - normally even cheap "domestic" routers allow you to test dns look-ups, traceroute and ping. Is everything as expected there? Try to eliminate router as a potential cause - is it a functioning name server and can it perform dns look-ups?

2) We can try and rely on your router less. I'd suggest trying static ip again. Either shut down dhcp server on your router or assign a reserved i.p. address to the server.

For the server something like this (from my own - working set-up):

In /etc/network/interfaces:

auto eth0
iface eth0 inet static
address 192.168.2.11
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1

In /etc/resolv.conf:

nameserver 213.191.92.84
nameserver 145.253.2.75
nameserver 193.174.32.18

And finally:

/etc/init.d/networking restart

Last edited by klearview; 11-01-2008 at 03:42 PM. Reason: grammar
 
Old 11-03-2008, 12:22 PM   #5
Patcheen
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Smile

Thanks Klearview,

I've discovered that the server was running it's own DNS server. That was setup as part of the original config. The server was setup to host a web interface to a database used by a local community based transport service. I had hoped to install samba so the group could use this server as an file server extending the functionality of their network and saving money. As they sat in Ireland 'The recession is booming'!
Anyway I am in contact with the Guru who set this up and he will be paying a site visit in 2 weeks and said he help to configure the box. So I think I park this for a while and wait until the guy who knows what he's doing to show up.
Pity though, I am eager to work with Linux.
Thanks a lot for your help.

Pat

Last edited by Patcheen; 11-03-2008 at 12:26 PM.
 
  


Reply


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
help using debian as a home router xaos5 Debian 12 01-17-2007 07:17 PM
Debian: Home router problems JussiKp Linux - Networking 3 01-04-2007 01:57 AM
home networking with D-Link DI-604 router patitoconejita Linux - Networking 11 08-04-2006 10:33 PM
Setting up home networking through server or router? Fice Linux - Networking 4 01-12-2006 02:08 AM
debian home networking rcrummett Linux - Networking 1 12-19-2005 09:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration